Skip to content

Commit a6251de

Browse files
committed
Enable Style/ComparableClamp
1 parent 4a7209d commit a6251de

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

rubocop.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -451,6 +451,9 @@ Style/CommandLiteral:
451451
Style/CommentedKeyword:
452452
Enabled: false
453453

454+
Style/ComparableClamp:
455+
Enabled: true
456+
454457
Style/ConcatArrayLiterals:
455458
Enabled: true
456459

test/fixtures/full_config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2559,7 +2559,7 @@ Style/CommentedKeyword:
25592559
Style/ComparableClamp:
25602560
Description: Enforces the use of `Comparable#clamp` instead of comparison by minimum
25612561
and maximum.
2562-
Enabled: pending
2562+
Enabled: true
25632563
VersionAdded: '1.44'
25642564
Style/ConcatArrayLiterals:
25652565
Description: Enforces the use of `Array#push(item)` instead of `Array#concat([item])`

0 commit comments

Comments
 (0)