Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tweak uniformity of expression was implemented #10611

Merged
merged 1 commit into from May 9, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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