forked from rubocop/rubocop
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Fix rubocop#7976] Add ignore options for `Layout/EmptyLinesAroundAtt…
…ributeAccessor` Fixes rubocop#7976 and rubocop#7981 This PR adds `AllowAliasSyntax` and `AllowedMethods` options. for `Layout/EmptyLinesAroundAttributeAccessor` cop. Users can configure a behavior for `alias` syntax using `IgnoreAliasSyntax` option. Ignored by default (true). And users can specify ignored methods using `AllowedMethods`. By default, set `alias_method`, `public`, `protected`, and `private` provided by Ruby. `cattr_accessor`, `attribute`, other methods provided by Rails (and other gems) can be set by user applications or RuboCop Rails gem.
- Loading branch information
Showing
5 changed files
with
186 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters