Exit Codes
tq check uses:
0: no findings at or above the configured fail threshold1: one or more findings at or above the configured fail threshold2: invalid CLI options, invalid configuration, or IO/runtime setup errors
The default fail threshold is error severity.
Exit behavior toggles
--exit-zero: return0even when findings are found--fail-on <SEVERITY>: set the minimum severity that triggers exit code1error(default): exit1only when there areerrorfindingswarning: exit1when there arewarningorerrorfindingsinfo: exit1when there are any findings
Configure the fail threshold in pyproject.toml:
toml
[tool.tq]
fail_on = "warning"Note: severity overrides applied via severity_overrides or --severity affect findings before the fail threshold is evaluated.