config/enabled.yml in rubocop-0.9.1 vs config/enabled.yml in rubocop-0.10.0

- old
+ new

@@ -350,21 +350,44 @@ # Avoid the use of END blocks. EndBlock: Enabled: true -## Warnings +# Don't use return where it's not required. +RedundantReturn: + Enabled: true +# Don't use begin blocks when they are not needed. +RedundantBegin: + Enabled: true + +# Don't use self where it's not needed. +RedundantSelf: + Enabled: true + +# Checks the position of the dot in multi-line method calls. +DotPosition: + Enabled: true + +# Checks for uses of Module#attr. +Attr: + Enabled: true + +#################### Lint ################################ + # Don't use assignment in conditions. AssignmentInCondition: Enabled: true - AllowSafeAssignment: true # Align ends correctly. EndAlignment: Enabled: true +# Align block ends correctly. +BlockAlignment: + Enabled: true + # Possible use of operator/literal/variable in void context. Void: Enabled: true # Unreachable code. @@ -386,18 +409,18 @@ # Checks of literals used in conditions. LiteralInCondition: Enabled: true -# Checks the position of the dot in multi-line method calls. -DotPosition: +# Checks for empty ensure block. +EmptyEnsure: Enabled: true -# Checks for uses of Module#attr. -Attr: +# Checks formatting of special comments (TODO, FIXME, OPTIMIZE, HACK, REVIEW). +CommentAnnotation: Enabled: true -## Rails +##################### Rails ################################## # Use sexy validations. Validation: Enabled: true