diff --git a/config/disable_all.yml b/config/disable_all.yml index 201fd0e..e05aa35 100644 --- a/config/disable_all.yml +++ b/config/disable_all.yml @@ -851,6 +851,8 @@ Style/StabbyLambdaParentheses: Enabled: false Style/StderrPuts: Enabled: false +Style/StringChars: + Enabled: false Style/StringConcatenation: Enabled: false Style/StringHashKeys: diff --git a/config/upstream.yml b/config/upstream.yml index 80330a9..4262bdb 100644 --- a/config/upstream.yml +++ b/config/upstream.yml @@ -2055,13 +2055,18 @@ Lint/SuppressedException: StyleGuide: '#dont-hide-exceptions' Enabled: true AllowComments: true + AllowNil: true VersionAdded: '0.9' - VersionChanged: '0.81' + VersionChanged: '1.12' Lint/SymbolConversion: Description: 'Checks for unnecessary symbol conversions.' Enabled: pending VersionAdded: '1.9' + EnforcedStyle: strict + SupportedStyles: + - strict + - consistent Lint/Syntax: Description: 'Checks for syntax errors.' @@ -2489,6 +2494,7 @@ Naming/MemoizedInstanceVariableName: - disallowed - required - optional + Safe: false Naming/MethodName: Description: 'Use the configured style when naming methods.' @@ -3174,6 +3180,7 @@ Style/Documentation: Description: 'Document classes and non-namespace modules.' Enabled: true VersionAdded: '0.9' + AllowedConstants: [] Exclude: - 'spec/**/*' - 'test/**/*' @@ -3672,6 +3679,7 @@ Style/MethodCallWithArgsParentheses: AllowParenthesesInMultilineCall: false AllowParenthesesInChaining: false AllowParenthesesInCamelCaseMethod: false + AllowParenthesesInStringInterpolation: false EnforcedStyle: require_parentheses SupportedStyles: - require_parentheses @@ -4491,6 +4499,13 @@ Style/StderrPuts: Enabled: true VersionAdded: '0.51' +Style/StringChars: + Description: 'Checks for uses of `String#split` with empty string or regexp literal argument.' + StyleGuide: '#string-chars' + Enabled: pending + Safe: false + VersionAdded: '1.12' + Style/StringConcatenation: Description: 'Checks for places where string concatenation can be replaced with string interpolation.' StyleGuide: '#string-interpolation' diff --git a/lib/chefstyle/version.rb b/lib/chefstyle/version.rb index 329a7bd..b7826aa 100644 --- a/lib/chefstyle/version.rb +++ b/lib/chefstyle/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module Chefstyle VERSION = "1.7.3" - RUBOCOP_VERSION = "1.11.0" + RUBOCOP_VERSION = "1.12.0" end