rubocop-lint.yml in gitlab-styles-5.4.0 vs rubocop-lint.yml in gitlab-styles-6.0.0

- old
+ new

@@ -26,10 +26,13 @@ # Default values in optional keyword arguments and optional ordinal arguments # should not refer back to the name of the argument. Lint/CircularArgumentReference: Enabled: true +Lint/ConstantDefinitionInBlock: # (new in 0.91) + Enabled: true + # Check for debugger calls. Lint/Debugger: Enabled: true # Check for deprecated class method calls. @@ -45,10 +48,13 @@ # Checks that there are no repeated conditions used in if 'elsif'. # https://docs.rubocop.org/rubocop/0.89/cops_lint.html#lintduplicateelsifcondition Lint/DuplicateElsifCondition: Enabled: true +Lint/DuplicateRequire: # (new in 0.90) + Enabled: true + # Checks that there are no repeated exceptions used in 'rescue' expressions. # https://docs.rubocop.org/rubocop/0.89/cops_lint.html#lintduplicaterescueexception Lint/DuplicateRescueException: Enabled: true @@ -67,10 +73,13 @@ # Checks for empty ensure block. Lint/EmptyEnsure: Enabled: true +Lint/EmptyFile: # (new in 0.90) + Enabled: true + # Checks for the presence of `when` branches without a body. Lint/EmptyWhen: Enabled: true # Do not use return in an ensure block. @@ -92,10 +101,13 @@ # The number of parameters to format/sprint must match the fields. Lint/FormatParameterMismatch: Enabled: true +Lint/IdentityComparison: # (new in 0.91) + Enabled: true + # Checks for adjacent string literals on the same line, which could better be # represented as a single string literal. Lint/ImplicitStringConcatenation: Enabled: true @@ -198,10 +210,13 @@ # Checks for top level return with arguments. # https://docs.rubocop.org/rubocop/0.89/cops_lint.html#linttoplevelreturnwithargument Lint/TopLevelReturnWithArgument: Enabled: true +Lint/TrailingCommaInAttributeDeclaration: # (new in 0.90) + Enabled: true + # Do not use prefix `_` for a variable that is used. Lint/UnderscorePrefixedVariableName: Enabled: true # This cop checks for using Fixnum or Bignum constant @@ -236,11 +251,17 @@ # Checks for useless `else` in `begin..end` without `rescue`. Lint/UselessElseWithoutRescue: Enabled: true +Lint/UselessMethodDefinition: # (new in 0.90) + Enabled: true + # Checks for useless setter call to a local variable. Lint/UselessSetterCall: + Enabled: true + +Lint/UselessTimes: # (new in 0.91) Enabled: true # Possible use of operator/literal/variable in void context. Lint/Void: Enabled: true