Skip to content

Comments

Add guideline for avoiding unless with complex conditions#976

Open
ydakuka wants to merge 1 commit intorubocop:masterfrom
ydakuka:avoid-unless-with-complex-conditions
Open

Add guideline for avoiding unless with complex conditions#976
ydakuka wants to merge 1 commit intorubocop:masterfrom
ydakuka:avoid-unless-with-complex-conditions

Conversation

@ydakuka
Copy link
Contributor

@ydakuka ydakuka commented Feb 15, 2026

Recommend against using unless when the condition contains a disjunction, a negation combined with logical operators, or multiple negations (!!).

Related: rubocop/rubocop#14860

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant