Skip to content

Commit

Permalink
Merge pull request #114 from chef/141
Browse files Browse the repository at this point in the history
Update to Rubocop 1.4.1
  • Loading branch information
tas50 authored Nov 25, 2020
2 parents d2bfdf3 + 6a1ea8e commit f4a923a
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 3 deletions.
2 changes: 2 additions & 0 deletions config/disable_all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -755,6 +755,8 @@ Style/RaiseArgs:
Enabled: false
Style/RandomWithOffset:
Enabled: false
Style/RedundantArgument:
Enabled: false
Style/RedundantBegin:
Enabled: false
Style/RedundantCapitalW:
Expand Down
20 changes: 18 additions & 2 deletions config/upstream.yml
Original file line number Diff line number Diff line change
Expand Up @@ -463,6 +463,10 @@ Layout/EmptyLineBetweenDefs:
StyleGuide: '#empty-lines-between-methods'
Enabled: true
VersionAdded: '0.49'
VersionChanged: '1.4'
EmptyLineBetweenMethodDefs: true
EmptyLineBetweenClassDefs: true
EmptyLineBetweenModuleDefs: true
# If `true`, this parameter means that single line method definitions don't
# need an empty line between them.
AllowAdjacentOneLineDefs: false
Expand Down Expand Up @@ -891,8 +895,8 @@ Layout/LineLength:
StyleGuide: '#max-line-length'
Enabled: true
VersionAdded: '0.25'
VersionChanged: '1.3'
AutoCorrect: false
VersionChanged: '1.4'
AutoCorrect: true
Max: 120
# To make it possible to copy or click on URIs in the code, we allow lines
# containing a URI to be longer than Max.
Expand Down Expand Up @@ -1684,6 +1688,7 @@ Lint/MissingSuper:
without calls to `super`'.
Enabled: true
VersionAdded: '0.89'
VersionChanged: '1.4'

Lint/MixedRegexpCaptureTypes:
Description: 'Do not mix named captures and numbered captures in a Regexp literal.'
Expand Down Expand Up @@ -3976,6 +3981,17 @@ Style/RandomWithOffset:
Enabled: true
VersionAdded: '0.52'

Style/RedundantArgument:
Description: 'Check for a redundant argument passed to certain methods.'
Enabled: pending
Safe: false
VersionAdded: '1.4'
Methods:
# Array#join
join: ''
# String#split
split: ' '

Style/RedundantAssignment:
Description: 'Checks for redundant assignment before returning.'
Enabled: true
Expand Down
2 changes: 1 addition & 1 deletion lib/chefstyle/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true
module Chefstyle
VERSION = "1.5.2"
RUBOCOP_VERSION = "1.3.1"
RUBOCOP_VERSION = "1.4.1"
end

0 comments on commit f4a923a

Please sign in to comment.