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

Comments

Projects
None yet
3 participants
@jawshooah
Contributor

jawshooah commented Oct 18, 2016

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 from Ignore `.rubocop.yml` and force default config to Ignore .rubocop.yml and force default config Oct 18, 2016

@mikegee

This comment has been minimized.

Show comment
Hide comment
@mikegee

mikegee Oct 20, 2016

Contributor

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.

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

This comment has been minimized.

Show comment
Hide comment
@jawshooah

jawshooah Oct 20, 2016

Contributor

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

Contributor

jawshooah commented Oct 20, 2016

@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

This comment has been minimized.

Show comment
Hide comment
@bbatsov

bbatsov Oct 20, 2016

Collaborator

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

Collaborator

bbatsov commented Oct 20, 2016

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

@bbatsov bbatsov added the enhancement label Oct 20, 2016

@jawshooah jawshooah referenced this issue Oct 21, 2016

Merged

[Fix #3647] Add --force-default-config option #3658

10 of 11 tasks complete

@bbatsov bbatsov closed this in 88dee4d Oct 21, 2016

legendetm added a commit to legendetm/rubocop that referenced this issue Nov 1, 2016

Merge remote-tracking branch 'main/master' into empty_lines_special
* main/master: (42 commits)
  [Fix rubocop-hq#3662] Remove brackets from an array literal being expanded in another array
  Add forgotten update the manual
  Cut 0.45
  [Fix rubocop-hq#3676] Ignore invocations of raw and html_safe when safe_join is used (rubocop-hq#3682)
  Fix option name in HashSyntax's documentation (rubocop-hq#3683)
  Bump default Ruby version to 2.1
  Add new `Lint/EmptyExpression` cop
  Improve the performance of `Style/ExtraSpacing` cop
  [Fix rubocop-hq#3631] Add new `Style/SpaceInLambdaLiteral` cop
  Use `const_get` instead of `eval` to get an exception
  [Fix rubocop-hq#3494] Check rails indentation inside blocks in IndentationWidth
  Fix bug in `Lint/EmptyWhen` with empty condition
  [rubocop-hq#3650] Fix the checks for variables in VariableNumber
  [Fix rubocop-hq#3553] Make Style/RedundantSelf accept self.()
  Fix false positive for Rails/SafeNavigation when without receiver
  Fix bug in SafeNavigation where an elsif branch mimics an if branch
  [Fix rubocop-hq#3647] Add --force-default-config option
  Add more keywords for Rails/HttpPositionalArguments
  [Fix rubocop-hq#3652] Avoid crash Rails/HttpPositionalArguments for lvar params when auto-correct
  Move a changelog entry
  ...

legendetm added a commit to legendetm/rubocop that referenced this issue Nov 1, 2016

Merge remote-tracking branch 'main/master' into empty_lines_special
* main/master: (42 commits)
  [Fix rubocop-hq#3662] Remove brackets from an array literal being expanded in another array
  Add forgotten update the manual
  Cut 0.45
  [Fix rubocop-hq#3676] Ignore invocations of raw and html_safe when safe_join is used (rubocop-hq#3682)
  Fix option name in HashSyntax's documentation (rubocop-hq#3683)
  Bump default Ruby version to 2.1
  Add new `Lint/EmptyExpression` cop
  Improve the performance of `Style/ExtraSpacing` cop
  [Fix rubocop-hq#3631] Add new `Style/SpaceInLambdaLiteral` cop
  Use `const_get` instead of `eval` to get an exception
  [Fix rubocop-hq#3494] Check rails indentation inside blocks in IndentationWidth
  Fix bug in `Lint/EmptyWhen` with empty condition
  [rubocop-hq#3650] Fix the checks for variables in VariableNumber
  [Fix rubocop-hq#3553] Make Style/RedundantSelf accept self.()
  Fix false positive for Rails/SafeNavigation when without receiver
  Fix bug in SafeNavigation where an elsif branch mimics an if branch
  [Fix rubocop-hq#3647] Add --force-default-config option
  Add more keywords for Rails/HttpPositionalArguments
  [Fix rubocop-hq#3652] Avoid crash Rails/HttpPositionalArguments for lvar params when auto-correct
  Move a changelog entry
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment