config/default.yml in rubocop-1.40.0 vs config/default.yml in rubocop-1.41.0

- old
+ new

@@ -760,10 +760,11 @@ Description: >- Checks for a line break before the first element in a multi-line array. Enabled: false VersionAdded: '0.49' + AllowMultilineFinalElement: false Layout/FirstHashElementIndentation: Description: 'Checks the indentation of the first key in a hash literal.' Enabled: true VersionAdded: '0.68' @@ -792,24 +793,27 @@ Description: >- Checks for a line break before the first element in a multi-line hash. Enabled: false VersionAdded: '0.49' + AllowMultilineFinalElement: false Layout/FirstMethodArgumentLineBreak: Description: >- Checks for a line break before the first argument in a multi-line method call. Enabled: false VersionAdded: '0.49' + AllowMultilineFinalElement: false Layout/FirstMethodParameterLineBreak: Description: >- Checks for a line break before the first parameter in a multi-line method parameter definition. Enabled: false VersionAdded: '0.49' + AllowMultilineFinalElement: false Layout/FirstParameterIndentation: Description: >- Checks the indentation of the first parameter in a method definition. @@ -1065,10 +1069,11 @@ Description: >- Checks that each item in a multi-line array literal starts on a separate line. Enabled: false VersionAdded: '0.67' + AllowMultilineFinalElement: false Layout/MultilineAssignmentLayout: Description: 'Check for a newline after the assignment operator in multi-line assignments.' StyleGuide: '#indent-conditional-assignment' Enabled: false @@ -1115,17 +1120,19 @@ Description: >- Checks that each item in a multi-line hash literal starts on a separate line. Enabled: false VersionAdded: '0.67' + AllowMultilineFinalElement: false Layout/MultilineMethodArgumentLineBreaks: Description: >- Checks that each argument in a multi-line method call starts on a separate line. Enabled: false VersionAdded: '0.67' + AllowMultilineFinalElement: false Layout/MultilineMethodCallBraceLayout: Description: >- Checks that the closing brace in a method call is either on the same line as the last method argument, or @@ -1176,10 +1183,11 @@ Description: >- Checks that each parameter in a multi-line method definition starts on a separate line. Enabled: false VersionAdded: '1.32' + AllowMultilineFinalElement: false Layout/MultilineOperationIndentation: Description: >- Checks indentation of binary operations that span more than one line. @@ -3416,10 +3424,15 @@ Enabled: true SafeAutoCorrect: false VersionAdded: '0.51' VersionChanged: '1.19' +Style/ConcatArrayLiterals: + Description: 'Enforces the use of `Array#push(item)` instead of `Array#concat([item])` to avoid redundant array literals.' + Enabled: pending + VersionAdded: '1.41' + Style/ConditionalAssignment: Description: >- Use the return value of `if` and `case` statements for assignment to a variable and variable comparison instead of assigning that variable inside of each branch. @@ -4728,9 +4741,14 @@ Style/RedundantConstantBase: Description: Avoid redundant `::` prefix on constant. Enabled: pending VersionAdded: '1.40' + +Style/RedundantDoubleSplatHashBraces: + Description: 'Checks for redundant uses of double splat hash braces.' + Enabled: pending + VersionAdded: '1.41' Style/RedundantEach: Description: 'Checks for redundant `each`.' Enabled: pending Safe: false