Subqueries are nested deeper than the configured maximum

tx0/sql:subquery-depthstrictwarningmaintainability/designdepth fastmaintainability

What it finds

Subqueries nested inside subqueries are hard to read; common table expressions name the steps. The maximum depth is the parameter max, 4 by default.

From the rule's source, subquery_depth.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:subquery-depth" = "warning"

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

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