Skip to content

Commit

Permalink
Add examples for Style/AccessorGrouping
Browse files Browse the repository at this point in the history
Follow up #11602 (comment).

This PR adds examples for `Style/AccessorGrouping`.
  • Loading branch information
koic authored and bbatsov committed Feb 23, 2023
1 parent f67164c commit e74bed3
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions lib/rubocop/cop/style/accessor_grouping.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,15 @@ module Style
# attr_reader :bar, :baz
# end
#
# # good
# class Foo
# # may be intended comment for bar.
# attr_reader :bar
#
# may_be_intended_annotation :baz
# attr_reader :baz
# end
#
# @example EnforcedStyle: separated
# # bad
# class Foo
Expand Down

0 comments on commit e74bed3

Please sign in to comment.