Skip to content

chant lint

chant lint [path] [flags]

chant lint loads the project at the given path, runs all configured lint rules, and reports diagnostics. Each diagnostic includes a rule ID (e.g. COR010, EVL001) alongside the file location and message.

FlagTypeDefaultDescription
--formatstringstylishOutput format: stylish, json, or sarif
--fixboolfalseAuto-fix fixable issues
-w, --watchboolfalseWatch for file changes and re-lint
Terminal window
# Lint current directory
chant lint
# JSON output for CI
chant lint --format json
# SARIF for GitHub Code Scanning
chant lint --format sarif > results.sarif
# Auto-fix
chant lint --fix
# Watch mode
chant lint --watch
CodeMeaning
0No errors found
1Lint errors found