Skip to content

Commit

Permalink
CHANGE: bump rubocop to 1.7.3, adopt new plugins config, fix cop-foun…
Browse files Browse the repository at this point in the history
…d issue
  • Loading branch information
faisal committed Mar 4, 2025
1 parent fd4a1e5 commit 90f6ce1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .rubocop.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require:
plugins:
- rubocop-minitest
- rubocop-performance
- rubocop-rake
Expand Down
3 changes: 2 additions & 1 deletion lib/rubycritic/source_control_systems/mercurial.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ class Mercurial < Base
register_system

def self.supported?
`hg verify 2>&1` && $CHILD_STATUS.success?
hg_verify = `hg verify 2>&1`
hg_verify && $CHILD_STATUS.success?
end

def self.to_s
Expand Down
2 changes: 1 addition & 1 deletion rubycritic.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ Gem::Specification.new do |spec|
spec.add_development_dependency 'rake', '~> 13.2.0', '>= 11.0.0'
spec.add_development_dependency 'rdoc'
spec.add_development_dependency 'rexml', '>= 3.2.0'
spec.add_development_dependency 'rubocop', '~> 1.70.0', '>= 1.54.0'
spec.add_development_dependency 'rubocop', '~> 1.73.2', '>= 1.72.0'
spec.add_development_dependency 'rubocop-minitest'
spec.add_development_dependency 'rubocop-performance'
spec.add_development_dependency 'rubocop-rake'
Expand Down

0 comments on commit 90f6ce1

Please sign in to comment.