Skip to content

Files

Latest commit

 

History

History
26 lines (18 loc) · 531 Bytes

Style-AccessorGrouping.md

File metadata and controls

26 lines (18 loc) · 531 Bytes

Pattern: Wrong accessor grouping

Issue: -

Description

Checks for grouping of accessors in class and module bodies. By default it enforces accessors to be placed in grouped declarations, but it can be configured to enforce separating them in multiple declarations.

Examples

# bad
class Foo
  attr_reader :bar
  attr_reader :baz
end

# good
class Foo
  attr_reader :bar, :baz
end

Further Reading