Quickstart
Install
Section titled “Install”go install github.com/donaldgifford/claudelint/cmd/claudelint@latestPrebuilt binaries for darwin/linux/windows ship with each tagged release on the GitHub Releases page.
Multi-arch container images (linux/amd64, linux/arm64) ship alongside each
release at ghcr.io/donaldgifford/claudelint. See
the GitHub Action guide for CI integration.
Quickstart
Section titled “Quickstart”Lint the current repo:
claudelint run .Emit GitHub Actions annotations on your PR (preferred: use the companion
claudelint-action which
also handles install + SARIF upload):
- uses: donaldgifford/claudelint-action@v1Or invoke the binary directly:
- run: claudelint run --format=github .Fail the build on any warning:
claudelint run --max-warnings=0 .Write a starter .claudelint.hcl:
claudelint initList every rule shipped in the binary:
claudelint rules # human-readable tableclaudelint rules --json # machine-readable catalog (see docs/rules-json-schema.md)claudelint rules <id> # detail view for one ruleOutput formats
Section titled “Output formats”--format=text(default) — human-readable; honors--no-color/NO_COLOR.--format=json— stable schema documented in json-output-schema.md.--format=github—::error/::warning/::noticeworkflow commands.--format=sarif— SARIF 2.1.0 log, suitable for GitHub Code Scanning and other SARIF-aware tools. Pair with--sarif-file=<path>to write to a file instead of stdout.