config/upstream.yml in cookstyle-6.3.4 vs config/upstream.yml in cookstyle-6.4.4

- old
+ new

@@ -33,10 +33,11 @@ - '**/*.spec' - '**/*.thor' - '**/*.watchr' - '**/.irbrc' - '**/.pryrc' + - '**/.simplecov' - '**/buildfile' - '**/Appraisals' - '**/Berksfile' - '**/Brewfile' - '**/Buildfile' @@ -51,10 +52,11 @@ - '**/Jarfile' - '**/Mavenfile' - '**/Podfile' - '**/Puppetfile' - '**/Rakefile' + - '**/rakefile' - '**/Snapfile' - '**/Steepfile' - '**/Thorfile' - '**/Vagabondfile' - '**/Vagrantfile' @@ -373,10 +375,11 @@ Checks for condition placed in a confusing position relative to the keyword. StyleGuide: '#same-line-condition' Enabled: true VersionAdded: '0.53' + VersionChanged: '0.83' Layout/DefEndAlignment: Description: 'Align ends corresponding to defs correctly.' Enabled: true VersionAdded: '0.53' @@ -458,10 +461,16 @@ Layout/EmptyLinesAroundArguments: Description: "Keeps track of empty lines around method arguments." Enabled: true VersionAdded: '0.52' +Layout/EmptyLinesAroundAttributeAccessor: + Description: "Keep blank lines around attribute accessors." + StyleGuide: '#empty-lines-around-attribute-accessor' + Enabled: pending + VersionAdded: '0.83' + Layout/EmptyLinesAroundBeginBody: Description: "Keeps track of empty lines around begin-end bodies." StyleGuide: '#empty-lines-around-bodies' Enabled: true VersionAdded: '0.49' @@ -1293,12 +1302,12 @@ Layout/TrailingWhitespace: Description: 'Avoid trailing whitespace.' StyleGuide: '#no-trailing-whitespace' Enabled: true VersionAdded: '0.49' - VersionChanged: '0.55' - AllowInHeredoc: false + VersionChanged: '0.83' + AllowInHeredoc: true #################### Lint ################################## ### Warnings Lint/AmbiguousBlockAssociation: @@ -1314,17 +1323,19 @@ Checks for ambiguous operators in the first argument of a method invocation without parentheses. StyleGuide: '#method-invocation-parens' Enabled: true VersionAdded: '0.17' + VersionChanged: '0.83' Lint/AmbiguousRegexpLiteral: Description: >- Checks for ambiguous regexp literals in the first argument of a method invocation without parentheses. Enabled: true VersionAdded: '0.17' + VersionChanged: '0.83' Lint/AssignmentInCondition: Description: "Don't use assignment in conditions." StyleGuide: '#safe-assignment-in-condition' Enabled: true @@ -1337,12 +1348,13 @@ VersionAdded: '0.53' Lint/BooleanSymbol: Description: 'Check for `:true` and `:false` symbols.' Enabled: true + Safe: false VersionAdded: '0.50' - VersionChanged: '0.81' + VersionChanged: '0.83' Lint/CircularArgumentReference: Description: "Default values in optional keyword arguments and optional ordinal arguments should not refer back to the name of the argument." Enabled: true VersionAdded: '0.33' @@ -1409,17 +1421,20 @@ VersionChanged: '0.45' Lint/EmptyWhen: Description: 'Checks for `when` branches with empty bodies.' Enabled: true + AllowComments: true VersionAdded: '0.45' + VersionChanged: '0.83' Lint/EnsureReturn: Description: 'Do not use return in an ensure block.' StyleGuide: '#no-return-ensure' Enabled: true VersionAdded: '0.9' + VersionChanged: '0.83' Lint/ErbNewArguments: Description: 'Use `:trim_mode` and `:eoutvar` keyword arguments to `ERB.new`.' Enabled: true VersionAdded: '0.56' @@ -1563,10 +1578,11 @@ Checks for method calls with a space before the opening parenthesis. StyleGuide: '#parens-no-spaces' Enabled: true VersionAdded: '0.12' + VersionChanged: '0.83' Lint/PercentStringArray: Description: >- Checks for unwanted commas and quotes in %w/%W literals. Enabled: true @@ -1806,11 +1822,11 @@ Lint/UselessAccessModifier: Description: 'Checks for useless access modifiers.' Enabled: true VersionAdded: '0.20' - VersionChanged: '0.47' + VersionChanged: '0.83' ContextCreatingMethods: [] MethodCreatingMethods: [] Lint/UselessAssignment: Description: 'Checks for useless assignment to a local variable.' @@ -2946,10 +2962,11 @@ Style/IfWithSemicolon: Description: 'Do not use if x; .... Use the ternary operator instead.' StyleGuide: '#no-semicolon-ifs' Enabled: true VersionAdded: '0.9' + VersionChanged: '0.83' Style/ImplicitRuntimeError: Description: >- Use `raise` or `fail` with an explicit exception class and message, rather than just a message. @@ -3423,11 +3440,13 @@ Description: >- Checks for optional arguments that do not appear at the end of the argument list. StyleGuide: '#optional-arguments' Enabled: true + Safe: false VersionAdded: '0.33' + VersionChanged: '0.83' Style/OrAssignment: Description: 'Recommend usage of double pipe equals (||=) where applicable.' StyleGuide: '#double-pipe-for-uninit' Enabled: true @@ -3727,9 +3746,15 @@ StyleGuide: '#no-single-line-methods' Enabled: true VersionAdded: '0.9' VersionChanged: '0.19' AllowIfMethodIsEmpty: true + +Style/SlicingWithRange: + Description: 'Checks array slicing is done with endless ranges when suitable.' + Enabled: pending + VersionAdded: '0.83' + Safe: false Style/SpecialGlobalVars: Description: 'Avoid Perl-style global variables.' StyleGuide: '#no-cryptic-perlisms' Enabled: true