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.
Lint/UselessOr
1 parent a6ad200 commit 0e9597fCopy full SHA for 0e9597f
rubocop.yml
@@ -469,6 +469,11 @@ Lint/UselessMethodDefinition:
469
Lint/UselessNumericOperation:
470
Enabled: false
471
472
+<% if rubocop_version >= "1.76" %>
473
+Lint/UselessOr:
474
+ Enabled: true
475
+<% end %>
476
+
477
Lint/UselessRescue:
478
479
test/fixtures/full_config.yml
@@ -1985,7 +1985,7 @@ Lint/UselessNumericOperation:
1985
VersionAdded: '1.66'
1986
Lint/UselessOr:
1987
Description: Checks for useless OR expressions.
1988
- Enabled: pending
1989
VersionAdded: '1.76'
1990
1991
Description: Checks for useless `rescue`s.
0 commit comments