Skip to content
CAI
Software that uses CAICheck a score

scalameta/sbt-scalafmt

62.6

Adequate · 7 November 2026

843

lines of production code

Scala

primary language

4

measurements over time

CAI band scale
CAI trend line
CAI lens gauges

What this system is

Features

Initial repository setup for sbt-scalafmt plugin

This change establishes the foundational structure for the sbt-scalafmt SBT plugin repository. It introduces the Apache 2.0 LICENSE, a README with installation instructions and JDK compatibility details, and a CONTRIBUTING guide that specifies using \./bin/scalafmt\ for formatting. It also configures the development environment with \.scalafmt.conf\ (version 3.11.5, Scala 2.13 dialect, specific rewrite rules like AvoidInfix and trailing commas), \.scala-steward.conf\ to pin Scala 2.12 and 3.8 libraries, and \AGENTS.md\/\CLAUDE.md\ to guide AI agent contributions.

(repo-wide) · high confidence

Behavioural changes

5 commits (0 fixes) modifying bin

A change to existing behaviour in bin — 5 commits, 1 file: “scalafmt: update local bootstrap to v3.8.1”; “Version updates (\#34)”; “Setup scalafmt”; and 2 more (refs \#34, \#36).

bin · medium confidence · unverified

Improved error reporting and parallel execution control for the SBT plugin

The SBT plugin now provides more detailed error messages, including stack traces when enabled, and allows users to control the maximum number of parallel scalafmt tasks via a new 'scalafmt' concurrency tag. Additionally, the plugin supports unified diff output for formatting errors and includes Scala 3 compatibility fixes for credential handling.

plugin/src/main · high confidence

Major plugin rewrite and API expansion for sbt 2.x compatibility

The plugin has been significantly refactored to support sbt 2.x, introducing new tasks such as scalafmtAll, scalafmtCheckAll, scalafmtRepo, and scalafmtSbtOnLoad, while deprecating scalafmtIncremental. The return type of scalafmtCheck and scalafmtSbtCheck has changed from Boolean to Unit, and scalafmtConfig now requires an existing file path rather than an optional one. The implementation now uses scalafmt-dynamic for version switching, supports parallel formatting via scalafmtParallelism, and includes new settings for detailed error logging, file filtering, and diff output.

repository · high confidence

Test coverage

Added test for dependency overrides in sbt-scalafmt; Added tests for sbt-scalafmt load-time formatting behavior; Updated sbt-test suite for scalafmt 2.2.1 and organization change.

Dependencies

Simplified build configuration and upgraded sbt to 2.0.10

The build system has been significantly streamlined by removing the custom \PublishPlugin.scala\ and several legacy plugins (\sbt-dynver\, \sbt-coursier\, \sbt-shading\, \sbt-sonatype\, \sbt-pgp\), replacing them with the \sbt-ci-release\ plugin (version 1.12.1) which handles publishing and release logic. Additionally, the sbt version has been upgraded from 1.1.6 to 2.0.10, and the nested \project/project/plugins.sbt\ file containing \sbt-coursier\ has been removed.

project · high confidence

Update scalafmt to 3.11.5 and migrate build to sbt-dynver

The sbt-scalafmt plugin now uses scalafmt 3.11.5 (via scalafmt-sysops and scalafmt-dynamic-core) and upgrades the build infrastructure to use sbt-dynver for versioning, supporting both Scala 2.12.21 and Scala 3.8.4. The build.sbt has been refactored to remove the old shading plugin setup and PGP settings from the main build, moving them to a global scope, and adds explicit support for sbt 2.0.0 when using Scala 3. Additionally, several scripted tests have been updated to reflect new Scala versions and formatting expectations, including new tests for dependency overrides and onLoad warnings.

(dependencies) · high confidence

Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.

How this codebase got here

Score

  • CAI 62 → 63 (+0.1)
  • Rubric changed (rubric-2026.10.5 → rubric-2026.11.2) — scores are not directly comparable.

Lenses

  • Code Health 74 → 74 (+0.0)
  • Architecture 100 → 100 (+0.0)
  • Maturity 52 → 57 (+5.0)
  • Readiness 63 → 61 (-2.0)
  • Security 79 → 65 (-13.9)

Resolved (1)

  • Off-boarding risk: anonymized user #1

New (2)

  • Dependency hygiene PARTLY measured — sbt declarations read, dependency currency not (Maven Central unreachable)
  • Off-boarding risk: anonymized user #1

Changes since last survey

  • 1 commits — 1 feature/other, 0 fixes

By area

  • project/build.properties — 1 commit

Notable commits

  • change: Update sbt to 2.0.12

Architecture

  • Unchanged — 0 containers · 1 contexts · 0 edges

Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.

Survey your own repository

scalameta/sbt-scalafmt was measured the same way every project in this corpus was: the same rubric, at a pinned commit, with the result published in full. Point a surveyor at a repository you know and see whether you agree with it.

About this page

  • The score is its most recent published measurement, taken on 7 November 2026 at a pinned commit. It is not a live figure and does not change until the project is measured again.
  • Measured at commit d5c2965b43cf90d9238a40c177b08f3289120b8e — the exact code this score is about.
  • Scored under rubric-2026.11.2 — the same rubric and the same method as every other entry in this index.
  • Measured by Canine Code Analyzer (cca.canine.dev) using cca measure-2026.11.3+preprod-5f8314471808.