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

- old
+ new

@@ -2,11 +2,11 @@ # Use UTF-8 as the source file encoding. Encoding: Enabled: true -# Limit lines to 80 characters. +# Limit lines to 79 characters. LineLength: Enabled: true # Avoid methods longer than 10 lines of code MethodLength: @@ -62,11 +62,12 @@ # Use spaces after if/elsif/unless/while/until/case/when. SpaceAfterControlKeyword: Enabled: true -# Prefer symbols instead of strings as hash keys. +# Prefer Ruby 1.9 hash syntax { a: 1, b: 2 } over 1.8 syntax +# { :a => 1, :b => 2 }. HashSyntax: Enabled: true # Use Unix-style line endings. EndOfLine: @@ -314,11 +315,12 @@ # Indent private/protected as deep as defs and keep blank lines around them. AccessControl: Enabled: true -# Use Kernel#loop with break rather than begin/end/until or begin/end/while for post-loop tests. +# Use Kernel#loop with break rather than begin/end/until or begin/end/while for +# post-loop tests. Loop: Enabled: true # Avoid excessive block nesting BlockNesting: @@ -370,10 +372,18 @@ # Checks for uses of Module#attr. Attr: Enabled: true +# Checks for proper usage of fail and raise. +SignalException: + Enabled: true + +# Checks for usage of `extend self` in modules. +ModuleFunction: + Enabled: true + #################### Lint ################################ # Don't use assignment in conditions. AssignmentInCondition: Enabled: true @@ -415,9 +425,17 @@ EmptyEnsure: Enabled: true # Checks formatting of special comments (TODO, FIXME, OPTIMIZE, HACK, REVIEW). CommentAnnotation: + Enabled: true + +# Checks for useless assignment to a local variable. +UselessAssignment: + Enabled: true + +# Checks for comparison of something with itself. +UselessComparison: Enabled: true ##################### Rails ################################## # Use sexy validations.