Severities and gates¶
Lintel normalizes every finding to one of three severities:
| Severity | Meaning |
|---|---|
error |
Must be fixed. Default gate is zero tolerance. |
warn |
Should be fixed. Default gate allows a small backlog. |
info |
Informational. Never fails the gate by default. |
Scanners often emit richer severity scales (critical, high, medium, low, style, performance). Each adapter maps these down to the three Lintel severities - see the individual scanner pages for the exact mapping.
Overriding severity¶
You can floor (raise) a check's minimum severity, or downgrade findings in specific paths via warn_paths.
Floor at config level¶
A scanner emitting warn for a secret will be upgraded to error before the gate sees it.
Downgrade via warn_paths¶
Findings inside these paths are downgraded one severity level (error → warn, warn → info). info findings in warn paths are dropped entirely.
Per-rule ignores¶
See baseline + allowlist and inline ignores.
The gate¶
The gate runs after filtering and deciding final severities. Configure it with thresholds:
Rules:
-1means never fail on this severity.0means any finding of this severity fails.- A positive integer
Nmeans more than N findings fail (soNfindings pass).
The gate evaluates top-down: if the error threshold is exceeded, the gate fails even if warn and info are fine.
Inline ignores¶
Single-line and block-level ignores can be embedded in code with magic comments:
An inline ignore must include a reason; Lintel refuses the directive without it. This is part of the override model - every suppression leaves an audit trail.
Quick reference¶
| Situation | Where to configure |
|---|---|
| "This file is legitimately full of findings." | paths.exclude |
| "This directory is low-risk; warn only." | paths.warn_paths |
| "We will fix these later but not block commits." | baseline |
| "This specific finding is a false positive." | allowlist |
| "Just this one line." | Inline lintel:ignore comment |
| "Never allow anyone to disable secrets check." | protect_secrets: true (default) |