Skip to content

Commit

Permalink
Vendor rubocop-1.11.0 upstream configuration.
Browse files Browse the repository at this point in the history
Obvious fix; these changes are the result of automation not creative thinking.
  • Loading branch information
tas50 committed Mar 9, 2021
1 parent 4254717 commit 0f845a6
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
2 changes: 2 additions & 0 deletions config/disable_all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -897,6 +897,8 @@ Style/TrivialAccessors:
Enabled: false
Style/UnlessElse:
Enabled: false
Style/UnlessLogicalOperators:
Enabled: false
Style/UnpackFirst:
Enabled: false
Style/VariableInterpolation:
Expand Down
13 changes: 13 additions & 0 deletions config/upstream.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3446,6 +3446,8 @@ Style/HashConversion:
Description: 'Avoid Hash[] in favor of ary.to_h or literal hashes.'
Enabled: pending
VersionAdded: '1.10'
VersionChanged: '1.11'
AllowSplatArgument: true

Style/HashEachMethods:
Description: 'Use Hash#each_key and Hash#each_value.'
Expand Down Expand Up @@ -4586,6 +4588,7 @@ Style/SymbolProc:
Safe: false
VersionAdded: '0.26'
VersionChanged: '1.5'
AllowMethodsWithArguments: false
# A list of method names to be ignored by the check.
# The names should be fairly unique, otherwise you'll end up ignoring lots of code.
IgnoredMethods:
Expand Down Expand Up @@ -4738,6 +4741,16 @@ Style/UnlessElse:
Enabled: true
VersionAdded: '0.9'

Style/UnlessLogicalOperators:
Description: >-
Checks for use of logical operators in an unless condition.
Enabled: false
VersionAdded: '1.11'
EnforcedStyle: forbid_mixed_logical_operators
SupportedStyles:
- forbid_mixed_logical_operators
- forbid_logical_operators

Style/UnpackFirst:
Description: >-
Checks for accessing the first element of `String#unpack`
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.7.1"
RUBOCOP_VERSION = "1.10.0"
RUBOCOP_VERSION = "1.11.0"
end

0 comments on commit 0f845a6

Please sign in to comment.