GS/BS
← Standards directory
Formatting

zig fmt.

Verify canonical Zig formatting

Use the formatter shipped with the project's compiler. Check the source tree in CI so contributors and automation agree on layout.

Zig

Community rubric · v1

The evidence

Evidence coverage3 / 8
3 supported · 5 unresolved

One point for each verified check. Unknown means we still need evidence. Contrary evidence records an observed result that goes against the criterion.

Latest evidence review ·

  • Definition

    Verified

    Zig's formatter defines conformity by comparing a source file with its own canonical formatting. The historical release notes document the check-mode contract.

    Cited source ↗
  • Measurement

    Verified

    zig fmt --check lists paths that would change, retains their contents and exits with an error when the list is nonempty.

    Cited source ↗
  • Conformance

    Unknown

    No reviewed evidence is recorded for this dimension.

    What would demonstrate a violation? Contribute evidence ↗

  • CI enforcement

    Verified

    The published Zig compiler build wires a formatting check over selected source paths into the aggregate test step with check mode enabled.

    Cited source ↗
  • Getting started

    Unknown

    No reviewed evidence is recorded for this dimension.

    Can a newcomer complete a first run? Contribute evidence ↗

  • Real-world adoption

    Unknown

    No reviewed evidence is recorded for this dimension.

    Has another team put it to work? Contribute evidence ↗

  • Agent guidance

    Unknown

    No reviewed evidence is recorded for this dimension.

    Can an agent act on a specific finding? Contribute evidence ↗

  • Agent portability

    Unknown

    No reviewed evidence is recorded for this dimension.

    Does the practice work in two agent harnesses? Contribute evidence ↗

Use this standard

Run the check with the tool installed and configured for your project.

zig fmt --check .

Agent prompt

Use zig fmt in this repository to meet this standard: Verify canonical Zig formatting. Use the formatter shipped with the project's compiler. Check the source tree in CI so contributors and automation agree on layout. Inspect the repository configuration, record the baseline and exact reproduction steps, then add the smallest repeatable check that detects a regression.
Read the agent skill ↗

Primary source

zig fmt documentation ↗