We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Style/ComparableClamp
1 parent 4a7209d commit a6251deCopy full SHA for a6251de
rubocop.yml
@@ -451,6 +451,9 @@ Style/CommandLiteral:
451
Style/CommentedKeyword:
452
Enabled: false
453
454
+Style/ComparableClamp:
455
+ Enabled: true
456
+
457
Style/ConcatArrayLiterals:
458
Enabled: true
459
test/fixtures/full_config.yml
@@ -2559,7 +2559,7 @@ Style/CommentedKeyword:
2559
Style/ComparableClamp:
2560
Description: Enforces the use of `Comparable#clamp` instead of comparison by minimum
2561
and maximum.
2562
- Enabled: pending
2563
VersionAdded: '1.44'
2564
2565
Description: Enforces the use of `Array#push(item)` instead of `Array#concat([item])`
0 commit comments