rubocop-lint.yml in gitlab-styles-10.0.0 vs rubocop-lint.yml in gitlab-styles-10.1.0
- old
+ new
@@ -25,13 +25,14 @@
# This cop checks for ambiguous regexp literals in the first argument of
# a method invocation without parentheses.
Lint/AmbiguousRegexpLiteral:
Enabled: true
-# This cop checks for assignments in the conditions of
-# if/while/until.
+# This cop checks for assignments in the conditions of if/while/until.
+# Forbid assignments within conditions.
Lint/AssignmentInCondition:
- Enabled: false
+ Enabled: true
+ AllowSafeAssignment: false
# Checks for places where binary operator has identical operands
Lint/BinaryOperatorWithIdenticalOperands:
Enabled: true