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

Ignore .rubocop.yml and force default config #3647

Closed
jawshooah opened this issue Oct 18, 2016 · 3 comments
Closed

Ignore .rubocop.yml and force default config #3647

jawshooah opened this issue Oct 18, 2016 · 3 comments

Comments

@jawshooah
Copy link
Contributor

Is there a way to force the default config, even if there is a .rubocop.yml file in the current directory or further up the tree? Currently it seems the only way is to pass a placeholder to --config, e.g. --config /dev/null.

Refs Homebrew/brew#1317 (comment)

@jawshooah jawshooah changed the title Ignore .rubocop.yml and force default config Ignore .rubocop.yml and force default config Oct 18, 2016
@mikegee
Copy link
Contributor

mikegee commented Oct 20, 2016

If --config /dev/null works as you need, that seems like a fairly good solution. It is relatively clear about your intention to use no configuration.

@jawshooah
Copy link
Contributor Author

@mikegee Yes, it works, but it's certainly not obvious, and since it isn't documented anywhere it basically relies on an implementation detail.

@bbatsov
Copy link
Collaborator

bbatsov commented Oct 20, 2016

I'm fine with adding an explicit switch for this behaviour.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants