config/enabled.yml in rubocop-0.39.0 vs config/enabled.yml in rubocop-0.40.0

- old
+ new

@@ -202,10 +202,14 @@ Style/EmptyElse: Description: 'Avoid empty else-clauses.' Enabled: true +Style/EmptyCaseCondition: + Description: 'Avoid empty condition in case statements.' + Enabled: true + Style/EmptyLineBetweenDefs: Description: 'Use empty lines between defs.' StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#empty-lines-between-methods' Enabled: true @@ -409,30 +413,58 @@ Style/ModuleFunction: Description: 'Checks for usage of `extend self` in modules.' StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#module-function' Enabled: true +Style/MultilineArrayBraceLayout: + Description: >- + Checks that the closing brace in an array literal is + either on the same line as the last array element, or + a new line. + Enabled: true + Style/MultilineBlockChain: Description: 'Avoid multi-line chains of blocks.' StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#single-line-blocks' Enabled: true Style/MultilineBlockLayout: Description: 'Ensures newlines after multiline block do statements.' Enabled: true +Style/MultilineHashBraceLayout: + Description: >- + Checks that the closing brace in a hash literal is + either on the same line as the last hash element, or + a new line. + Enabled: true + Style/MultilineIfThen: Description: 'Do not use then for multi-line if/unless.' StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-then' Enabled: true +Style/MultilineMethodCallBraceLayout: + Description: >- + Checks that the closing brace in a method call is + either on the same line as the last method argument, or + a new line. + Enabled: true + Style/MultilineMethodCallIndentation: Description: >- Checks indentation of method calls with the dot operator that span more than one line. Enabled: true +Style/MultilineMethodDefinitionBraceLayout: + Description: >- + Checks that the closing brace in a method definition is + either on the same line as the last method parameter, or + a new line. + Enabled: true + Style/MultilineOperationIndentation: Description: >- Checks indentation of binary operations that span more than one line. Enabled: true @@ -1133,10 +1165,14 @@ Lint/UselessAccessModifier: Description: 'Checks for useless access modifiers.' Enabled: true +Lint/UselessArraySplat: + Description: 'Checks for useless array splats.' + Enabled: true + Lint/UselessAssignment: Description: 'Checks for useless assignment to a local variable.' StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#underscore-unused-vars' Enabled: true @@ -1343,9 +1379,13 @@ Rails/TimeZone: Description: 'Checks the correct usage of time zone aware methods.' StyleGuide: 'https://github.com/bbatsov/rails-style-guide#time' Reference: 'http://danilenko.org/2012/7/6/rails_timezones' + Enabled: true + +Rails/UniqBeforePluck: + Description: 'Prefer the use of uniq before pluck.' Enabled: true Rails/Validation: Description: 'Use validates :attribute, hash of validations.' Enabled: true