A routine has more paths through it than the configured maximum

tx0/sql:cyclomatic-complexitystrictwarningmaintainability/complexitydepth fastmaintainability

What it finds

The number of paths through a routine: one, plus one per IF, ELSIF, loop, WHEN branch, exception handler, and AND or OR in a condition. Many paths need many tests. The maximum is the parameter max, 20 by default.

From the rule's source, cyclomatic_complexity.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:cyclomatic-complexity" = "warning"

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

tx0 explain tx0/sql:cyclomatic-complexity shows the same in the terminal. Found a false positive? Report it.