config/enabled.yml in rubocop-0.36.0 vs config/enabled.yml in rubocop-0.37.0
- old
+ new
@@ -647,14 +647,10 @@
Style/SpaceAfterComma:
Description: 'Use spaces after commas.'
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#spaces-operators'
Enabled: true
-Style/SpaceAfterControlKeyword:
- Description: 'Use spaces after if/elsif/unless/while/until/case/when.'
- Enabled: true
-
Style/SpaceAfterMethodName:
Description: >-
Do not put a space between a method name and the opening
parenthesis in a method definition.
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#parens-no-spaces'
@@ -707,19 +703,19 @@
have or don't have surrounding space depending on
configuration.
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#spaces-around-equals'
Enabled: true
+Style/SpaceAroundKeyword:
+ Description: 'Use a space around keywords if appropriate.'
+ Enabled: true
+
Style/SpaceAroundOperators:
Description: 'Use a single space around operators.'
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#spaces-operators'
Enabled: true
-Style/SpaceBeforeModifierKeyword:
- Description: 'Put a space before the modifier keyword.'
- Enabled: true
-
Style/SpaceInsideBrackets:
Description: 'No spaces after [ or before ].'
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-spaces-braces'
Enabled: true
@@ -866,10 +862,14 @@
Style/WordArray:
Description: 'Use %w or %W for arrays of words.'
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#percent-w'
Enabled: true
+Style/ZeroLengthPredicate:
+ Description: 'Use #empty? when testing for objects of length 0.'
+ Enabled: true
+
#################### Metrics ################################
Metrics/AbcSize:
Description: >-
A calculated magnitude based on number of assignments,
@@ -1155,11 +1155,12 @@
Enabled: true
##################### Performance #############################
Performance/Casecmp:
- Description: 'Use `casecmp` rather than `downcase ==`.'
+ Description: >-
+ Use `casecmp` rather than `downcase ==`, `upcase ==`, `== downcase`, or `== upcase`..
Reference: 'https://github.com/JuanitoFatas/fast-ruby#stringcasecmp-vs-stringdowncase---code'
Enabled: true
Performance/CaseWhenSplat:
Description: >-
@@ -1236,10 +1237,10 @@
Use `=~` instead of `String#match` or `Regexp#match` in a context where the
returned `MatchData` is not needed.
Enabled: true
Performance/RedundantMerge:
- Description: 'Use Hash#[]=, rather than Hash#merge! with a single key-value pair.'
+ Description: 'Use Hash#[]=, rather than Hash#merge! or Hash#update with a single key-value pair.'
Reference: 'https://github.com/JuanitoFatas/fast-ruby#hashmerge-vs-hash-code'
Enabled: true
Performance/RedundantSortBy:
Description: 'Use `sort` instead of `sort_by { |x| x }`.'