Skip to content

Commit

Permalink
Enable new Style/Hash* cops (#107)
Browse files Browse the repository at this point in the history
* Update rubocop and enable new Hash cops

* Bump version to 0.17.0
  • Loading branch information
jlw authored Feb 27, 2020
1 parent 0f12cf2 commit a9dfed2
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 5 deletions.
10 changes: 6 additions & 4 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
ramsey_cop (0.16.0)
ramsey_cop (0.17.0)
rubocop (~> 0.62)
rubocop-performance

Expand All @@ -12,10 +12,11 @@ GEM
diff-lcs (1.3)
jaro_winkler (1.5.4)
parallel (1.19.1)
parser (2.7.0.1)
parser (2.7.0.3)
ast (~> 2.4.0)
rainbow (3.0.0)
rake (12.3.3)
rexml (3.2.4)
rspec (3.9.0)
rspec-core (~> 3.9.0)
rspec-expectations (~> 3.9.0)
Expand All @@ -29,17 +30,18 @@ GEM
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.9.0)
rspec-support (3.9.2)
rubocop (0.79.0)
rubocop (0.80.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)
rubocop-performance (1.5.2)
rubocop (>= 0.71.0)
ruby-progressbar (1.10.1)
unicode-display_width (1.6.0)
unicode-display_width (1.6.1)

PLATFORMS
ruby
Expand Down
9 changes: 9 additions & 0 deletions default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,15 @@ Style/Documentation:
Style/FrozenStringLiteralComment:
Enabled: false

Style/HashEachMethods:
Enabled: true

Style/HashTransformKeys:
Enabled: true

Style/HashTransformValues:
Enabled: true

Style/Lambda:
Enabled: false

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.16.0".freeze
VERSION = "0.17.0".freeze
end

0 comments on commit a9dfed2

Please sign in to comment.