Skip to content

Commit

Permalink
Enable new Lint cops (#112)
Browse files Browse the repository at this point in the history
* Update rubocop to v0.81 and enable new Lint cops

* Bump version to 0.19.0
  • Loading branch information
pmgower authored Apr 13, 2020
1 parent 2fcd384 commit a4de20f
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 8 deletions.
12 changes: 6 additions & 6 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
PATH
remote: .
specs:
ramsey_cop (0.18.0)
rubocop (>= 0.80.1)
ramsey_cop (0.19.0)
rubocop (>= 0.81)
rubocop-performance (>= 1.5.2)

GEM
Expand All @@ -12,7 +12,7 @@ GEM
diff-lcs (1.3)
jaro_winkler (1.5.4)
parallel (1.19.1)
parser (2.7.0.4)
parser (2.7.1.0)
ast (~> 2.4.0)
rainbow (3.0.0)
rake (12.3.3)
Expand All @@ -30,18 +30,18 @@ GEM
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.9.0)
rspec-support (3.9.2)
rubocop (0.80.1)
rubocop (0.81.0)
jaro_winkler (~> 1.5.1)
parallel (~> 1.10)
parser (>= 2.7.0.1)
rainbow (>= 2.2.2, < 4.0)
rexml
ruby-progressbar (~> 1.7)
unicode-display_width (>= 1.4.0, < 1.7)
unicode-display_width (>= 1.4.0, < 2.0)
rubocop-performance (1.5.2)
rubocop (>= 0.71.0)
ruby-progressbar (1.10.1)
unicode-display_width (1.6.1)
unicode-display_width (1.7.0)

PLATFORMS
ruby
Expand Down
6 changes: 6 additions & 0 deletions default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ Layout/LineLength:
- config/routes/*
- db/migrate/*

Lint/RaiseException:
Enabled: true

Lint/StructNewOverride:
Enabled: true

Metrics/AbcSize:
Exclude:
- spec/**/*
Expand Down
2 changes: 1 addition & 1 deletion lib/ramsey_cop/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module RamseyCop
VERSION = "0.18.0".freeze
VERSION = "0.19.0".freeze
end
2 changes: 1 addition & 1 deletion ramsey_cop.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Gem::Specification.new do |spec|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
spec.require_paths = ["lib"]

spec.add_dependency "rubocop", ">= 0.80.1"
spec.add_dependency "rubocop", ">= 0.81"
spec.add_dependency "rubocop-performance", ">= 1.5.2"
spec.add_development_dependency "bundler", "~> 1.14"
spec.add_development_dependency "rake", "~> 12.3"
Expand Down

0 comments on commit a4de20f

Please sign in to comment.