Skip to content

Commit 98b4c70

Browse files
authored
CHANGE: bump rubocop to 1.7.3, adopt new plugins config, fix cop-found issue (#507)
1 parent fd4a1e5 commit 98b4c70

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

.rubocop.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
require:
1+
plugins:
22
- rubocop-minitest
33
- rubocop-performance
44
- rubocop-rake

lib/rubycritic/source_control_systems/mercurial.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ class Mercurial < Base
66
register_system
77

88
def self.supported?
9-
`hg verify 2>&1` && $CHILD_STATUS.success?
9+
hg_verify = `hg verify 2>&1`
10+
hg_verify && $CHILD_STATUS.success?
1011
end
1112

1213
def self.to_s

rubycritic.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ Gem::Specification.new do |spec|
6161
spec.add_development_dependency 'rake', '~> 13.2.0', '>= 11.0.0'
6262
spec.add_development_dependency 'rdoc'
6363
spec.add_development_dependency 'rexml', '>= 3.2.0'
64-
spec.add_development_dependency 'rubocop', '~> 1.70.0', '>= 1.54.0'
64+
spec.add_development_dependency 'rubocop', '~> 1.73.2', '>= 1.72.0'
6565
spec.add_development_dependency 'rubocop-minitest'
6666
spec.add_development_dependency 'rubocop-performance'
6767
spec.add_development_dependency 'rubocop-rake'

0 commit comments

Comments
 (0)