rubocop-style.yml in gitlab-styles-2.5.2 vs rubocop-style.yml in gitlab-styles-2.6.0
- old
+ new
@@ -98,14 +98,10 @@
# Favor the use of Fixnum#even? && Fixnum#odd?
Style/EvenOdd:
Enabled: true
-# Checks for flip flops.
-Style/FlipFlop:
- Enabled: true
-
# Checks use of for or each in multiline loops.
Style/For:
Enabled: true
# Use a consistent style for format string tokens.
@@ -148,10 +144,14 @@
# Use lambda.call(...) instead of lambda.(...).
Style/LambdaCall:
Enabled: true
+# Use `strip` instead of `lstrip.rstrip`.
+Style/Strip:
+ Enabled: true
+
# Checks if the method definitions have or don't have parentheses.
Style/MethodDefParentheses:
Enabled: true
# Checks for usage of `extend self` in modules.
@@ -233,9 +233,13 @@
Style/RedundantException:
Enabled: true
# Checks for parentheses that seem not to serve any purpose.
Style/RedundantParentheses:
+ Enabled: true
+
+# Use `sort` instead of `sort_by { |x| x }`.
+Style/RedundantSortBy:
Enabled: true
# Don't use semicolons to terminate expressions.
Style/Semicolon:
Enabled: true