We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I expect the following
class Foo public def bar puts 42 end def baz puts 42 end def nop puts 42 end end
to be corrected to
Nothing is corrected in that case.
Additionally, rubocop will adjust indentation based on the first method. For example,
is corrected to
When using no access modifier, methods are always indented to two spaces, as expected.
Run rubocop on the previous examples with default configuration and no arguments.
$ rubocop -V 0.52.1 (using Parser 2.4.0.2, running on ruby 2.2.4 x86_64-linux-gnu)
$ ruby --version ruby 2.2.4p230 (2015-12-16) [x86_64-linux-gnu]
The text was updated successfully, but these errors were encountered:
[Fix rubocop#5380] Fix false negative in Layout/IndentationWidth cop
Layout/IndentationWidth
25c1c03
Fix `Layout/IndentationWidth` not detecting invalid indentation of methods in an access modifier section.
[Fix #5380] Fix false negative in Layout/IndentationWidth cop (#5962)
8fb4166
Successfully merging a pull request may close this issue.
Expected behavior
I expect the following
to be corrected to
Actual behavior
Nothing is corrected in that case.
Additionally, rubocop will adjust indentation based on the first method. For example,
is corrected to
When using no access modifier, methods are always indented to two spaces, as expected.
Steps to reproduce the problem
Run rubocop on the previous examples with default configuration and no arguments.
RuboCop version
The text was updated successfully, but these errors were encountered: