config/enabled.yml in rubocop-0.20.1 vs config/enabled.yml in rubocop-0.21.0

- old
+ new

@@ -129,10 +129,14 @@ DefWithParentheses: Description: 'Use def with parentheses when there are arguments.' Enabled: true +Delegate: + Description: 'Prefer delegate method for delegations.' + Enabled: true + DeprecatedHashMethods: Description: 'Checks for use of deprecated Hash methods.' Enabled: true Documentation: @@ -185,14 +189,10 @@ FileName: Description: 'Use snake_case for source file names.' Enabled: true -FinalNewline: - Description: 'Checks for a final newline in a source file.' - Enabled: true - FlipFlop: Description: 'Checks for flip flops' Enabled: true For: @@ -252,11 +252,13 @@ LeadingCommentSpace: Description: 'Comments should start with a space.' Enabled: true LineEndConcatenation: - Description: 'Use \\ instead of + to concatenate two string literals at line end.' + Description: >- + Use \ instead of + or << to concatenate two string literals at + line end. Enabled: true LineLength: Description: 'Limit lines to 79 characters.' Enabled: true @@ -500,11 +502,11 @@ Tab: Description: 'No hard tabs.' Enabled: true TrailingBlankLines: - Description: 'Checks for superfluous trailing blank lines.' + Description: 'Checks trailing blank lines and final newline.' Enabled: true TrailingComma: Description: 'Checks for trailing comma in parameter lists and literals.' Enabled: true @@ -521,10 +523,14 @@ Description: >- Never use unless with else. Rewrite these with the positive case first. Enabled: true +UnneededCapitalW: + Description: 'Checks for %W when interpolation is not needed.' + Enabled: true + VariableInterpolation: Description: >- Don't interpolate global, instance and class variables directly in strings. Enabled: true @@ -661,14 +667,26 @@ Enabled: true SpaceBeforeFirstArg: Description: >- Put a space between a method name and the first argument - in a method call wihtout parentheses. + in a method call without parentheses. Enabled: true StringConversionInInterpolation: Description: 'Checks for Object#to_s usage in string interpolation.' + Enabled: true + +UnderscorePrefixedVariableName: + Description: 'Do not use prefix `_` for a variable that is used.' + Enabled: true + +UnusedBlockArgument: + Description: 'Checks for unused block arguments.' + Enabled: true + +UnusedMethodArgument: + Description: 'Checks for unused method arguments.' Enabled: true UnreachableCode: Description: 'Unreachable code.' Enabled: true