# 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.
  - Can two readers identify the same obligation? [Contribute evidence](https://github.com/seikika/seikika/issues/new?title=Evidence+review+%C2%B7+Scalafmt+%C2%B7+Definition&body=Practice%3A+scalafmt%0ACriterion%3A+definition+%28rubric+v1%29%0ACan+two+readers+identify+the+same+obligation%3F%0A%0APublished+judgment%3A+unknown%0ANo+reviewed+evidence+is+recorded+for+this+dimension.%0A%0AProposed+judgment+and+rationale%3A%0A%0APublic+source+or+reproduction+%28include+version%2C+inputs+and+observed+result%29%3A)
- **Measurement** (verified) — The CLI test mode identifies misformatted Scala inputs without rewriting them. Reviewed 2026-11-28. [Cited source](https://scalameta.org/scalafmt/docs/installation.html)
- **Conformance** (unknown) — No reviewed evidence is recorded for this dimension.
  - What would demonstrate a violation? [Contribute evidence](https://github.com/seikika/seikika/issues/new?title=Evidence+review+%C2%B7+Scalafmt+%C2%B7+Conformance&body=Practice%3A+scalafmt%0ACriterion%3A+conformance+%28rubric+v1%29%0AWhat+would+demonstrate+a+violation%3F%0A%0APublished+judgment%3A+unknown%0ANo+reviewed+evidence+is+recorded+for+this+dimension.%0A%0AProposed+judgment+and+rationale%3A%0A%0APublic+source+or+reproduction+%28include+version%2C+inputs+and+observed+result%29%3A)
- **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. [Cited source](https://scalameta.org/scalafmt/docs/installation.html)
- **Getting started** (unknown) — No reviewed evidence is recorded for this dimension.
  - Can a newcomer complete a first run? [Contribute evidence](https://github.com/seikika/seikika/issues/new?title=Evidence+review+%C2%B7+Scalafmt+%C2%B7+Getting+started&body=Practice%3A+scalafmt%0ACriterion%3A+firstRun+%28rubric+v1%29%0ACan+a+newcomer+complete+a+first+run%3F%0A%0APublished+judgment%3A+unknown%0ANo+reviewed+evidence+is+recorded+for+this+dimension.%0A%0AProposed+judgment+and+rationale%3A%0A%0APublic+source+or+reproduction+%28include+version%2C+inputs+and+observed+result%29%3A)
- **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. [Cited source](https://github.com/typelevel/cats/blob/main/.scalafmt.conf)
- **Agent guidance** (unknown) — No reviewed evidence is recorded for this dimension.
  - Can an agent act on a specific finding? [Contribute evidence](https://github.com/seikika/seikika/issues/new?title=Evidence+review+%C2%B7+Scalafmt+%C2%B7+Agent+guidance&body=Practice%3A+scalafmt%0ACriterion%3A+guidance+%28rubric+v1%29%0ACan+an+agent+act+on+a+specific+finding%3F%0A%0APublished+judgment%3A+unknown%0ANo+reviewed+evidence+is+recorded+for+this+dimension.%0A%0AProposed+judgment+and+rationale%3A%0A%0APublic+source+or+reproduction+%28include+version%2C+inputs+and+observed+result%29%3A)
- **Agent portability** (unknown) — No reviewed evidence is recorded for this dimension.
  - Does the practice work in two agent harnesses? [Contribute evidence](https://github.com/seikika/seikika/issues/new?title=Evidence+review+%C2%B7+Scalafmt+%C2%B7+Agent+portability&body=Practice%3A+scalafmt%0ACriterion%3A+portability+%28rubric+v1%29%0ADoes+the+practice+work+in+two+agent+harnesses%3F%0A%0APublished+judgment%3A+unknown%0ANo+reviewed+evidence+is+recorded+for+this+dimension.%0A%0AProposed+judgment+and+rationale%3A%0A%0APublic+source+or+reproduction+%28include+version%2C+inputs+and+observed+result%29%3A)

## 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)
