# Scalafmt

Format Scala across supported dialects

Pin a formatter version and choose the Scala dialect for each source tree. Verify formatting before review to keep semantic changes visible.

Category: Formatting
Languages: Scala

## Standard evidence

Rubric v1 · 3/8 verified · 5 unknown · 0 contrary · reviewed 2026-11-28

- **Definition** (unknown) — No reviewed evidence is recorded for this dimension.
- **Measurement** (verified) — The CLI test mode identifies misformatted Scala inputs without rewriting them. Reviewed 2026-11-28. [Source](https://scalameta.org/scalafmt/docs/installation.html)
- **Conformance** (unknown) — No reviewed evidence is recorded for this dimension.
- **CI enforcement** (verified) — The upstream CLI documents --test and --check with exit status 1 on formatting failure; --check stops at the first failing file. Reviewed 2026-11-28. [Source](https://scalameta.org/scalafmt/docs/installation.html)
- **Getting started** (unknown) — No reviewed evidence is recorded for this dimension.
- **Real-world adoption** (verified) — Typelevel Cats pins Scalafmt and selects different dialects for sbt, Scala 2.12 and Scala 3 paths. Reviewed 2026-11-28. [Source](https://github.com/typelevel/cats/blob/main/.scalafmt.conf)
- **Agent guidance** (unknown) — No reviewed evidence is recorded for this dimension.
- **Agent portability** (unknown) — No reviewed evidence is recorded for this dimension.

## Adoption

Use Scalafmt in this repository to meet this standard: Format Scala across supported dialects. Pin a formatter version and choose the Scala dialect for each source tree. Verify formatting before review to keep semantic changes visible. Inspect the repository configuration, record the baseline and exact reproduction steps, then add the smallest repeatable check that detects a regression.

### Tool command

```
scalafmt --test
```

Seikika package: no verified installation is listed.

## References

- [Tool documentation](https://scalameta.org/scalafmt/)
- [Agent skill](/skills/scalafmt/SKILL.md)
