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
Is your feature request related to a problem? Please describe.
The following generates a Style/EmptyLinesAroundAttributeAccessor offense.
# Disable cop to allow comments on each accessor in a separate line# rubocop:disable Style/AccessorGroupingattr_accessor:var# name of global variable to assign it to if anyattr_accessor:points# array of [lat, long]attr_accessor:color# css-format color stringattr_accessor:weight# width of line in pixelsattr_accessor:opacity# from 0.0 to 1.0# rubocop:enable Style/AccessorGroupingmorecode
Describe the solution you'd like
Rubocop should not generate an offense if the accessors are followed by a # rubocop: comment.
Describe alternatives you've considered
I considered excluding the file in the cop. But that would turn off the cop for the entire file.
I don't like that because it means that Rubocop will not detect other accessors that could be grouped.
Additional context
rubocop 1.30.0
The text was updated successfully, but these errors were encountered:
JoeCohen
added a commit
to MushroomObserver/mushroom-observer
that referenced
this issue
Jun 5, 2022
Is your feature request related to a problem? Please describe.
The following generates a Style/EmptyLinesAroundAttributeAccessor offense.
Describe the solution you'd like
Rubocop should not generate an offense if the accessors are followed by a
# rubocop:
comment.Describe alternatives you've considered
I considered excluding the file in the cop. But that would turn off the cop for the entire file.
I don't like that because it means that Rubocop will not detect other accessors that could be grouped.
Additional context
rubocop 1.30.0
The text was updated successfully, but these errors were encountered: