rubocop-lint.yml in gitlab-styles-11.0.0 vs rubocop-lint.yml in gitlab-styles-13.0.0
- old
+ new
@@ -379,9 +379,14 @@
Enabled: true
Lint/UselessMethodDefinition: # (new in 0.90)
Enabled: true
+# Certain numeric operations have no impact, being: Adding or subtracting 0, multiplying
+# or dividing by 1 or raising to the power of 1. These are probably leftover from debugging, or are mistakes.
+Lint/UselessNumericOperation:
+ Enabled: true
+
# Checks for useless setter call to a local variable.
Lint/UselessSetterCall:
Enabled: true
Lint/UselessTimes: # (new in 0.91)