Skip to content

Commit

Permalink
fixes for rubocop 1.9.1
Browse files Browse the repository at this point in the history
  • Loading branch information
grodowski committed Feb 6, 2021
1 parent b968c38 commit 1bd53f8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .rubocop.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
AllCops:
TargetRubyVersion: 2.4.4
TargetRubyVersion: 2.5
NewCops: enable

Style/RegexpLiteral:
EnforcedStyle: slashes
Expand Down
2 changes: 0 additions & 2 deletions lib/pronto/undercover.rb
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ def untested_lines_for(warning)
end.compact
end

# rubocop:disable Metrics/AbcSize
def undercover_options
config = Pronto::ConfigFile.new.to_h['pronto-undercover']
return ::Undercover::Options.new.parse([]) unless config
Expand All @@ -86,6 +85,5 @@ def undercover_options
opts << "-p#{config['path']}" if config['path']
::Undercover::Options.new.parse(opts)
end
# rubocop:enable Metrics/AbcSize
end
end
1 change: 1 addition & 0 deletions pronto-undercover.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ Gem::Specification.new do |spec|
f.match(/^(test|spec|features)\//)
end
spec.require_paths = ['lib']
spec.required_ruby_version = '>= 2.5'

spec.add_dependency 'pronto', '>= 0.9', '< 0.12'
spec.add_dependency 'undercover', '~> 0.3.4'
Expand Down

0 comments on commit 1bd53f8

Please sign in to comment.