AND and OR are mixed without parentheses

tx0/sql:mixed-and-orstrictwarningmaintainability/designdepth fastmaintainability

What it finds

a OR b AND c means a OR (b AND c), since AND binds tighter, which is often not what the writer had in mind. Parentheses make the grouping visible.

From the rule's source, mixed_and_or.rs.

Turn it on, off or suppress it

The rule runs from the strict tier up. To turn it on in a lower tier, give it a level in tx0.toml:

tx0.toml
[rules]
"tx0/sql:mixed-and-or" = "warning"

To keep one finding, suppress it with a reason: tx0 suppress ID --reason "..." writes the comment for it.

tx0 explain tx0/sql:mixed-and-or shows the same in the terminal. Found a false positive? Report it.