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
This code is impossible to validate because one of the following two offenses is triggered.
Layout/EmptyLinesAroundClassBody: Empty line missing before first def definition
Layout/EmptyLinesAroundAccessModifier: Remove a blank line after private.
My belief is that the code as-is should be valid and satisfy both rules. But I also believe that Layout/EmptyLinesAroundClassBody shouldn't be relevant if the first method is after an access modifier (the new line above private satisfies this rule, in my opinion).
RuboCop 0.89.1
Attempting to autocorrect this code sends the autocorrecter into an infinite loop.
The text was updated successfully, but these errors were encountered:
Expected behavior
This code is valid.
Actual behavior
This code is impossible to validate because one of the following two offenses is triggered.
My belief is that the code as-is should be valid and satisfy both rules. But I also believe that
Layout/EmptyLinesAroundClassBody
shouldn't be relevant if the first method is after an access modifier (the new line aboveprivate
satisfies this rule, in my opinion).RuboCop 0.89.1
Attempting to autocorrect this code sends the autocorrecter into an infinite loop.
The text was updated successfully, but these errors were encountered: