Skip to content

Add guideline for avoiding unless with complex conditions - #976

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

ydakuka wants to merge 1 commit into
rubocop:masterfrom
ydakuka:avoid-unless-with-complex-conditions

Conversation

@ydakuka

@ydakuka ydakuka commented Feb 15, 2026

Copy link
Copy Markdown
Contributor

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

Related: rubocop/rubocop#14860

This branch has not been deployed

No deployments
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