Skip to content

Commit 479fac3

Browse files
committed
Handle Naming/Predicate{Naming,Prefix} rename
This cop has been renamed, so we conditionally set the config depending on RuboCop version.
1 parent b094a0f commit 479fac3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

rubocop.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,11 @@ Naming/MethodName:
464464
Naming/MethodParameterName:
465465
Enabled: false
466466

467+
<% if rubocop_version >= "1.76" %>
468+
Naming/PredicatePrefix:
469+
<% else %>
467470
Naming/PredicateName:
471+
<% end %>
468472
NamePrefix:
469473
- is_
470474
ForbiddenPrefixes:

0 commit comments

Comments
 (0)