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
I have a subclass in my current Rails project that looks approximately like so:
# Test class.classFooprivatedefbarputs'bar'endend
For which I now (on master: 7b8e9ab ) get the warning:
C: Keep a blank line before and after private.
But if I do as it says and add the blank line before private, I get the following message:
C: Extra blank line detected at body beginning.
I think the EmptyLinesAroundAccessModifier cop should be relaxed by not requiring a blank line before the access modifier if it is the first semantic element in the class body.
The text was updated successfully, but these errors were encountered:
Yeah, that's a bug in the check for empty lines around access modifiers. I knew this would be problematic, but it took some time before some complained about it. :-) I'll have that fixed.
I have a subclass in my current Rails project that looks approximately like so:
For which I now (on
master
: 7b8e9ab ) get the warning:But if I do as it says and add the blank line before
private
, I get the following message:I think the
EmptyLinesAroundAccessModifier
cop should be relaxed by not requiring a blank line before the access modifier if it is the first semantic element in the class body.The text was updated successfully, but these errors were encountered: