Skip to content

Commit 183b249

Browse files
authored
Merge pull request #564 from kpost/allow_remaster_inclusive_language
2 parents 78f3ac4 + b2c7616 commit 183b249

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

rubocop.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -381,8 +381,7 @@ Naming/InclusiveLanguage:
381381
- !ruby/regexp /\w*:\/\/\S+/ # URLs (e.g. https://github.com/org/repo/blob/master/README.md)
382382
- !ruby/regexp '/(?:blob|tree)/master/' # e.g. github.com/org/repo/blob/master/README.md, without https://
383383
- !ruby/regexp '/origin[ \/]master/' # Legacy default git branch name
384-
- 'mastercard'
385-
- 'webmaster'
384+
- !ruby/regexp '/(?<=[a-z])master|master(?=[a-z])/' # "master" substring within a longer word
386385

387386
Naming/MemoizedInstanceVariableName:
388387
Enabled: false

test/fixtures/full_config.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2146,8 +2146,7 @@ Naming/InclusiveLanguage:
21462146
- !ruby/regexp /\w*:\/\/\S+/
21472147
- !ruby/regexp /(?:blob|tree)\/master/
21482148
- !ruby/regexp /origin[ \/]master/
2149-
- mastercard
2150-
- webmaster
2149+
- !ruby/regexp /(?<=[a-z])master|master(?=[a-z])/
21512150
Naming/MemoizedInstanceVariableName:
21522151
Description: Memoized method name should match memo instance variable name.
21532152
Enabled: false

0 commit comments

Comments
 (0)