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

Customization doesn't work #66

Closed
NARKOZ opened this issue Mar 5, 2020 · 4 comments
Closed

Customization doesn't work #66

NARKOZ opened this issue Mar 5, 2020 · 4 comments

Comments

@NARKOZ
Copy link

NARKOZ commented Mar 5, 2020

For example, it is impossible to disable Layout/IndentationConsistency cop

Layout/IndentationConsistency:
  Enabled: False
@toshimaru
Copy link
Owner

Please use false instead of False.

@NARKOZ
Copy link
Author

NARKOZ commented Mar 5, 2020

The issue is still valid with ‘false’

@NARKOZ
Copy link
Author

NARKOZ commented Mar 5, 2020

Also False is a valid value according to spec https://yaml.org/type/bool.html

@toshimaru
Copy link
Owner

Still not sure why. I've tried to reproduce the issue, but couldn't.

$ bundle exec rubocop
Inspecting 35 files
..C................................

Offenses:

app/controllers/application_controller.rb:16:5: C: Layout/IndentationWidth: Use 2 (not 3) spaces for indentation.
       render_500(exception)
    ^^^

35 files inspected, 1 offense detected

$ cat .rubocop.yml | grep -1 Layout/IndentationWidth

Layout/IndentationWidth:
  Enabled: false

$ bundle exec rubocop
Inspecting 35 files
...................................

35 files inspected, no offenses detected

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

No branches or pull requests

2 participants