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 seen redundant disable comments being flagged. What I don't get is that second one here is not flagged though... and it actually CAUSES a warning???!!!
# make rubocop happyclassPasses# rubocop:disable Style/ClassVars@@class_var='no problems here'end# make rubocopy sadclassOffensive# Removing the next comment line makes for a happy rubocop - why?# rubocop:disable Style/ClassVars@@class_var='broken?'end
The text was updated successfully, but these errors were encountered:
Removing the second rubocop:disable makes Style/ClassVars disabled from line 3 to the end of the file. This is normal. The bug is that the second rubocop:disable Style/ClassVars seems to make the first one ineffective.
In #1690, @HaleTom wrote
The text was updated successfully, but these errors were encountered: