Skip to content

Commit 2fc34b6

Browse files
authored
Merge pull request #1814 from troessner/update-rubocop
Update RuboCop and handle new offenses
2 parents a1d4894 + cd8a304 commit 2fc34b6

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

.rubocop.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,10 @@ Metrics/BlockLength:
6767
Metrics/ParameterLists:
6868
CountKeywordArgs: false
6969

70+
# This cop does not detect predicate methods very well
71+
Naming/PredicateMethod:
72+
Enabled: false
73+
7074
Naming/RescuedExceptionsVariableName:
7175
PreferredName: error
7276

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ gem 'cucumber', '~> 9.0'
1010
gem 'rake', '~> 13.0'
1111
gem 'rspec', '~> 3.0'
1212
gem 'rspec-benchmark', '~> 0.6.0'
13-
gem 'rubocop', '~> 1.75.0'
13+
gem 'rubocop', '~> 1.76.1'
1414
gem 'rubocop-performance', '~> 1.25.0'
1515
gem 'rubocop-rspec', '~> 3.6.0'
1616
gem 'simplecov', '~> 0.22.0'

lib/reek/report/text_report.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def sort_examiners
6262

6363
def total_smell_count_message
6464
colour = smells? ? WARNINGS_COLOR : NO_WARNINGS_COLOR
65-
Rainbow("#{total_smell_count} total warning#{total_smell_count == 1 ? '' : 's'}\n").color(colour)
65+
Rainbow("#{total_smell_count} total warning#{'s' unless total_smell_count == 1}\n").color(colour)
6666
end
6767
end
6868
end

0 commit comments

Comments
 (0)