Linting (tish-lint)
Rule IDs, severities, and running tish-lint in CI.
tish-lint is a standalone linter (like Clippy vs rustc). The compiler CLI tish does not run lints. tish-lsp uses the same tish_lint library for editor diagnostics.
Install
cargo build --release -p tish_lint
# Binary: target/release/tish-lintCLI
tish-lint src/main.tish
tish-lint src/Exit codes: non-zero if any file fails to parse or reports error-severity issues.
Output:
path/to/file.tish:LINE:COL: warning [RULE_ID] messageRule catalog
CI example
- name: Lint Tish sources
run: tish-lint ./src- run: tish-fmt --check src/main.tish && tish-lint src/