---
name: crystal-format
description: "Use when adopting Crystal formatter to assess this standard: Verify canonical Crystal formatting"
---

# Apply Crystal formatter

Check tracked Crystal source and specs with the formatter included in the release compiler. Keep the compiler version consistent between editors and CI.

## Procedure

1. Inspect the repository configuration and identify the files or targets covered by Crystal formatter.
2. Use Crystal formatter in this repository to meet this standard: Verify canonical Crystal formatting. Check tracked Crystal source and specs with the formatter included in the release compiler. Keep the compiler version consistent between editors and CI. Inspect the repository configuration, record the baseline and exact reproduction steps, then add the smallest repeatable check that detects a regression.
3. Record the tool version, configuration, scope and findings. Explain any checks that could not run.
4. Use the same invocation after changes and compare the evidence against the baseline.

Refer to [the upstream documentation](https://crystal-lang.org/reference/latest/man/crystal/) for configuration and prerequisites.

## Tool invocation

```
crystal tool format --check
```
