Skip to content

Commit

Permalink
Merge pull request #10611 from ydah/tweak-word
Browse files Browse the repository at this point in the history
Tweak uniformity of expression was implemented
  • Loading branch information
koic committed May 9, 2022
2 parents 5912850 + 7ebfcf5 commit 60d0c1d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .rubocop.yml
Expand Up @@ -97,6 +97,8 @@ Metrics/ModuleLength:
- 'spec/**/*.rb'

Naming/InclusiveLanguage:
Enabled: true
CheckStrings: true
FlaggedTerms:
behaviour:
Suggestions:
Expand All @@ -106,6 +108,7 @@ Naming/InclusiveLanguage:
- offense
Exclude:
- lib/rubocop/cop/naming/inclusive_language.rb
- spec/rubocop/cop/naming/inclusive_language_spec.rb

RSpec/FilePath:
Exclude:
Expand Down
2 changes: 1 addition & 1 deletion spec/rubocop/cli/disable_uncorrectable_spec.rb
Expand Up @@ -261,7 +261,7 @@ def our_function
end
end

context 'when exist offence for Layout/SpaceInsideArrayLiteralBrackets' do
context 'when exist offense for Layout/SpaceInsideArrayLiteralBrackets' do
context 'when `EnforcedStyle: no_space`' do
it 'does not disable anything for cops that support autocorrect' do
create_file('example.rb', <<~RUBY)
Expand Down
2 changes: 1 addition & 1 deletion spec/rubocop/cop/security/compound_hash_spec.rb
Expand Up @@ -178,7 +178,7 @@ def hash
RUBY
end

it 'registers an offence when using bitshift and OR' do
it 'registers an offense when using bitshift and OR' do
expect_offense(<<~RUBY)
def hash
([@addr, @mask_addr, @zone_id].hash << 1) | (ipv4? ? 0 : 1)
Expand Down

0 comments on commit 60d0c1d

Please sign in to comment.