AccessModifierIndentation
and CommentIndentation
does not work well together
#11237
Labels
AccessModifierIndentation
and CommentIndentation
does not work well together
#11237
# rubocop: enable
and# rubocop:disable
may wrap whole method definition.In such case, indentation should be based on wrapped method.
Expected behavior
No offenses.
Actual behavior
Having one offense.
We cannot suppress offense as long as comment is followed by access modifier.
Steps to reproduce the problem
Lint following file with the setting below:
foo.rb
test.rubocop.yml
This is extremely important! Providing us with a reliable way to reproduce
a problem will expedite its solution.
RuboCop version
Include the output of
rubocop -V
orbundle exec rubocop -V
if using Bundler.If you see extension cop versions (e.g.
rubocop-performance
,rubocop-rspec
, and others)output by
rubocop -V
, include them as well. Here's an example:The text was updated successfully, but these errors were encountered: