Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ThreadSafety::DirChdir cop #36

Merged
merged 2 commits into from
Sep 7, 2024

Conversation

viralpraxis
Copy link
Collaborator

Resolves #29

I believe it's reasonable to have built-in cop for Dir.chdir, some people might not know about its process-wide side effect. I'm not sure if it should be enabled by default?

Copy link
Collaborator

@mikegee mikegee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree with enabled by default. I think users of this gem expect any thread-safety offenses we can tell them about.

@mikegee mikegee merged commit 9d6e12b into rubocop:master Sep 7, 2024
27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Can we have a cop to recommend not using Dir.chdir?
2 participants