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
$ rubocop -Da
Inspecting 2 files
.W
Offenses:
test.rb:3:3: C: [Corrected] Style/EmptyMethod: Put the end of empty method definitions on the next line.
def m; end
^^^^^^^^^^
test.rb:4:1: W: Lint/DefEndAlignment: end at 4, 0 is not aligned with def at 3, 2.
end
^^^
2 files inspected, 2 offenses detected, 1 offense corrected
…n auto-correcting
This cop would ignore indentation when auto-correcting compact style
into expanded style, resulting in indentation problems like:
```
class Foo
def bar
end
end
```
This change fixes that.
Expected behavior
The
Style/EmptyMethod
(EnforcedStyle: expanded
) cop corrects without warnings.Actual behavior
It corrects, but it causes
Lint/DefEndAlignment
warning.Steps to reproduce the problem
RuboCop version
The text was updated successfully, but these errors were encountered: