Skip to content

Commit

Permalink
Suppress Naming/InclusiveLanguage warn
Browse files Browse the repository at this point in the history
  • Loading branch information
koic committed Jun 23, 2021
1 parent 377d270 commit 1f380d2
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 2 deletions.
19 changes: 19 additions & 0 deletions .rubocop.yml
Expand Up @@ -19,6 +19,25 @@ AllCops:
InternalAffairs/NodeMatcherDirective:
Enabled: false

Naming/InclusiveLanguage:
# These are excluded for compatible API names. RuboCop Rails 3.0 will fix it.
Exclude:
- lib/rubocop/cop/rails/dynamic_find_by.rb
- lib/rubocop/cop/rails/skips_model_validations.rb
- spec/rubocop/cop/rails/dynamic_find_by_spec.rb
- spec/rubocop/cop/rails/skips_model_validations_spec.rb
FlaggedTerms:
whitelist:
Suggestions:
- allowlist
blacklist:
Suggestions:
- denylist
master:
AllowedRegex:
- 'blob/master/'
- 'master \(unreleased\)'

Naming/PredicateName:
# Method define macros for dynamically generated method.
MethodDefinitionMacros:
Expand Down
2 changes: 1 addition & 1 deletion spec/rubocop/cop/rails/http_status_spec.rb
Expand Up @@ -111,7 +111,7 @@
RUBY
end

it 'does not register an offense when using whitelisted symbols' do
it 'does not register an offense when using allowed symbols' do
expect_no_offenses(<<~RUBY)
render :foo, status: :error
render :foo, status: :success
Expand Down
2 changes: 1 addition & 1 deletion tasks/cut_release.rake
Expand Up @@ -39,7 +39,7 @@ namespace :cut_release do

File.open('docs/antora.yml', 'w') do |f|
f << antora_metadata.sub(
'version: master',
'version: master', # rubocop:disable Naming/InclusiveLanguage
"version: '#{version_sans_patch(new_version)}'"
)
end
Expand Down

0 comments on commit 1f380d2

Please sign in to comment.