Skip to content

Commit a6ad200

Browse files
committed
Enable pending Lint/UselessDefaultValueArgument
1 parent 487ed0f commit a6ad200

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

rubocop.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -452,6 +452,11 @@ Lint/UselessAssignment:
452452
Lint/UselessConstantScoping:
453453
Enabled: false
454454

455+
<% if rubocop_version >= "1.76" %>
456+
Lint/UselessDefaultValueArgument:
457+
Enabled: true
458+
<% end %>
459+
455460
Lint/UselessDefined:
456461
Enabled: false
457462

test/fixtures/full_config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1958,7 +1958,7 @@ Lint/UselessConstantScoping:
19581958
Lint/UselessDefaultValueArgument:
19591959
Description: Checks for usage of `fetch` or `Array.new` with default value argument
19601960
and block.
1961-
Enabled: pending
1961+
Enabled: true
19621962
VersionAdded: '1.76'
19631963
Safe: false
19641964
AllowedReceivers: []

0 commit comments

Comments
 (0)