Add a cop that checks grouping of accessor methods #3983
Labels
feature request
stale
Issues that haven't been active in a while
style guide
Requires update(s) to the Ruby Style Guide
As per this issue, there should be a cop that checks the grouping of
attr_reader
,attr_writer
andattr_accessor
, i.e.Style/AccessorGrouping
.All references to accessor methods in the style guide uses a grouped style, e.g.:
and I think this should be the default. There is no explicit section on this however, so it should probably be added as part of work on this cop.
Note: accessor methods are affected by visibility scopes (
public
,protected
,private
) and the cop needs to take this into account.The text was updated successfully, but these errors were encountered: