diff --git a/config/disable_all.yml b/config/disable_all.yml index 9e9bc4c..201fd0e 100644 --- a/config/disable_all.yml +++ b/config/disable_all.yml @@ -897,6 +897,8 @@ Style/TrivialAccessors: Enabled: false Style/UnlessElse: Enabled: false +Style/UnlessLogicalOperators: + Enabled: false Style/UnpackFirst: Enabled: false Style/VariableInterpolation: diff --git a/config/upstream.yml b/config/upstream.yml index 01d3bcc..80330a9 100644 --- a/config/upstream.yml +++ b/config/upstream.yml @@ -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.' @@ -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: @@ -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` diff --git a/lib/chefstyle/version.rb b/lib/chefstyle/version.rb index 05ead3c..bd6151e 100644 --- a/lib/chefstyle/version.rb +++ b/lib/chefstyle/version.rb @@ -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