cardinal-cli
v0.1.4
Published
Cardinal CLI — a static, database-aware linter for TypeScript/JavaScript. Flags N+1 loops, unbounded reads, and over-fetching, with a CI-friendly exit code.
Downloads
477
Maintainers
Readme
cardinal-cli
The command-line linter for Cardinal — a static, database-aware analyzer for TypeScript/JavaScript. Flags N+1 loops, unbounded reads, and over-fetching, and exits non-zero on any error (so it gates CI).
npm i -D cardinal-cli
npx cardinal "src/**/*.ts"Scaffold a knowledge file from your code with cardinal init (finds your tables
and the filter subsets you query by). Flags: --knowledge <path> /
--no-knowledge (data-scale facts), --no-config (ignore cardinal.config),
--format json (machine-readable findings for AI agents / CI — each with a
why/fix explanation). Suppress a finding with cardinal suppress <file>:<line>.
See the main README for the knowledge file, config, and rule details. MIT.
