You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The text was updated successfully, but these errors were encountered:
5t111111
changed the title
IndentationConsistency with "EnforcedStyle: rails" does not work in Rails
IndentationConsistency with "EnforcedStyle: rails" does not work in Rails concerns
Sep 14, 2016
jonas054
added a commit
to jonas054/rubocop
that referenced
this issue
Oct 23, 2016
…onWidth
IndentationWidth already checks the first statement inside a block,
and IndentationConsistency checks that each statement is aligned with
the previous one, but the special indentation that is indicated by
`IndentationConsistency: EnforcedStyle: rails` needs to be done for
blocks too, not just classes and modules.
In Rails concerns, IndentationConsistency with "EnforcedStyle: rails" does not detect incorrect indentation.
Expected behavior
In the above code, the method
bar
should be indented to 1 more depth, but Rubocop does not complain about this.Actual behavior
No inconsistent indentation is detected.
Steps to reproduce the problem
IndentationConsistency
withEnforcedStyle: rails
in your Rubocop configRuboCop version
Include the output of
rubocop -V
:The text was updated successfully, but these errors were encountered: