Skip to content

v0.9.0

Latest

Choose a tag to compare

@github-actions github-actions released this 24 Nov 23:01
· 4 commits to main since this release
v0.9.0
281f71a

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 RULE prints the rule's note, with the settings your .ziglint.zon
    overrides first: max_length: 80 (default: 120).
  • --list-rules prints 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.zip below and put the program on your PATH.

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.