Repository navigation
Any rule's note, in the terminal
ziglint --explain Z024 prints what a rule does, what it saw, and how to fix
it, without leaving the terminal. ziglint --list-rules prints the index, so a
code in a finding is one command away from its note.
Added
--explain RULEprints the rule's note, with the settings your.ziglint.zon
overrides first:max_length: 80 (default: 120).--list-rulesprints every code and title, and marks the rules that are off
by default.
Changed
- A rule without a note no longer compiles, and the doc tests run every note's
examples in enum order. A gap cannot ship.
Install
- mise:
mise use github:baskingspot/ziglint - Homebrew:
brew install --cask baskingspot/tap/ziglint - Nix:
nix run github:baskingspot/ziglint/v0.9.0 - Windows: unzip
ziglint-v0.9.0-windows-x64.zipbelow and put the program on yourPATH.
Every file is listed in SHA256SUMS, and attested by the org's release workflow. Check one with gh attestation verify FILE -R baskingspot/ziglint --signer-repo baskingspot/gh-actions.