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

Ignor Layout/CaseIndentation cop by default #309

Merged
merged 1 commit into from
Jun 3, 2019
Merged

Ignor Layout/CaseIndentation cop by default #309

merged 1 commit into from
Jun 3, 2019

Conversation

damisul
Copy link
Contributor

@damisul damisul commented May 28, 2019

In Rubocop we have following settings:
Layout/CaseIndentation:
EnforcedStyle: case
IndentOneStep: true

In haml we have:

                - case item
                  - when 'home'
                    = link_to item, '#header'

It is a correct haml and in fact indented as required, but haml_lint produces:
RuboCop: Layout/CaseIndentation: Indent when one step more than case.

So I propose to disable this cop in default configuration

@sds sds merged commit 8fe054a into sds:master Jun 3, 2019
@sds sds added the bug label Jun 3, 2019
@sds
Copy link
Owner

sds commented Jun 3, 2019

Thanks!

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

Successfully merging this pull request may close these issues.

2 participants