config/enabled.yml in rubocop-0.45.0 vs config/enabled.yml in rubocop-0.46.0
- old
+ new
@@ -242,10 +242,15 @@
Style/EmptyLiteral:
Description: 'Prefer literals to Array.new/Hash.new/String.new.'
StyleGuide: '#literal-array-hash'
Enabled: true
+Style/EmptyMethod:
+ Description: 'Checks the formatting of empty method definitions.'
+ StyleGuide: '#no-single-line-methods'
+ Enabled: true
+
Style/EndBlock:
Description: 'Avoid the use of END blocks.'
StyleGuide: '#no-END-blocks'
Enabled: true
@@ -600,11 +605,11 @@
Style/ParenthesesAroundCondition:
Description: >-
Don't use parentheses around the condition of an
if/unless/while.
- StyleGuide: '#no-parens-if'
+ StyleGuide: '#no-parens-around-condition'
Enabled: true
Style/PercentLiteralDelimiters:
Description: 'Use `%`-literal delimiters consistently'
StyleGuide: '#percent-literal-braces'
@@ -1420,11 +1425,11 @@
Use `size` instead of `count` for counting
the number of elements in `Array` and `Hash`.
Reference: 'https://github.com/JuanitoFatas/fast-ruby#arraycount-vs-arraysize-code'
Enabled: true
-Performance/SortWithBlock:
+Performance/CompareWithBlock:
Description: 'Use `sort_by(&:foo)` instead of `sort_by { |a, b| a.foo <=> b.foo }`.'
Enabled: true
Performance/StartWith:
Description: 'Use `start_with?` instead of a regex match anchored to the beginning of a string.'
@@ -1470,10 +1475,14 @@
Rails/DynamicFindBy:
Description: 'Use `find_by` instead of dynamic `find_by_*`.'
StyleGuide: 'https://github.com/bbatsov/rails-style-guide#find_by'
Enabled: true
+Rails/EnumUniqueness:
+ Description: 'Avoid duplicate integers in hash-syntax `enum` declaration.'
+ Enabled: true
+
Rails/Exit:
Description: >-
Favor `fail`, `break`, `return`, etc. over `exit` in
application or library code outside of Rake files to avoid
exits during unit testing or running in production.
@@ -1557,5 +1566,23 @@
Reference: 'http://ruby-doc.org/stdlib-2.3.0/libdoc/json/rdoc/JSON.html#method-i-load'
Enabled: true
# Autocorrect here will change to a method that may cause crashes depending
# on the value of the argument.
AutoCorrect: false
+
+##################### Bundler #############################
+
+Bundler/DuplicatedGem:
+ Description: 'Checks for duplicate gem entries in Gemfile.'
+ Enabled: true
+ Include:
+ - '**/Gemfile'
+ - '**/gems.rb'
+
+Bundler/OrderedGems:
+ Description: >-
+ Sort alphabetically gems appearing within a contiguous set
+ of lines in the Gemfile
+ Enabled: true
+ Include:
+ - '**/Gemfile'
+ - '**/gems.rb'