Quickstart
The shortest useful .alint.yml adopts a bundled ruleset and nothing else.
# yaml-language-server: $schema=https://raw.githubusercontent.com/asamarts/alint/main/schemas/v1/config.jsonversion: 1extends: - alint://bundled/oss-baseline@v1Drop that at the root of your repo, then:
alint check # run all rules against the current directoryalint fix --dry-run # preview the auto-fixes that would be appliedalint fix # apply every fixable violation in placealint list # list effective rules (after extends + overrides)alint explain <id> # show a rule's full, resolved definitionalint facts # evaluate facts against the repo — debug `when:` clausesOutput formats
Section titled “Output formats”alint check --format human # default; colorized; grouped by filealint check --format json # stable, versioned JSON schemaalint check --format sarif # SARIF 2.1.0 (for GitHub Code Scanning)alint check --format github # GitHub Actions workflow commandsalint check --format markdown # PR-comment-friendly tablesalint check --format junit # CI test-report shapealint check --format gitlab # GitLab Code Qualityalint check --format agent # LLM-shaped JSON with per-violation `agent_instruction`Exit codes: 0 no errors; 1 one or more errors; 2 config error; 3 internal error. Warnings do not fail by default — use --fail-on-warning to flip that.
Where to next
Section titled “Where to next”- Bundled Rulesets — nineteen one-line baselines covering Rust, Python, Go, Node, Java, monorepos, GitHub Actions hardening, agent hygiene, license compliance, and more.
- Cookbook — copy-pasteable patterns for real-world repo-maintenance tasks.
- Configuration — full
.alint.ymlfield reference. - Concepts — the rule model, scopes, when-expressions, composition.