Skip to content

Commit

Permalink
Enable and configure Naming/InclusiveLanguage
Browse files Browse the repository at this point in the history
  • Loading branch information
tjwp committed Jun 30, 2021
1 parent 042b6e1 commit 4c3db06
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,41 @@ Naming/HeredocDelimiterCase:
Naming/HeredocDelimiterNaming:
Enabled: false

Naming/InclusiveLanguage:
Enabled: true
CheckIdentifiers: true
CheckConstants: true
CheckVariables: true
# CheckStrings is false in the rubocop defaults
CheckStrings: true
CheckSymbols: true
CheckComments: true
CheckFilepaths: true
FlaggedTerms:
whitelist:
Regex: !ruby/regexp '/white[-_\s]?list/'
Suggestions:
- allowlist
- permit
blacklist:
Regex: !ruby/regexp '/black[-_\s]?list/'
Suggestions:
- denylist
- block
master:
Suggestions:
- primary
- leader
AllowedRegex:
- !ruby/regexp '/master[_\s\.]key/' # Rails master key
- 'blob/master/'
- 'origin/master'
slave:
Suggestions:
- replica
- secondary
- follower

Naming/MemoizedInstanceVariableName:
Enabled: false

Expand Down

0 comments on commit 4c3db06

Please sign in to comment.