Skip to content

Commit

Permalink
Document interaction of Style/AccessorGrouping and Sorbet [doc]
Browse files Browse the repository at this point in the history
  • Loading branch information
marcandre authored and mergify[bot] committed Oct 1, 2020
1 parent f845314 commit dab9cde
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/modules/ROOT/pages/cops_style.adoc
Expand Up @@ -120,6 +120,9 @@ This cop 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.

Note: `Sorbet` is not compatible with "grouped" style. Consider "separated" style
or disabling this cop.

=== Examples

==== EnforcedStyle: grouped (default)
Expand Down
3 changes: 3 additions & 0 deletions lib/rubocop/cop/style/accessor_grouping.rb
Expand Up @@ -7,6 +7,9 @@ module Style
# By default it enforces accessors to be placed in grouped declarations,
# but it can be configured to enforce separating them in multiple declarations.
#
# Note: `Sorbet` is not compatible with "grouped" style. Consider "separated" style
# or disabling this cop.
#
# @example EnforcedStyle: grouped (default)
# # bad
# class Foo
Expand Down

0 comments on commit dab9cde

Please sign in to comment.