SET ROWCOUNT limits the rows of every following statement

tx0/sql:set-rowcountstrictwarningmaintainability/designdepth fastmaintainability

What it finds

SET ROWCOUNT n limits every following statement of the session, including inserts, updates and deletes in triggers and called procedures, and is deprecated for those. TOP (n) limits the one statement meant.

From the rule's source, set_rowcount.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:set-rowcount" = "warning"

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

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