Skip to content

Commit 7ebfcf5

Browse files
committed
Tweak uniformity of expression was implemented
This PR is unified word fluctuation. Use "offense" instead of "offence"
1 parent 5912850 commit 7ebfcf5

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

.rubocop.yml

+3
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,8 @@ Metrics/ModuleLength:
9797
- 'spec/**/*.rb'
9898

9999
Naming/InclusiveLanguage:
100+
Enabled: true
101+
CheckStrings: true
100102
FlaggedTerms:
101103
behaviour:
102104
Suggestions:
@@ -106,6 +108,7 @@ Naming/InclusiveLanguage:
106108
- offense
107109
Exclude:
108110
- lib/rubocop/cop/naming/inclusive_language.rb
111+
- spec/rubocop/cop/naming/inclusive_language_spec.rb
109112

110113
RSpec/FilePath:
111114
Exclude:

spec/rubocop/cli/disable_uncorrectable_spec.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ def our_function
261261
end
262262
end
263263

264-
context 'when exist offence for Layout/SpaceInsideArrayLiteralBrackets' do
264+
context 'when exist offense for Layout/SpaceInsideArrayLiteralBrackets' do
265265
context 'when `EnforcedStyle: no_space`' do
266266
it 'does not disable anything for cops that support autocorrect' do
267267
create_file('example.rb', <<~RUBY)

spec/rubocop/cop/security/compound_hash_spec.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ def hash
178178
RUBY
179179
end
180180

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

0 commit comments

Comments
 (0)