Skip to content

Commit

Permalink
Tweak uniformity of expression was implemented
Browse files Browse the repository at this point in the history
This PR is unified word fluctuation.
Use "offense" instead of "offence"
  • Loading branch information
ydah committed May 9, 2022
1 parent 5912850 commit 7ebfcf5
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 7ebfcf5

Please sign in to comment.