GS/BS
← Standards directory
Formatting

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.

Scala

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

    Unknown

    No reviewed evidence is recorded for this dimension.

    Can two readers identify the same obligation? Contribute evidence ↗

  • Measurement

    Verified

    The CLI test mode identifies misformatted Scala inputs without rewriting them.

    Cited source ↗
  • Conformance

    Unknown

    No reviewed evidence is recorded for this dimension.

    What would demonstrate a violation? Contribute evidence ↗

  • CI enforcement

    Verified

    The upstream CLI documents --test and --check with exit status 1 on formatting failure; --check stops at the first failing file.

    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

    Verified

    Typelevel Cats pins Scalafmt and selects different dialects for sbt, Scala 2.12 and Scala 3 paths.

    Cited source ↗
  • 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.

scalafmt --test

Agent prompt

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.
Read the agent skill ↗

Primary source

Scalafmt documentation ↗