Skip to content

Commit 487ed0f

Browse files
committed
Conditionally configure Lint/ShadowingOuterLocalVariable
As of `rubocop@1.76`, our config matches the default, so we should not configure it.
1 parent 16502a2 commit 487ed0f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

rubocop.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -378,8 +378,10 @@ Lint/ShadowedArgument:
378378
Lint/ShadowedException:
379379
Enabled: false
380380

381+
<% if rubocop_version < "1.76" %>
381382
Lint/ShadowingOuterLocalVariable:
382383
Enabled: false
384+
<% end %>
383385

384386
Lint/SharedMutableDefault:
385387
Enabled: false

0 commit comments

Comments
 (0)