Skip to content

Commit

Permalink
Disable Style/ReturnNilInPredicateMethodDefinition
Browse files Browse the repository at this point in the history
Some of our legacy code relies on returning nil from predicate methods to
indicate things such as missing values, so this would be changing behaviour

https://docs.rubocop.org/rubocop/cops_style.html#stylereturnnilinpredicatemethoddefinition
  • Loading branch information
stephenbinns committed Aug 2, 2023
1 parent f20eb29 commit 0c70fdf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,9 @@ Style/NumericPredicate:
Style/NumericLiterals:
MinDigits: 11

Style/ReturnNilInPredicateMethodDefinition:
Enabled: false

Style/SignalException:
EnforcedStyle: "only_raise"

Expand Down

0 comments on commit 0c70fdf

Please sign in to comment.