Skip to content
CAI
Software that uses CAICheck a score

scoverage/scalac-scoverage-plugin

61.5

Adequate · 6 November 2026

3.2k

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

Add JavaScript runtime support for file operations and platform abstraction

The JavaScript runtime now includes a new platform abstraction layer that emulates a subset of the Java I/O API, enabling file system operations (read, write, delete, list) and source loading across different JavaScript environments. This is achieved through a new \scalajssupport\ package containing environment-specific implementations for Node.js, JSDOM, PhantomJS, and Rhino, which are automatically detected and selected at runtime. The \scoverage.Platform\ object now exposes these file and source capabilities, allowing the core library to function in JS environments where standard Java I/O is unavailable.

runtime/js · high confidence

Add native platform support for scoverage

A new Platform.scala file has been added to the native runtime module to provide platform-specific abstractions for the scoverage library. This implementation defines type aliases for standard Java I/O classes (File, FileWriter, FileFilter, Source) and includes a custom insecureRandomUUID method to generate version 4 UUIDs, enabling scoverage to function correctly on Scala Native targets.

runtime/native · high confidence

New plain-text coverage data serializer and deserializer

The serializer module now provides a new \Serializer\ object that reads and writes coverage data to a structured plain-text format. This format includes a header specifying the data version and field descriptions, followed by statement records separated by form-feed characters. The serializer handles relative source paths and supports both writing \Coverage\ objects to files and reading them back, enabling portable storage of coverage metrics.

serializer · high confidence

Removals

Removal of HTML coverage report generation components

The HTML coverage report generation capability has been removed from the reporting module. The diff shows the deletion of the core classes responsible for this feature: \CoverageData\ (which managed coverage statistics), \HtmlReportWriter\ (which handled template rendering and file output), \HtmlReporter\ (which orchestrated the creation of index, summary, and package reports), \SourceFileHtmlReporter\ (which generated the detailed source-code views with line-by-line coverage highlighting), and \SourceLoader\ (which read source files for display). Users will no longer be able to generate or view HTML-based coverage reports using this component.

scct/src/main/scala/reaktor/scct/report · high confidence

Removal of ScctProject trait

The \ScctProject\ trait, which previously provided integration for the SCCT code coverage tool within sbt projects, has been removed from the \sbt-scct\ plugin. Users can no longer mix this trait into their build definitions to enable coverage instrumentation and reporting via this specific plugin component.

sbt-scct · high confidence

Removal of legacy HTML reporting assets

The legacy HTML report generation assets have been removed from the application. Specifically, the JavaScript file for package list interaction, the CSS stylesheet, and the HTML template used to render coverage reports are no longer included in the resources. This eliminates the old reporting UI components that relied on these specific files.

scct/src/main/resources · high confidence

Behavioural changes

Improved thread-safety and multi-module support for coverage data collection

The runtime now uses a platform-agnostic abstraction for file operations and thread-safe maps, ensuring that the \Invoker.invoked\ method correctly handles concurrent access from multiple threads without corrupting measurement files. Additionally, the implementation supports multi-module projects by allowing measurement data to be written to and read from separate directories, with each thread writing to its own file to reduce contention.

runtime/jvm, runtime/shared · high confidence

New domain model for coverage data and metrics

The domain module now introduces a structured domain model for coverage data, including core classes like Statement, Location, and Coverage, along with builders for organizing data by method, class, package, and file. It also adds a CodeGrid component that generates HTML-highlighted source code views with color-coded coverage status (invoked, not invoked, no data) and defines constants for file naming and data formats. This refactoring establishes the foundational data structures and reporting capabilities for incremental coverage support.

domain · high confidence

Project maintenance and documentation updates

This change introduces several maintenance and documentation updates. It adds configuration files for code formatting and linting (\.scalafmt.conf\, \.scalafix.conf\) and a \.git-blame-ignore-revs\ file to ignore bulk formatting commits. The project documentation is refreshed with new \CODE\_OF\_CONDUCT.md\ and \CONTRIBUTING.md\ files, an Apache 2.0 \LICENSE\, and a comprehensive \README.md\ that explains statement and branch coverage, usage with various build tools (sbt, Maven, Mill, Gradle), and exclusion options. Additionally, support for Scala 2.10 is officially deprecated and removed, with a dedicated \2.10.md\ file explaining the technical reasons (AST range position issues with macros). Old documentation files (\README.textile\, \backlog.txt\) are removed, and \.gitignore\ is updated to include modern IDE and build tool artifacts.

(repo-wide) · high confidence

Refactor coverage plugin into modular components with incremental support

The scoverage plugin has been restructured to decouple measurement and data directories, allowing measurement files to be written to a separate location from the final coverage report. This change introduces incremental coverage support by merging previous coverage data with current instrumentation results, ensuring that coverage statistics persist across compilation cycles. The plugin's internal logic is now organized into distinct modules for filtering, merging, and location tracking, improving maintainability and enabling more precise control over which classes, files, and symbols are included in coverage reports.

plugin/src/main · high confidence

Refactor reporter into modular components with new HTML layout and robust aggregation

The reporter module has been restructured into distinct components (BaseReportWriter, CoberturaXmlWriter, ScoverageHtmlWriter, ScoverageXmlWriter, CoverageAggregator, IOUtils, StatementWriter) to separate concerns. The HTML report now uses a frameset layout with a dedicated pure-min.css stylesheet for styling. Aggregation logic has been centralized in CoverageAggregator, which now handles unique ID assignment for statements across subprojects. IOUtils has been enhanced to support configurable source encoding and includes a fix to gracefully handle corrupted measurement lines during parsing by defaulting to index 0 instead of failing, ensuring robustness against malformed data.

reporter/src/main · high confidence

Removal of legacy ScctBuild build definition

The legacy ScctBuild.scala file, which defined the Scct project and its sbt plugin dependencies (including JUnit, ScalaTest, Mockito, ScalaCheck, and Specs) for Scala 2.7.7, has been removed from the project structure. This change reflects a shift away from the older build configuration, likely to accommodate the transition to Scala 2.8 and separate project concerns as indicated by the commit history.

project/build · medium confidence

Removal of legacy sbt-idea-plugin and project structure

The legacy sbt plugin definition file (project/plugins/Plugins.scala) has been removed, eliminating the dependency on the sbt-idea-plugin (version 0.1-SNAPSHOT) and the associated GH-pages repository configuration. This change simplifies the build configuration by discarding the older plugin management approach.

project/plugins · high confidence

Rewritten Scala code coverage instrumentation plugin

The scct coverage tool has been significantly refactored to improve constructor instrumentation accuracy and support newer Scala versions (2.8 and 2.9). The old file-based binary serialization (MetadataPickler/IO) was removed in favor of loading coverage data from the classpath and using relative file paths for reports. The instrumentation plugin itself was rewritten to better handle curried constructors, lazy definitions, and generated code, ensuring more reliable coverage data collection during test execution.

scct/src/main/scala/reaktor/scct · high confidence

Test coverage

Added JSDOM test coverage for multi-module invoker; Added test-release script for validating artifact availability; Added tests for reporter components; Expanded test coverage for scoverage plugin instrumentation and filtering; Removed legacy Scala code coverage instrumentation tests; Removed obsolete unit tests for coverage data and HTML reporting.

Dependencies

Add jsdom dependency for Scala.js JSDOM test environment

The project now includes a Node.js dependency on jsdom (version 30.1.1) via package.json and package-lock.json. This supports the new runtimeJSDOMTest subproject defined in build.sbt, which configures the Scala.js test runner to use JSDOMNodeJSEnv, enabling JavaScript-based tests to run in a Node.js environment rather than a browser.

(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 61 → 61 (+0.5)
  • Rubric changed (rubric-2026.10.5 → rubric-2026.11.2) — scores are not directly comparable.

Lenses

  • Code Health 59 → 59 (+0.0)
  • Architecture 99 → 99 (+0.0)
  • Maturity 49 → 52 (+2.8)
  • Readiness 75 → 74 (-0.9)
  • Security 83 → 74 (-8.7)
  • Domain Modelling 100 → 100 (+0.0)

Resolved (2)

  • Off-boarding risk: anonymized user #1
  • Outdated: org.scala-lang.modules:scala-xml_2.13

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

  • 6 commits — 5 feature/other, 1 fixes

By area

  • (root) — 4 commits
  • .github/workflows — 1 commit
  • project/build.properties — 1 commit

Notable commits

  • fix: Fix Scala 3 coverage documentation link (#833)
  • change: Update sbt, scripted-plugin to 1.13.1 (#828)
  • change: Update scala3-library to 3.3.9 (#827)
  • change: build(deps): bump actions/setup-java from 6.0.1 to 6.1.0 (#831)
  • change: build(deps): bump jsdom from 30.1.1 to 30.1.3 (#832)
  • change: build(deps): bump undici from 8.11.2 to 8.12.3 (#829)

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

Survey your own repository

scoverage/scalac-scoverage-plugin 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 6 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 683d86b88412af4c331552d81172431291d8e29e — 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-60d1b390edf0.