config/enabled.yml in rubocop-0.8.3 vs config/enabled.yml in rubocop-0.9.0

- old
+ new

@@ -171,14 +171,10 @@ # Use CamelCase for classes and modules. ClassAndModuleCamelCase: Enabled: true -# Causes Ruby to check the syntax of the script and exit without executing. -Syntax: - Enabled: true - # Preferred collection methods. CollectionMethods: Enabled: true # Prefer each over for. @@ -259,18 +255,17 @@ # Name reduce arguments |a, e| (accumulator, element) ReduceArguments: Enabled: true -# Use %r only for regular expressions matching more than one '/' character. -PercentR: +# Use %r for regular expressions matching more than `MaxSlashes` '/' +# characters. +# Use %r only for regular expressions matching more than `MaxSlashes` '/' +# character. +RegexpLiteral: Enabled: true -# Use %r for regular expressions matching more than one '/' character. -FavorPercentR: - Enabled: true - # Use self when defining module/class methods. ClassMethods: Enabled: true # Avoid single-line methods. @@ -295,11 +290,11 @@ # Comments should start with a space. LeadingCommentSpace: Enabled: true -# Do not use :: for method invocation. +# Do not use :: for method call. ColonMethodCall: Enabled: true # Do not introduce global variables. AvoidGlobalVars: @@ -325,6 +320,85 @@ Loop: Enabled: true # Avoid excessive block nesting BlockNesting: + Enabled: true + +# Avoid explicit use of the case equality operator(===). +CaseEquality: + Enabled: true + +# Document classes and non-namespace modules. +Documentation: + Enabled: true + +# Do not use parentheses for method calls with no arguments. +MethodCallParentheses: + Enabled: true + +# Checks for redundant do after while or until. +WhileUntilDo: + Enabled: true + +# Checks for uses of character literals. +CharacterLiteral: + Enabled: true + +# Avoid the use of BEGIN blocks. +BeginBlock: + Enabled: true + +# Avoid the use of END blocks. +EndBlock: + Enabled: true + +## Warnings + +# Don't use assignment in conditions. +AssignmentInCondition: + Enabled: true + AllowSafeAssignment: true + +# Align ends correctly. +EndAlignment: + Enabled: true + BlockAlignSchema: StartOfAssignment + +# Possible use of operator/literal/variable in void context. +Void: + Enabled: true + +# Unreachable code. +UnreachableCode: + Enabled: true + +# Unused local variable. +UnusedLocalVariable: + Enabled: true + +# Do not use the same name as outer local variable +# for block arguments or block local variables. +ShadowingOuterLocalVariable: + Enabled: true + +# END blocks should not be placed inside method definitions. +EndInMethod: + Enabled: true + +# Checks of literals used in conditions. +LiteralInCondition: + 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 + +## Rails + +# Use sexy validations. +Validation: Enabled: true