Linting & suppression
banshee lint reports findings; banshee fix applies every available autofix.
Output formats: human (default, rustc-style), json, github (PR
annotations), sarif (code scanning).
Browse all rules in the rule reference, or run
banshee explain <CODE>.
Suppressing diagnostics inline
Section titled “Suppressing diagnostics inline”A -- noqa comment silences findings without touching banshee.toml:
SELECT * FROM t; -- noqa suppress everything on this lineSELECT * FROM t; -- noqa: AM04 suppress only AM04SELECT * FROM t; -- noqa: AM,RF01 a group prefix or explicit codesRange form suppresses until a matching enable (or end of file):
SELECT * FROM a; -- noqa: disable=AM04SELECT * FROM b; -- (AM04 stays silent here)SELECT * FROM c; -- noqa: enable=AM04Use disable=all / enable=all to gate every rule. An alphabetic token (AM)
matches every code in that family; a full code (AM04) matches only itself.
Suppression is applied by the engine, so the LSP honours it too.