config/enabled.yml in rubocop-0.12.0 vs config/enabled.yml in rubocop-0.13.0

- old
+ new

@@ -18,10 +18,18 @@ TrailingWhitespace: Description: 'Avoid trailing whitespace.' Enabled: true +TrailingBlankLines: + Description: 'Checks for superflous trailing blank lines.' + Enabled: true + +FinalNewline: + Description: 'Checks for a final newline in a source file.' + Enabled: true + CaseIndentation: Description: 'Indent when as deep as case.' Enabled: true EmptyLineBetweenDefs: @@ -206,23 +214,23 @@ CollectionMethods: Description: 'Preferred collection methods.' Enabled: true -AvoidFor: +For: Description: 'Prefer each over for.' Enabled: true -AvoidPerlisms: +SpecialGlobalVars: Description: 'Avoid Perl-style global variables.' Enabled: true -AvoidPerlBackrefs: +PerlBackrefs: Description: 'Avoid Perl-style regex back references.' Enabled: true -AvoidClassVars: +ClassVars: Description: 'Avoid the use of class variables.' Enabled: true VariableInterpolation: Description: > @@ -324,11 +332,11 @@ ColonMethodCall: Description: 'Do not use :: for method call.' Enabled: true -AvoidGlobalVars: +GlobalVars: Description: 'Do not introduce global variables.' Enabled: true Eval: Description: 'The use of eval represents a serious security risk.' @@ -434,10 +442,30 @@ HashMethods: Description: Checks for use of deprecated Hash methods. Enabled: true +MultilineBlockChain: + Description: Avoid multi-line chains of blocks. + Enabled: true + +AlignHash: + Description: > + Align the elements of a hash literal if they span more than + one line. + Enabled: true + +AlignArray: + Description: > + Align the elements of an array literal if they span more than + one line. + Enabled: true + +SpaceBeforeModifierKeyword: + Description: Put a space before the modifier keyword. + Enabled: true + #################### Lint ################################ ### Warnings AssignmentInCondition: Description: "Don't use assignment in conditions." @@ -457,14 +485,10 @@ UnreachableCode: Description: 'Unreachable code.' Enabled: true -UnusedLocalVariable: - Description: 'Unused local variable.' - Enabled: true - ShadowingOuterLocalVariable: Description: > Do not use the same name as outer local variable for block arguments or block local variables. Enabled: true @@ -487,9 +511,13 @@ (TODO, FIXME, OPTIMIZE, HACK, REVIEW). Enabled: true UselessAssignment: Description: 'Checks for useless assignment to a local variable.' + Enabled: true + +UselessSetterCall: + Description: 'Checks for useless setter call to a local variable.' Enabled: true UselessComparison: Description: 'Checks for comparison of something with itself.' Enabled: true