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.
Style/InvertibleUnlessCondition
1 parent a6251de commit f53b5b4Copy full SHA for f53b5b4
rubocop.yml
@@ -565,6 +565,9 @@ Style/InPatternThen:
565
Style/InverseMethods:
566
Enabled: false
567
568
+Style/InvertibleUnlessCondition:
569
+ Enabled: true
570
+
571
Style/KeywordParametersOrder:
572
573
test/fixtures/full_config.yml
@@ -3019,7 +3019,7 @@ Style/InverseMethods:
3019
:select!: :reject!
3020
Style/InvertibleUnlessCondition:
3021
Description: Favor `if` with inverted condition over `unless`.
3022
- Enabled: false
3023
VersionAdded: '1.44'
3024
InverseMethods:
3025
:!=: :==
0 commit comments