Executive summary
scalacenter/scastie scores 40 out of 100 and is rated Weak, while six of its seven lenses score higher still: Performance at 100, rated Exemplary, Architecture at 89, Production Readiness at 61, Code Health at 56 and Maturity at 48, all rated Adequate, and Security and Compliance at 42, rated Weak. The project hasn't declared a stable release yet, so its lenses are rated against a lower bar than a released product's, while the score itself is worked out as for any repository.
The score is lower than those six because the weakest lens counts most, and here that is Accessibility, which scores 27 and is rated Weak. Its Page structure dimension scores 2.2 out of 10, and until that reaches 4, Accessibility can't be rated higher than Adequate. The first actions are to declare <html lang>, a document <title> and a <main> landmark, keep headings in order, leave zoom enabled, title iframes and drop meta-refresh and to keep a visible focus style (don't remove the outline without a replacement), guard animation with prefers-reduced-motion, and raise low-contrast colour pairs to at least 4.5:1, and if Accessibility rose to 70, the score would rise from 40 to about 50.
32 findings are critical: 13 in Dependency Vulnerabilities, six in Page structure, five in Static Analysis (SAST), four in REDACTED Scanning, three in Secrets (history) and one in Change Coupling.
Watchdog couldn't measure 9 dimensions in this code, among them Code Coverage, Test Reliability and Navigability, so they are left out of the score. The product code is 17,324 lines, which would take an estimated 0.1 person-years, around β¬17,000, to rebuild.
If Accessibility rose from 27 to 70, the lowest score rated Strong, the score would rise from 40 to about 50.
New since the last survey: 12 findings
- REDACTED Scanning Β· REDACTED
- REDACTED Scanning Β· REDACTED
- Static Analysis (SAST) Β· REDACTED
- Dependency Vulnerabilities Β· REDACTED
- Dependency Vulnerabilities Β· REDACTED
- Dependency Vulnerabilities Β· REDACTED
- Dependency Vulnerabilities Β· REDACTED
- Dependency Vulnerabilities Β· REDACTED
- Supply-chain Provenance & Signing Β· REDACTED
- Visual & motion safety Β· Animation without a prefers-reduced-motion guard client/src/main/resources/sass/ansi.scss
- Visual & motion safety Β· Animation without a prefers-reduced-motion guard client/src/main/resources/fonts/font-awesome/font-awesome.css
- Visual & motion safety Β· Animation without a prefers-reduced-motion guard client/src/main/resources/fonts/font-awesome/font-awesome.css
Fixed since the last survey: 5 findings
- Dependency Vulnerabilities Β· High CVE: [GHSA redacted] REDACTED
- Dependency Vulnerabilities Β· High CVE: [GHSA redacted] REDACTED
- Dependency Vulnerabilities Β· Medium vulnerability: [GHSA redacted] REDACTED
- Knowledge Freshness Β· Orphaned knowledge sbt-scastie/src/main/scala/sbt/ScastieTrapExit.scala
- Supply-chain Provenance & Signing REDACTED
Rebuild cost: about β¬17,000 Β· Estimate
| Cost to rebuild | β¬5,800 to β¬29,000, for 96 to 306 hours of work, about 0.1 person-years for one engineer |
|---|---|
| Difficulty of the problem | Standard, judged from the kind of software and how it is built. Code that solves a harder problem, such as payments or medical bookings, costs more per line to write. |
| Quality factor | ×0.7 at a score of 40. Better code takes more work to write, so the factor is ×1.0 at a score of 70, lower below it and higher above it. |
| Size | Small: 17,324 lines of product code |
Top priorities
Diagnosis: what the measurements show together
Architecture β module dependency graph
Architecture: which parts of the code depend on which
| uses β | 1 balancer.BaseDispatcher | 2 client.RestApiClient | 3 client.components.editor.TreeSitterArgumentFinder | 4 client.scalacli.ScalaVersionUtil | 5 runner | 6 runtime.api | 7 sbt.OutputExtractor | 8 storage.OldScastieConverter | 9 org.scastie | 10 api | 11 client.scalacli | 12 runtime | 13 runtime.InstrumentationRecorder | 14 api.ProcessOutputType | 15 api.ScalaTargetType | 16 api.ServerState | 17 api.StatusProgress | 18 client.components | 19 client.components.CodeSnippets | 20 client.components.ScaladexSearch | 21 client.scalacli.ScalaCliUtils | 22 instrumentation | 23 metals | 24 scalacli.BspClient | 25 storage | 26 client | 27 client.components.CopyModal | 28 instrumentation.InstrumentationFailure | 29 sbt.SbtProcess | 30 storage.filesystem | 31 storage.inmemory | 32 storage.mongodb | 33 client.View | 34 util | 35 client.components.editor | 36 sbt | 37 scalacli | 38 balancer | 39 web | 40 web.routes |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 balancer.BaseDispatcher | ||||||||||||||||||||||||||||||||||||||||
| 2 client.RestApiClient | ||||||||||||||||||||||||||||||||||||||||
| 3 client.components.editor.TreeSitterArgumentFinder | ||||||||||||||||||||||||||||||||||||||||
| 4 client.scalacli.ScalaVersionUtil | ||||||||||||||||||||||||||||||||||||||||
| 5 runner | ||||||||||||||||||||||||||||||||||||||||
| 6 runtime.api | ||||||||||||||||||||||||||||||||||||||||
| 7 sbt.OutputExtractor | ||||||||||||||||||||||||||||||||||||||||
| 8 storage.OldScastieConverter | ||||||||||||||||||||||||||||||||||||||||
| 9 org.scastie | 1 | |||||||||||||||||||||||||||||||||||||||
| 10 api | 6 | |||||||||||||||||||||||||||||||||||||||
| 11 client.scalacli | 1 | |||||||||||||||||||||||||||||||||||||||
| 12 runtime | 8 | |||||||||||||||||||||||||||||||||||||||
| 13 runtime.InstrumentationRecorder | 2 | |||||||||||||||||||||||||||||||||||||||
| 14 api.ProcessOutputType | 2 | |||||||||||||||||||||||||||||||||||||||
| 15 api.ScalaTargetType | 6 | |||||||||||||||||||||||||||||||||||||||
| 16 api.ServerState | 2 | |||||||||||||||||||||||||||||||||||||||
| 17 api.StatusProgress | 7 | |||||||||||||||||||||||||||||||||||||||
| 18 client.components | 20 | 18 | ||||||||||||||||||||||||||||||||||||||
| 19 client.components.CodeSnippets | 1 | |||||||||||||||||||||||||||||||||||||||
| 20 client.components.ScaladexSearch | 3 | |||||||||||||||||||||||||||||||||||||||
| 21 client.scalacli.ScalaCliUtils | 5 | |||||||||||||||||||||||||||||||||||||||
| 22 instrumentation | 1 | 5 | ||||||||||||||||||||||||||||||||||||||
| 23 metals | 26 | |||||||||||||||||||||||||||||||||||||||
| 24 scalacli.BspClient | 3 | 1 | ||||||||||||||||||||||||||||||||||||||
| 25 storage | 1 | 20 | ||||||||||||||||||||||||||||||||||||||
| 26 client | 1 | 2 | 39 | 1 | ||||||||||||||||||||||||||||||||||||
| 27 client.components.CopyModal | 1 | |||||||||||||||||||||||||||||||||||||||
| 28 instrumentation.InstrumentationFailure | 1 | 4 | ||||||||||||||||||||||||||||||||||||||
| 29 sbt.SbtProcess | 5 | 1 | ||||||||||||||||||||||||||||||||||||||
| 30 storage.filesystem | 7 | 4 | ||||||||||||||||||||||||||||||||||||||
| 31 storage.inmemory | 7 | 5 | ||||||||||||||||||||||||||||||||||||||
| 32 storage.mongodb | 7 | 5 | ||||||||||||||||||||||||||||||||||||||
| 33 client.View | 4 | |||||||||||||||||||||||||||||||||||||||
| 34 util | 6 | 1 | ||||||||||||||||||||||||||||||||||||||
| 35 client.components.editor | 2 | 3 | 11 | 3 | 2 | |||||||||||||||||||||||||||||||||||
| 36 sbt | 1 | 1 | 6 | 1 | 1 | 2 | ||||||||||||||||||||||||||||||||||
| 37 scalacli | 1 | 2 | 12 | 3 | 1 | 3 | ||||||||||||||||||||||||||||||||||
| 38 balancer | 1 | 29 | 1 | |||||||||||||||||||||||||||||||||||||
| 39 web | 11 | 1 | ||||||||||||||||||||||||||||||||||||||
| 40 web.routes | 3 | 1 |
9β6 org.scastie uses runtime.api✕
- Connections
- 1 pair of types, where a type in org.scastie uses a type in runtime.api.
- The types involved
org.scastie.runtimeβorg.scastie.runtime.api.Html
- Direction
- org.scastie uses runtime.api, so a change to runtime.api can break org.scastie, while a change to org.scastie can't break runtime.api.
- Position
- Below the diagonal: org.scastie uses a module listed above it, which is the healthy direction.
10β6 api uses runtime.api✕
- Connections
- 6 pairs of types, where a type in api uses a type in runtime.api.
- The types involved
org.scastie.api.RuntimeCodecsβorg.scastie.runtime.api.Instrumentationorg.scastie.api.RuntimeCodecsβorg.scastie.runtime.api.Positionorg.scastie.api.RuntimeCodecsβorg.scastie.runtime.api.Renderorg.scastie.api.RuntimeCodecsβorg.scastie.runtime.api.RuntimeErrororg.scastie.api.RuntimeCodecsβorg.scastie.runtime.api.RuntimeErrorWraporg.scastie.api.RuntimeCodecsβorg.scastie.runtime.api.ScalaJsResult
- Direction
- api uses runtime.api, so a change to runtime.api can break api, while a change to api can't break runtime.api.
- Position
- Below the diagonal: api uses a module listed above it, which is the healthy direction.
11β4 client.scalacli uses client.scalacli.ScalaVersionUtil✕
- Connections
- 1 pair of types, where a type in client.scalacli uses a type in client.scalacli.ScalaVersionUtil.
- The types involved
org.scastie.client.scalacli.ScalaVersionUtilβorg.scastie.client.scalacli.ScalaVersionUtil.ScalaNightly
- Direction
- client.scalacli uses client.scalacli.ScalaVersionUtil, so a change to client.scalacli.ScalaVersionUtil can break client.scalacli, while a change to client.scalacli can't break client.scalacli.ScalaVersionUtil.
- Position
- Below the diagonal: client.scalacli uses a module listed above it, which is the healthy direction.
12β6 runtime uses runtime.api✕
- Connections
- 8 pairs of types, where a type in runtime uses a type in runtime.api.
- The types involved
org.scastie.runtime.JvmRuntimeβorg.scastie.runtime.api.Htmlorg.scastie.runtime.Runtimeβorg.scastie.runtime.api.Htmlorg.scastie.runtime.Runtimeβorg.scastie.runtime.api.Renderorg.scastie.runtime.Runtimeβorg.scastie.runtime.api.RuntimeErrororg.scastie.runtime.Runtimeβorg.scastie.runtime.api.Statementorg.scastie.runtime.SharedRuntimeβorg.scastie.runtime.api.Instrumentationorg.scastie.runtime.SharedRuntimeβorg.scastie.runtime.api.Renderorg.scastie.runtime.SharedRuntimeβorg.scastie.runtime.api.Statement
- Direction
- runtime uses runtime.api, so a change to runtime.api can break runtime, while a change to runtime can't break runtime.api.
- Position
- Below the diagonal: runtime uses a module listed above it, which is the healthy direction.
13β6 runtime.InstrumentationRecorder uses runtime.api✕
- Connections
- 2 pairs of types, where a type in runtime.InstrumentationRecorder uses a type in runtime.api.
- The types involved
org.scastie.runtime.InstrumentationRecorder.$docβorg.scastie.runtime.api.Renderorg.scastie.runtime.InstrumentationRecorder.$docβorg.scastie.runtime.api.Statement
- Direction
- runtime.InstrumentationRecorder uses runtime.api, so a change to runtime.api can break runtime.InstrumentationRecorder, while a change to runtime.InstrumentationRecorder can't break runtime.api.
- Position
- Below the diagonal: runtime.InstrumentationRecorder uses a module listed above it, which is the healthy direction.
14β10 api.ProcessOutputType uses api✕
- Connections
- 2 pairs of types, where a type in api.ProcessOutputType uses a type in api.
- The types involved
org.scastie.api.ProcessOutputType.StdErrβorg.scastie.api.ProcessOutputTypeorg.scastie.api.ProcessOutputType.StdOutβorg.scastie.api.ProcessOutputType
- Direction
- api.ProcessOutputType uses api, so a change to api can break api.ProcessOutputType, while a change to api.ProcessOutputType can't break api.
- Position
- Below the diagonal: api.ProcessOutputType uses a module listed above it, which is the healthy direction.
15β10 api.ScalaTargetType uses api✕
- Connections
- 6 pairs of types, where a type in api.ScalaTargetType uses a type in api.
- The types involved
org.scastie.api.ScalaTargetType.JSβorg.scastie.api.ScalaTargetTypeorg.scastie.api.ScalaTargetType.Nativeβorg.scastie.api.ScalaTargetTypeorg.scastie.api.ScalaTargetType.Scala2βorg.scastie.api.ScalaTargetTypeorg.scastie.api.ScalaTargetType.Scala3βorg.scastie.api.ScalaTargetTypeorg.scastie.api.ScalaTargetType.ScalaCliβorg.scastie.api.ScalaTargetTypeorg.scastie.api.ScalaTargetType.Typelevelβorg.scastie.api.ScalaTargetType
- Direction
- api.ScalaTargetType uses api, so a change to api can break api.ScalaTargetType, while a change to api.ScalaTargetType can't break api.
- Position
- Below the diagonal: api.ScalaTargetType uses a module listed above it, which is the healthy direction.
16β10 api.ServerState uses api✕
- Connections
- 2 pairs of types, where a type in api.ServerState uses a type in api.
- The types involved
org.scastie.api.ServerState.Disconnectedβorg.scastie.api.ServerStateorg.scastie.api.ServerState.Unknownβorg.scastie.api.ServerState
- Direction
- api.ServerState uses api, so a change to api can break api.ServerState, while a change to api.ServerState can't break api.
- Position
- Below the diagonal: api.ServerState uses a module listed above it, which is the healthy direction.
17β10 api.StatusProgress uses api✕
- Connections
- 7 pairs of types, where a type in api.StatusProgress uses a type in api.
- The types involved
org.scastie.api.StatusProgress.KeepAliveβorg.scastie.api.StatusProgressorg.scastie.api.StatusProgress.Sbtβorg.scastie.api.RunnerStateorg.scastie.api.StatusProgress.Sbtβorg.scastie.api.SbtInputsorg.scastie.api.StatusProgress.Sbtβorg.scastie.api.StatusProgressorg.scastie.api.StatusProgress.ScalaCliβorg.scastie.api.RunnerStateorg.scastie.api.StatusProgress.ScalaCliβorg.scastie.api.ScalaCliInputsorg.scastie.api.StatusProgress.ScalaCliβorg.scastie.api.StatusProgress
- Direction
- api.StatusProgress uses api, so a change to api can break api.StatusProgress, while a change to api.StatusProgress can't break api.
- Position
- Below the diagonal: api.StatusProgress uses a module listed above it, which is the healthy direction.
18β10 client.components uses api✕
- Connections
- 20 pairs of types, where a type in client.components uses a type in api.
- The types involved
org.scastie.client.components.BuildSettingsβorg.scastie.api.BaseInputsorg.scastie.client.components.CodeSnippetsβorg.scastie.api.SnippetSummaryorg.scastie.client.components.CodeSnippetsβorg.scastie.api.Userorg.scastie.client.components.Consoleβorg.scastie.api.ConsoleOutputorg.scastie.client.components.DownloadButtonβorg.scastie.api.SnippetIdorg.scastie.client.components.EditorTopBarβorg.scastie.api.ScalaTargetorg.scastie.client.components.EditorTopBarβorg.scastie.api.SnippetIdorg.scastie.client.components.EditorTopBarβorg.scastie.api.Userorg.scastie.client.components.EmbeddedOverlayβorg.scastie.api.SnippetIdorg.scastie.client.components.ScaladexSearchβorg.scastie.api.SbtScalaTargetorg.scastie.client.components.ScaladexSearchβorg.scastie.api.ScalaDependencyorg.scastie.client.components.Scastieβorg.scastie.api.BaseInputsorg.scastie.client.components.Scastieβorg.scastie.api.ScalaTargetTypeorg.scastie.client.components.Scastieβorg.scastie.api.SnippetIdorg.scastie.client.components.SideBarβorg.scastie.api.BaseInputsorg.scastie.client.components.SideBarβorg.scastie.api.EditorModeorg.scastie.client.components.Statusβorg.scastie.api.BaseInputsorg.scastie.client.components.TargetSelectorβorg.scastie.api.ScalaTargetorg.scastie.client.components.TopBarβorg.scastie.api.Userorg.scastie.client.components.VersionSelectorβorg.scastie.api.SbtScalaTarget
- Direction
- client.components uses api, so a change to api can break client.components, while a change to client.components can't break api.
- Position
- Below the diagonal: client.components uses a module listed above it, which is the healthy direction.
18β26 client.components uses client part of a loop✕
- Connections
- 18 pairs of types, where a type in client.components uses a type in client.
- The types involved
org.scastie.client.components.CodeSnippetsβorg.scastie.client.Pageorg.scastie.client.components.CodeSnippetsβorg.scastie.client.Vieworg.scastie.client.components.EditorTopBarβorg.scastie.client.MetalsStatusorg.scastie.client.components.EditorTopBarβorg.scastie.client.Pageorg.scastie.client.components.EditorTopBarβorg.scastie.client.Vieworg.scastie.client.components.MainPanelβorg.scastie.client.ScastieBackendorg.scastie.client.components.MainPanelβorg.scastie.client.ScastieStateorg.scastie.client.components.MetalsStatusIndicatorβorg.scastie.client.MetalsStatusorg.scastie.client.components.MetalsStatusIndicatorβorg.scastie.client.Vieworg.scastie.client.components.Scastieβorg.scastie.client.EmbeddedOptionsorg.scastie.client.components.Scastieβorg.scastie.client.Pageorg.scastie.client.components.SideBarβorg.scastie.client.StatusStateorg.scastie.client.components.SideBarβorg.scastie.client.Vieworg.scastie.client.components.Statusβorg.scastie.client.Pageorg.scastie.client.components.Statusβorg.scastie.client.StatusStateorg.scastie.client.components.TopBarβorg.scastie.client.Vieworg.scastie.client.components.ViewToggleButtonβorg.scastie.client.Vieworg.scastie.client.components.WorksheetButtonβorg.scastie.client.View
- Direction
- client.components uses client, so a change to client can break client.components, while a change to client.components can't break client.
- Position
- Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
19β10 client.components.CodeSnippets uses api✕
- Connections
- 1 pair of types, where a type in client.components.CodeSnippets uses a type in api.
- The types involved
org.scastie.client.components.CodeSnippets.CodeSnippetsBackendβorg.scastie.api.SnippetSummary
- Direction
- client.components.CodeSnippets uses api, so a change to api can break client.components.CodeSnippets, while a change to client.components.CodeSnippets can't break api.
- Position
- Below the diagonal: client.components.CodeSnippets uses a module listed above it, which is the healthy direction.
20β10 client.components.ScaladexSearch uses api✕
- Connections
- 3 pairs of types, where a type in client.components.ScaladexSearch uses a type in api.
- The types involved
org.scastie.client.components.ScaladexSearch.Selectedβorg.scastie.api.Projectorg.scastie.client.components.ScaladexSearch.Selectedβorg.scastie.api.ReleaseOptionsorg.scastie.client.components.ScaladexSearch.Selectedβorg.scastie.api.ScalaDependency
- Direction
- client.components.ScaladexSearch uses api, so a change to api can break client.components.ScaladexSearch, while a change to client.components.ScaladexSearch can't break api.
- Position
- Below the diagonal: client.components.ScaladexSearch uses a module listed above it, which is the healthy direction.
21β10 client.scalacli.ScalaCliUtils uses api✕
- Connections
- 5 pairs of types, where a type in client.scalacli.ScalaCliUtils uses a type in api.
- The types involved
org.scastie.client.scalacli.ScalaCliUtils.InputConverterβorg.scastie.api.BaseInputsorg.scastie.client.scalacli.ScalaCliUtils.InputConverterβorg.scastie.api.SbtInputsorg.scastie.client.scalacli.ScalaCliUtils.InputConverterβorg.scastie.api.SbtScalaTargetorg.scastie.client.scalacli.ScalaCliUtils.InputConverterβorg.scastie.api.ScalaCliInputsorg.scastie.client.scalacli.ScalaCliUtils.InputConverterβorg.scastie.api.ScalaTarget
- Direction
- client.scalacli.ScalaCliUtils uses api, so a change to api can break client.scalacli.ScalaCliUtils, while a change to client.scalacli.ScalaCliUtils can't break api.
- Position
- Below the diagonal: client.scalacli.ScalaCliUtils uses a module listed above it, which is the healthy direction.
22β6 instrumentation uses runtime.api✕
- Connections
- 1 pair of types, where a type in instrumentation uses a type in runtime.api.
- The types involved
org.scastie.instrumentation.Instrumentβorg.scastie.runtime.api.Position
- Direction
- instrumentation uses runtime.api, so a change to runtime.api can break instrumentation, while a change to instrumentation can't break runtime.api.
- Position
- Below the diagonal: instrumentation uses a module listed above it, which is the healthy direction.
22β10 instrumentation uses api✕
- Connections
- 5 pairs of types, where a type in instrumentation uses a type in api.
- The types involved
org.scastie.instrumentation.Instrumentβorg.scastie.api.ScalaTargetorg.scastie.instrumentation.Instrumentβorg.scastie.api.ScalaTargetTypeorg.scastie.instrumentation.InstrumentationFailureReportβorg.scastie.api.SnippetIdorg.scastie.instrumentation.InstrumentationFailureReportβorg.scastie.api.SnippetProgressorg.scastie.instrumentation.InstrumentedInputsβorg.scastie.api.BaseInputs
- Direction
- instrumentation uses api, so a change to api can break instrumentation, while a change to instrumentation can't break api.
- Position
- Below the diagonal: instrumentation uses a module listed above it, which is the healthy direction.
23β10 metals uses api✕
- Connections
- 26 pairs of types, where a type in metals uses a type in api. Showing 25 of them; the rest are in namespace-graph.json in this report's bundle.
- The types involved
org.scastie.metals.DTOExtensionsβorg.scastie.api.Severityorg.scastie.metals.MetalsDispatcherβorg.scastie.api.FailureTypeorg.scastie.metals.MetalsDispatcherβorg.scastie.api.ScalaDependencyorg.scastie.metals.MetalsDispatcherβorg.scastie.api.ScalaTargetorg.scastie.metals.MetalsDispatcherβorg.scastie.api.ScastieMetalsOptionsorg.scastie.metals.OldScastiePresentationCompilerβorg.scastie.api.CompletionItemDTOorg.scastie.metals.OldScastiePresentationCompilerβorg.scastie.api.FailureTypeorg.scastie.metals.OldScastiePresentationCompilerβorg.scastie.api.Problemorg.scastie.metals.OldScastiePresentationCompilerβorg.scastie.api.ScalaCompletionListorg.scastie.metals.OldScastiePresentationCompilerβorg.scastie.api.ScastieOffsetParamsorg.scastie.metals.RawScastiePresentationCompilerβorg.scastie.api.CompletionItemDTOorg.scastie.metals.RawScastiePresentationCompilerβorg.scastie.api.FailureTypeorg.scastie.metals.RawScastiePresentationCompilerβorg.scastie.api.Problemorg.scastie.metals.RawScastiePresentationCompilerβorg.scastie.api.ScalaCompletionListorg.scastie.metals.RawScastiePresentationCompilerβorg.scastie.api.ScastieOffsetParamsorg.scastie.metals.ScastieMetalsβorg.scastie.api.CompletionInfoRequestorg.scastie.metals.ScastieMetalsβorg.scastie.api.FailureTypeorg.scastie.metals.ScastieMetalsβorg.scastie.api.LSPRequestDTOorg.scastie.metals.ScastieMetalsβorg.scastie.api.Problemorg.scastie.metals.ScastieMetalsβorg.scastie.api.ScalaCompletionListorg.scastie.metals.ScastieMetalsβorg.scastie.api.ScastieMetalsOptionsorg.scastie.metals.ScastiePresentationCompilerβorg.scastie.api.CompletionItemDTOorg.scastie.metals.ScastiePresentationCompilerβorg.scastie.api.FailureTypeorg.scastie.metals.ScastiePresentationCompilerβorg.scastie.api.Problemorg.scastie.metals.ScastiePresentationCompilerβorg.scastie.api.ScalaCompletionList
- Direction
- metals uses api, so a change to api can break metals, while a change to metals can't break api.
- Position
- Below the diagonal: metals uses a module listed above it, which is the healthy direction.
24β5 scalacli.BspClient uses runner✕
- Connections
- 3 pairs of types, where a type in scalacli.BspClient uses a type in runner.
- The types involved
org.scastie.scalacli.BspClient.Runner212βorg.scastie.runner.Runnerorg.scastie.scalacli.BspClient.Runner213βorg.scastie.runner.Runnerorg.scastie.scalacli.BspClient.Runner3βorg.scastie.runner.Runner
- Direction
- scalacli.BspClient uses runner, so a change to runner can break scalacli.BspClient, while a change to scalacli.BspClient can't break runner.
- Position
- Below the diagonal: scalacli.BspClient uses a module listed above it, which is the healthy direction.
24β10 scalacli.BspClient uses api✕
- Connections
- 1 pair of types, where a type in scalacli.BspClient uses a type in api.
- The types involved
org.scastie.scalacli.BspClient.BuildOutputβorg.scastie.api.Problem
- Direction
- scalacli.BspClient uses api, so a change to api can break scalacli.BspClient, while a change to scalacli.BspClient can't break api.
- Position
- Below the diagonal: scalacli.BspClient uses a module listed above it, which is the healthy direction.
25β8 storage uses storage.OldScastieConverter✕
- Connections
- 1 pair of types, where a type in storage uses a type in storage.OldScastieConverter.
- The types involved
org.scastie.storage.OldScastieConverterβorg.scastie.storage.OldScastieConverter.Converter
- Direction
- storage uses storage.OldScastieConverter, so a change to storage.OldScastieConverter can break storage, while a change to storage can't break storage.OldScastieConverter.
- Position
- Below the diagonal: storage uses a module listed above it, which is the healthy direction.
25β10 storage uses api✕
- Connections
- 20 pairs of types, where a type in storage uses a type in api.
- The types involved
org.scastie.storage.BaseMongoSnippetβorg.scastie.api.BaseInputsorg.scastie.storage.BaseMongoSnippetβorg.scastie.api.SnippetIdorg.scastie.storage.MongoSnippetβorg.scastie.api.BaseInputsorg.scastie.storage.MongoSnippetβorg.scastie.api.FetchResultorg.scastie.storage.MongoSnippetβorg.scastie.api.SnippetIdorg.scastie.storage.MongoSnippetβorg.scastie.api.SnippetProgressorg.scastie.storage.OldScastieConverterβorg.scastie.api.BaseInputsorg.scastie.storage.OldScastieConverterβorg.scastie.api.SnippetProgressorg.scastie.storage.ShortMongoSnippetβorg.scastie.api.ShortInputsorg.scastie.storage.ShortMongoSnippetβorg.scastie.api.SnippetIdorg.scastie.storage.SnippetsContainerβorg.scastie.api.BaseInputsorg.scastie.storage.SnippetsContainerβorg.scastie.api.FetchResultorg.scastie.storage.SnippetsContainerβorg.scastie.api.FetchResultScalaJsorg.scastie.storage.SnippetsContainerβorg.scastie.api.FetchResultScalaJsSourceMaporg.scastie.storage.SnippetsContainerβorg.scastie.api.FetchResultScalaSourceorg.scastie.storage.SnippetsContainerβorg.scastie.api.SbtInputsorg.scastie.storage.SnippetsContainerβorg.scastie.api.ScalaCliInputsorg.scastie.storage.SnippetsContainerβorg.scastie.api.SnippetIdorg.scastie.storage.SnippetsContainerβorg.scastie.api.SnippetProgressorg.scastie.storage.SnippetsContainerβorg.scastie.api.SnippetSummary
- Direction
- storage uses api, so a change to api can break storage, while a change to storage can't break api.
- Position
- Below the diagonal: storage uses a module listed above it, which is the healthy direction.
26β2 client uses client.RestApiClient✕
- Connections
- 1 pair of types, where a type in client uses a type in client.RestApiClient.
- The types involved
org.scastie.client.RestApiClientβorg.scastie.client.RestApiClient.Post
- Direction
- client uses client.RestApiClient, so a change to client.RestApiClient can break client, while a change to client can't break client.RestApiClient.
- Position
- Below the diagonal: client uses a module listed above it, which is the healthy direction.
26β6 client uses runtime.api✕
- Connections
- 2 pairs of types, where a type in client uses a type in runtime.api.
- The types involved
org.scastie.client.componentsβorg.scastie.runtime.api.Instrumentationorg.scastie.client.componentsβorg.scastie.runtime.api.RuntimeError
- Direction
- client uses runtime.api, so a change to runtime.api can break client, while a change to client can't break runtime.api.
- Position
- Below the diagonal: client uses a module listed above it, which is the healthy direction.
26β10 client uses api✕
- Connections
- 39 pairs of types, where a type in client uses a type in api. Showing 25 of them; the rest are in namespace-graph.json in this report's bundle.
- The types involved
org.scastie.client.EmbeddedOptionsβorg.scastie.api.BaseInputsorg.scastie.client.EmbeddedOptionsβorg.scastie.api.SnippetIdorg.scastie.client.Globalβorg.scastie.api.Errororg.scastie.client.InputsPageβorg.scastie.api.BaseInputsorg.scastie.client.Pageβorg.scastie.api.SnippetIdorg.scastie.client.RestApiClientβorg.scastie.api.BaseInputsorg.scastie.client.RestApiClientβorg.scastie.api.EditInputsorg.scastie.client.RestApiClientβorg.scastie.api.FetchResultorg.scastie.client.RestApiClientβorg.scastie.api.FormatRequestorg.scastie.client.RestApiClientβorg.scastie.api.FormatResponseorg.scastie.client.RestApiClientβorg.scastie.api.RestApiorg.scastie.client.RestApiClientβorg.scastie.api.SnippetIdorg.scastie.client.RestApiClientβorg.scastie.api.SnippetSummaryorg.scastie.client.RestApiClientβorg.scastie.api.Userorg.scastie.client.RestApiClientβorg.scastie.api.UserDataorg.scastie.client.ScastieBackendβorg.scastie.api.SnippetIdorg.scastie.client.ScastieBackendβorg.scastie.api.SnippetSummaryorg.scastie.client.ScastieBackendβorg.scastie.api.Userorg.scastie.client.ScastieClientMainβorg.scastie.api.Errororg.scastie.client.ScastieEmbeddedβorg.scastie.api.SnippetIdorg.scastie.client.ScastieStateβorg.scastie.api.SnippetProgressorg.scastie.client.ScastieStateβorg.scastie.api.StatusProgressorg.scastie.client.TargetTypePageβorg.scastie.api.ScalaTargetTypeorg.scastie.client.TryLibraryPageβorg.scastie.api.Projectorg.scastie.client.TryLibraryPageβorg.scastie.api.ScalaDependency
- Direction
- client uses api, so a change to api can break client, while a change to client can't break api.
- Position
- Below the diagonal: client uses a module listed above it, which is the healthy direction.
26β18 client uses client.components✕
- Connections
- 1 pair of types, where a type in client uses a type in client.components.
- The types involved
org.scastie.client.ScastieBackendβorg.scastie.client.components.Scastie
- Direction
- client uses client.components, so a change to client.components can break client, while a change to client can't break client.components.
- Position
- Below the diagonal: client uses a module listed above it, which is the healthy direction.
27β18 client.components.CopyModal uses client.components✕
- Connections
- 1 pair of types, where a type in client.components.CopyModal uses a type in client.components.
- The types involved
org.scastie.client.components.CopyModal.ShareModalComponentβorg.scastie.client.components.CopyModal
- Direction
- client.components.CopyModal uses client.components, so a change to client.components can break client.components.CopyModal, while a change to client.components.CopyModal can't break client.components.
- Position
- Below the diagonal: client.components.CopyModal uses a module listed above it, which is the healthy direction.
28β10 instrumentation.InstrumentationFailure uses api✕
- Connections
- 1 pair of types, where a type in instrumentation.InstrumentationFailure uses a type in api.
- The types involved
org.scastie.instrumentation.InstrumentationFailure.ParsingErrorβorg.scastie.api.Error
- Direction
- instrumentation.InstrumentationFailure uses api, so a change to api can break instrumentation.InstrumentationFailure, while a change to instrumentation.InstrumentationFailure can't break api.
- Position
- Below the diagonal: instrumentation.InstrumentationFailure uses a module listed above it, which is the healthy direction.
28β22 instrumentation.InstrumentationFailure uses instrumentation✕
- Connections
- 4 pairs of types, where a type in instrumentation.InstrumentationFailure uses a type in instrumentation.
- The types involved
org.scastie.instrumentation.InstrumentationFailure.HasMainMethodβorg.scastie.instrumentation.InstrumentationFailureorg.scastie.instrumentation.InstrumentationFailure.InternalErrorβorg.scastie.instrumentation.InstrumentationFailureorg.scastie.instrumentation.InstrumentationFailure.ParsingErrorβorg.scastie.instrumentation.InstrumentationFailureorg.scastie.instrumentation.InstrumentationFailure.UnsupportedDialectβorg.scastie.instrumentation.InstrumentationFailure
- Direction
- instrumentation.InstrumentationFailure uses instrumentation, so a change to instrumentation can break instrumentation.InstrumentationFailure, while a change to instrumentation.InstrumentationFailure can't break instrumentation.
- Position
- Below the diagonal: instrumentation.InstrumentationFailure uses a module listed above it, which is the healthy direction.
29β10 sbt.SbtProcess uses api✕
- Connections
- 5 pairs of types, where a type in sbt.SbtProcess uses a type in api.
- The types involved
org.scastie.sbt.SbtProcess.SbtDataβorg.scastie.api.SbtInputsorg.scastie.sbt.SbtProcess.SbtRunβorg.scastie.api.SbtInputsorg.scastie.sbt.SbtProcess.SbtRunβorg.scastie.api.SnippetIdorg.scastie.sbt.SbtProcess.SbtStateTimeoutβorg.scastie.api.SnippetIdorg.scastie.sbt.SbtProcess.SbtStateTimeoutβorg.scastie.api.SnippetProgress
- Direction
- sbt.SbtProcess uses api, so a change to api can break sbt.SbtProcess, while a change to sbt.SbtProcess can't break api.
- Position
- Below the diagonal: sbt.SbtProcess uses a module listed above it, which is the healthy direction.
29β22 sbt.SbtProcess uses instrumentation✕
- Connections
- 1 pair of types, where a type in sbt.SbtProcess uses a type in instrumentation.
- The types involved
org.scastie.sbt.SbtProcess.SbtRunβorg.scastie.instrumentation.PositionMapper
- Direction
- sbt.SbtProcess uses instrumentation, so a change to instrumentation can break sbt.SbtProcess, while a change to sbt.SbtProcess can't break instrumentation.
- Position
- Below the diagonal: sbt.SbtProcess uses a module listed above it, which is the healthy direction.
30β10 storage.filesystem uses api✕
- Connections
- 7 pairs of types, where a type in storage.filesystem uses a type in api.
- The types involved
org.scastie.storage.filesystem.FilesystemSnippetsContainerβorg.scastie.api.BaseInputsorg.scastie.storage.filesystem.FilesystemSnippetsContainerβorg.scastie.api.FetchResultorg.scastie.storage.filesystem.FilesystemSnippetsContainerβorg.scastie.api.FetchResultScalaJsorg.scastie.storage.filesystem.FilesystemSnippetsContainerβorg.scastie.api.FetchResultScalaJsSourceMaporg.scastie.storage.filesystem.FilesystemSnippetsContainerβorg.scastie.api.SnippetIdorg.scastie.storage.filesystem.FilesystemSnippetsContainerβorg.scastie.api.SnippetProgressorg.scastie.storage.filesystem.FilesystemSnippetsContainerβorg.scastie.api.SnippetSummary
- Direction
- storage.filesystem uses api, so a change to api can break storage.filesystem, while a change to storage.filesystem can't break api.
- Position
- Below the diagonal: storage.filesystem uses a module listed above it, which is the healthy direction.
30β25 storage.filesystem uses storage✕
- Connections
- 4 pairs of types, where a type in storage.filesystem uses a type in storage.
- The types involved
org.scastie.storage.filesystem.FilesystemSnippetsContainerβorg.scastie.storage.SnippetsContainerorg.scastie.storage.filesystem.FilesystemSnippetsContainerβorg.scastie.storage.UserLoginorg.scastie.storage.filesystem.FilesystemUsersContainerβorg.scastie.storage.UserLoginorg.scastie.storage.filesystem.FilesystemUsersContainerβorg.scastie.storage.UsersContainer
- Direction
- storage.filesystem uses storage, so a change to storage can break storage.filesystem, while a change to storage.filesystem can't break storage.
- Position
- Below the diagonal: storage.filesystem uses a module listed above it, which is the healthy direction.
31β10 storage.inmemory uses api✕
- Connections
- 7 pairs of types, where a type in storage.inmemory uses a type in api.
- The types involved
org.scastie.storage.inmemory.InMemorySnippetsContainerβorg.scastie.api.BaseInputsorg.scastie.storage.inmemory.InMemorySnippetsContainerβorg.scastie.api.FetchResultorg.scastie.storage.inmemory.InMemorySnippetsContainerβorg.scastie.api.FetchResultScalaJsorg.scastie.storage.inmemory.InMemorySnippetsContainerβorg.scastie.api.FetchResultScalaJsSourceMaporg.scastie.storage.inmemory.InMemorySnippetsContainerβorg.scastie.api.SnippetIdorg.scastie.storage.inmemory.InMemorySnippetsContainerβorg.scastie.api.SnippetProgressorg.scastie.storage.inmemory.InMemorySnippetsContainerβorg.scastie.api.SnippetSummary
- Direction
- storage.inmemory uses api, so a change to api can break storage.inmemory, while a change to storage.inmemory can't break api.
- Position
- Below the diagonal: storage.inmemory uses a module listed above it, which is the healthy direction.
31β25 storage.inmemory uses storage✕
- Connections
- 5 pairs of types, where a type in storage.inmemory uses a type in storage.
- The types involved
org.scastie.storage.inmemory.InMemorySnippetsContainerβorg.scastie.storage.SnippetsContainerorg.scastie.storage.inmemory.InMemorySnippetsContainerβorg.scastie.storage.UserLoginorg.scastie.storage.inmemory.InMemoryUsersContainerβorg.scastie.storage.PolicyAcceptanceorg.scastie.storage.inmemory.InMemoryUsersContainerβorg.scastie.storage.UserLoginorg.scastie.storage.inmemory.InMemoryUsersContainerβorg.scastie.storage.UsersContainer
- Direction
- storage.inmemory uses storage, so a change to storage can break storage.inmemory, while a change to storage.inmemory can't break storage.
- Position
- Below the diagonal: storage.inmemory uses a module listed above it, which is the healthy direction.
32β10 storage.mongodb uses api✕
- Connections
- 7 pairs of types, where a type in storage.mongodb uses a type in api.
- The types involved
org.scastie.storage.mongodb.MongoDBSnippetsContainerβorg.scastie.api.BaseInputsorg.scastie.storage.mongodb.MongoDBSnippetsContainerβorg.scastie.api.FetchResultorg.scastie.storage.mongodb.MongoDBSnippetsContainerβorg.scastie.api.FetchResultScalaJsorg.scastie.storage.mongodb.MongoDBSnippetsContainerβorg.scastie.api.FetchResultScalaJsSourceMaporg.scastie.storage.mongodb.MongoDBSnippetsContainerβorg.scastie.api.SnippetIdorg.scastie.storage.mongodb.MongoDBSnippetsContainerβorg.scastie.api.SnippetProgressorg.scastie.storage.mongodb.MongoDBSnippetsContainerβorg.scastie.api.SnippetSummary
- Direction
- storage.mongodb uses api, so a change to api can break storage.mongodb, while a change to storage.mongodb can't break api.
- Position
- Below the diagonal: storage.mongodb uses a module listed above it, which is the healthy direction.
32β25 storage.mongodb uses storage✕
- Connections
- 5 pairs of types, where a type in storage.mongodb uses a type in storage.
- The types involved
org.scastie.storage.mongodb.MongoDBSnippetsContainerβorg.scastie.storage.MongoSnippetorg.scastie.storage.mongodb.MongoDBSnippetsContainerβorg.scastie.storage.SnippetsContainerorg.scastie.storage.mongodb.MongoDBSnippetsContainerβorg.scastie.storage.UserLoginorg.scastie.storage.mongodb.MongoDBUsersContainerβorg.scastie.storage.UserLoginorg.scastie.storage.mongodb.MongoDBUsersContainerβorg.scastie.storage.UsersContainer
- Direction
- storage.mongodb uses storage, so a change to storage can break storage.mongodb, while a change to storage.mongodb can't break storage.
- Position
- Below the diagonal: storage.mongodb uses a module listed above it, which is the healthy direction.
33β26 client.View uses client✕
- Connections
- 4 pairs of types, where a type in client.View uses a type in client.
- The types involved
org.scastie.client.View.BuildSettingsβorg.scastie.client.Vieworg.scastie.client.View.CodeSnippetsβorg.scastie.client.Vieworg.scastie.client.View.Editorβorg.scastie.client.Vieworg.scastie.client.View.Statusβorg.scastie.client.View
- Direction
- client.View uses client, so a change to client can break client.View, while a change to client.View can't break client.
- Position
- Below the diagonal: client.View uses a module listed above it, which is the healthy direction.
34β10 util uses api✕
- Connections
- 6 pairs of types, where a type in util uses a type in api.
- The types involved
org.scastie.util.SbtRunβorg.scastie.api.SbtInputsorg.scastie.util.SbtRunβorg.scastie.api.SnippetIdorg.scastie.util.SbtTaskβorg.scastie.api.SbtInputsorg.scastie.util.SbtTaskβorg.scastie.api.SnippetIdorg.scastie.util.ScalaCliTaskβorg.scastie.api.ScalaCliInputsorg.scastie.util.ScalaCliTaskβorg.scastie.api.SnippetId
- Direction
- util uses api, so a change to api can break util, while a change to util can't break api.
- Position
- Below the diagonal: util uses a module listed above it, which is the healthy direction.
34β29 util uses sbt.SbtProcess✕
- Connections
- 1 pair of types, where a type in util uses a type in sbt.SbtProcess.
- The types involved
org.scastie.util.Replayβorg.scastie.sbt.SbtProcess.SbtRun
- Direction
- util uses sbt.SbtProcess, so a change to sbt.SbtProcess can break util, while a change to util can't break sbt.SbtProcess.
- Position
- Below the diagonal: util uses a module listed above it, which is the healthy direction.
35β3 client.components.editor uses client.components.editor.TreeSitterArgumentFinder✕
- Connections
- 2 pairs of types, where a type in client.components.editor uses a type in client.components.editor.TreeSitterArgumentFinder.
- The types involved
org.scastie.client.components.editor.MetalsSignatureHelpβorg.scastie.client.components.editor.TreeSitterArgumentFinder.ArgumentContextorg.scastie.client.components.editor.TreeSitterArgumentFinderβorg.scastie.client.components.editor.TreeSitterArgumentFinder.ArgumentContext
- Direction
- client.components.editor uses client.components.editor.TreeSitterArgumentFinder, so a change to client.components.editor.TreeSitterArgumentFinder can break client.components.editor, while a change to client.components.editor can't break client.components.editor.TreeSitterArgumentFinder.
- Position
- Below the diagonal: client.components.editor uses a module listed above it, which is the healthy direction.
35β6 client.components.editor uses runtime.api✕
- Connections
- 3 pairs of types, where a type in client.components.editor uses a type in runtime.api.
- The types involved
org.scastie.client.components.editor.CodeEditorβorg.scastie.runtime.api.Instrumentationorg.scastie.client.components.editor.CodeEditorβorg.scastie.runtime.api.RuntimeErrororg.scastie.client.components.editor.DecorationProviderβorg.scastie.runtime.api.Instrumentation
- Direction
- client.components.editor uses runtime.api, so a change to runtime.api can break client.components.editor, while a change to client.components.editor can't break runtime.api.
- Position
- Below the diagonal: client.components.editor uses a module listed above it, which is the healthy direction.
35β10 client.components.editor uses api✕
- Connections
- 11 pairs of types, where a type in client.components.editor uses a type in api.
- The types involved
org.scastie.client.components.editor.CodeEditorβorg.scastie.api.EditorModeorg.scastie.client.components.editor.CodeEditorβorg.scastie.api.Problemorg.scastie.client.components.editor.CodeEditorβorg.scastie.api.ScalaDependencyorg.scastie.client.components.editor.CodeEditorβorg.scastie.api.ScalaTargetorg.scastie.client.components.editor.InteractiveProviderβorg.scastie.api.ScalaDependencyorg.scastie.client.components.editor.InteractiveProviderβorg.scastie.api.ScalaTargetorg.scastie.client.components.editor.JsUtilsβorg.scastie.api.Severityorg.scastie.client.components.editor.MetalsClientβorg.scastie.api.LSPRequestDTOorg.scastie.client.components.editor.MetalsClientβorg.scastie.api.ScalaDependencyorg.scastie.client.components.editor.MetalsClientβorg.scastie.api.ScalaTargetorg.scastie.client.components.editor.MetalsSignatureHelpβorg.scastie.api.SignatureHelpDTO
- Direction
- client.components.editor uses api, so a change to api can break client.components.editor, while a change to client.components.editor can't break api.
- Position
- Below the diagonal: client.components.editor uses a module listed above it, which is the healthy direction.
35β26 client.components.editor uses client✕
- Connections
- 3 pairs of types, where a type in client.components.editor uses a type in client.
- The types involved
org.scastie.client.components.editor.CodeEditorβorg.scastie.client.MetalsStatusorg.scastie.client.components.editor.InteractiveProviderβorg.scastie.client.MetalsStatusorg.scastie.client.components.editor.MetalsClientβorg.scastie.client.MetalsStatus
- Direction
- client.components.editor uses client, so a change to client can break client.components.editor, while a change to client.components.editor can't break client.
- Position
- Below the diagonal: client.components.editor uses a module listed above it, which is the healthy direction.
35β33 client.components.editor uses client.View✕
- Connections
- 2 pairs of types, where a type in client.components.editor uses a type in client.View.
- The types involved
org.scastie.client.components.editor.CodeEditorβorg.scastie.client.View.Editororg.scastie.client.components.editor.SimpleEditorβorg.scastie.client.View.Editor
- Direction
- client.components.editor uses client.View, so a change to client.View can break client.components.editor, while a change to client.components.editor can't break client.View.
- Position
- Below the diagonal: client.components.editor uses a module listed above it, which is the healthy direction.
36β6 sbt uses runtime.api✕
- Connections
- 1 pair of types, where a type in sbt uses a type in runtime.api.
- The types involved
org.scastie.sbt.OutputExtractorβorg.scastie.runtime.api.RuntimeError
- Direction
- sbt uses runtime.api, so a change to runtime.api can break sbt, while a change to sbt can't break runtime.api.
- Position
- Below the diagonal: sbt uses a module listed above it, which is the healthy direction.
36β7 sbt uses sbt.OutputExtractor✕
- Connections
- 1 pair of types, where a type in sbt uses a type in sbt.OutputExtractor.
- The types involved
org.scastie.sbt.OutputExtractorβorg.scastie.sbt.OutputExtractor.SourceMap
- Direction
- sbt uses sbt.OutputExtractor, so a change to sbt.OutputExtractor can break sbt, while a change to sbt can't break sbt.OutputExtractor.
- Position
- Below the diagonal: sbt uses a module listed above it, which is the healthy direction.
36β10 sbt uses api✕
- Connections
- 6 pairs of types, where a type in sbt uses a type in api.
- The types involved
org.scastie.sbt.FormatActorβorg.scastie.api.ScalaTargetorg.scastie.sbt.OutputExtractorβorg.scastie.api.Problemorg.scastie.sbt.OutputExtractorβorg.scastie.api.ProcessOutputorg.scastie.sbt.OutputExtractorβorg.scastie.api.SbtOutputorg.scastie.sbt.OutputExtractorβorg.scastie.api.SnippetIdorg.scastie.sbt.OutputExtractorβorg.scastie.api.SnippetProgress
- Direction
- sbt uses api, so a change to api can break sbt, while a change to sbt can't break api.
- Position
- Below the diagonal: sbt uses a module listed above it, which is the healthy direction.
36β22 sbt uses instrumentation✕
- Connections
- 1 pair of types, where a type in sbt uses a type in instrumentation.
- The types involved
org.scastie.sbt.OutputExtractorβorg.scastie.instrumentation.PositionMapper
- Direction
- sbt uses instrumentation, so a change to instrumentation can break sbt, while a change to sbt can't break instrumentation.
- Position
- Below the diagonal: sbt uses a module listed above it, which is the healthy direction.
36β29 sbt uses sbt.SbtProcess✕
- Connections
- 1 pair of types, where a type in sbt uses a type in sbt.SbtProcess.
- The types involved
org.scastie.sbt.OutputExtractorβorg.scastie.sbt.SbtProcess.SbtRun
- Direction
- sbt uses sbt.SbtProcess, so a change to sbt.SbtProcess can break sbt, while a change to sbt can't break sbt.SbtProcess.
- Position
- Below the diagonal: sbt uses a module listed above it, which is the healthy direction.
36β34 sbt uses util✕
- Connections
- 2 pairs of types, where a type in sbt uses a type in util.
- The types involved
org.scastie.sbt.SbtActorβorg.scastie.util.ActorReconnectingorg.scastie.sbt.SbtActorβorg.scastie.util.ReconnectInfo
- Direction
- sbt uses util, so a change to util can break sbt, while a change to sbt can't break util.
- Position
- Below the diagonal: sbt uses a module listed above it, which is the healthy direction.
37β5 scalacli uses runner✕
- Connections
- 1 pair of types, where a type in scalacli uses a type in runner.
- The types involved
org.scastie.scalacli.BspClientβorg.scastie.runner.Runner
- Direction
- scalacli uses runner, so a change to runner can break scalacli, while a change to scalacli can't break runner.
- Position
- Below the diagonal: scalacli uses a module listed above it, which is the healthy direction.
37β6 scalacli uses runtime.api✕
- Connections
- 2 pairs of types, where a type in scalacli uses a type in runtime.api.
- The types involved
org.scastie.scalacli.RunOutputβorg.scastie.runtime.api.Instrumentationorg.scastie.scalacli.RunOutputβorg.scastie.runtime.api.RuntimeError
- Direction
- scalacli uses runtime.api, so a change to runtime.api can break scalacli, while a change to scalacli can't break runtime.api.
- Position
- Below the diagonal: scalacli uses a module listed above it, which is the healthy direction.
37β10 scalacli uses api✕
- Connections
- 12 pairs of types, where a type in scalacli uses a type in api.
- The types involved
org.scastie.scalacli.BspClientβorg.scastie.api.Problemorg.scastie.scalacli.BspClientβorg.scastie.api.ScalaActionorg.scastie.scalacli.BspClientβorg.scastie.api.Severityorg.scastie.scalacli.CompilationErrorβorg.scastie.api.Problemorg.scastie.scalacli.RunOutputβorg.scastie.api.Problemorg.scastie.scalacli.ScalaCliActorβorg.scastie.api.ProcessOutputorg.scastie.scalacli.ScalaCliActorβorg.scastie.api.SnippetIdorg.scastie.scalacli.ScalaCliActorβorg.scastie.api.SnippetProgressorg.scastie.scalacli.ScalaCliRunnerβorg.scastie.api.BaseInputsorg.scastie.scalacli.ScalaCliRunnerβorg.scastie.api.ProcessOutputorg.scastie.scalacli.ScalaCliRunnerβorg.scastie.api.ScalaCliInputsorg.scastie.scalacli.ScalaCliRunnerβorg.scastie.api.SnippetId
- Direction
- scalacli uses api, so a change to api can break scalacli, while a change to scalacli can't break api.
- Position
- Below the diagonal: scalacli uses a module listed above it, which is the healthy direction.
37β22 scalacli uses instrumentation✕
- Connections
- 3 pairs of types, where a type in scalacli uses a type in instrumentation.
- The types involved
org.scastie.scalacli.BspClientβorg.scastie.instrumentation.PositionMapperorg.scastie.scalacli.InstrumentationFailureβorg.scastie.instrumentation.InstrumentationFailureReportorg.scastie.scalacli.ScalaCliRunnerβorg.scastie.instrumentation.PositionMapper
- Direction
- scalacli uses instrumentation, so a change to instrumentation can break scalacli, while a change to scalacli can't break instrumentation.
- Position
- Below the diagonal: scalacli uses a module listed above it, which is the healthy direction.
37β24 scalacli uses scalacli.BspClient✕
- Connections
- 1 pair of types, where a type in scalacli uses a type in scalacli.BspClient.
- The types involved
org.scastie.scalacli.ScalaCliRunnerβorg.scastie.scalacli.BspClient.BuildOutput
- Direction
- scalacli uses scalacli.BspClient, so a change to scalacli.BspClient can break scalacli, while a change to scalacli can't break scalacli.BspClient.
- Position
- Below the diagonal: scalacli uses a module listed above it, which is the healthy direction.
37β34 scalacli uses util✕
- Connections
- 3 pairs of types, where a type in scalacli uses a type in util.
- The types involved
org.scastie.scalacli.ScalaCliActorβorg.scastie.util.ActorReconnectingorg.scastie.scalacli.ScalaCliActorβorg.scastie.util.ReconnectInfoorg.scastie.scalacli.ScalaCliActorβorg.scastie.util.ScalaCliTask
- Direction
- scalacli uses util, so a change to util can break scalacli, while a change to scalacli can't break util.
- Position
- Below the diagonal: scalacli uses a module listed above it, which is the healthy direction.
38β1 balancer uses balancer.BaseDispatcher✕
- Connections
- 1 pair of types, where a type in balancer uses a type in balancer.BaseDispatcher.
- The types involved
org.scastie.balancer.BaseDispatcherβorg.scastie.balancer.BaseDispatcher.SocketAddress
- Direction
- balancer uses balancer.BaseDispatcher, so a change to balancer.BaseDispatcher can break balancer, while a change to balancer can't break balancer.BaseDispatcher.
- Position
- Below the diagonal: balancer uses a module listed above it, which is the healthy direction.
38β10 balancer uses api✕
- Connections
- 29 pairs of types, where a type in balancer uses a type in api. Showing 25 of them; the rest are in namespace-graph.json in this report's bundle.
- The types involved
org.scastie.balancer.Cleanupβorg.scastie.api.SnippetIdorg.scastie.balancer.DeleteSnippetβorg.scastie.api.SnippetIdorg.scastie.balancer.DispatchActorβorg.scastie.api.SnippetIdorg.scastie.balancer.Doneβorg.scastie.api.SnippetProgressorg.scastie.balancer.DownloadSnippetβorg.scastie.api.SnippetIdorg.scastie.balancer.FetchLatestSnippetβorg.scastie.api.SnippetIdorg.scastie.balancer.FetchSnippetβorg.scastie.api.SnippetIdorg.scastie.balancer.FetchUserSnippetsβorg.scastie.api.Userorg.scastie.balancer.ForkSnippetβorg.scastie.api.SnippetIdorg.scastie.balancer.GetPrivacyPolicyβorg.scastie.api.Userorg.scastie.balancer.InputsWithIpAndUserβorg.scastie.api.BaseInputsorg.scastie.balancer.ProgressActorβorg.scastie.api.SnippetIdorg.scastie.balancer.RemoveAllUserSnippetsβorg.scastie.api.Userorg.scastie.balancer.RemovePrivacyPolicyβorg.scastie.api.Userorg.scastie.balancer.Runβorg.scastie.api.SnippetIdorg.scastie.balancer.SbtDispatcherβorg.scastie.api.SbtInputsorg.scastie.balancer.SbtDispatcherβorg.scastie.api.SnippetIdorg.scastie.balancer.SbtLoadBalancerβorg.scastie.api.SbtInputsorg.scastie.balancer.SbtLoadBalancerβorg.scastie.api.TaskIdorg.scastie.balancer.ScalaCliDispatcherβorg.scastie.api.ScalaCliInputsorg.scastie.balancer.ScalaCliDispatcherβorg.scastie.api.SnippetIdorg.scastie.balancer.ScalaCliLoadBalancerβorg.scastie.api.ScalaCliInputsorg.scastie.balancer.ScalaCliLoadBalancerβorg.scastie.api.TaskIdorg.scastie.balancer.Serverβorg.scastie.api.TaskIdorg.scastie.balancer.SetPrivacyPolicyβorg.scastie.api.User
- Direction
- balancer uses api, so a change to api can break balancer, while a change to balancer can't break api.
- Position
- Below the diagonal: balancer uses a module listed above it, which is the healthy direction.
38β37 balancer uses scalacli✕
- Connections
- 1 pair of types, where a type in balancer uses a type in scalacli.
- The types involved
org.scastie.balancer.ScalaCliLoadBalancerβorg.scastie.scalacli.ScalaCliServer
- Direction
- balancer uses scalacli, so a change to scalacli can break balancer, while a change to balancer can't break scalacli.
- Position
- Below the diagonal: balancer uses a module listed above it, which is the healthy direction.
39β10 web uses api✕
- Connections
- 11 pairs of types, where a type in web uses a type in api.
- The types involved
org.scastie.web.RestApiServerβorg.scastie.api.BaseInputsorg.scastie.web.RestApiServerβorg.scastie.api.EditInputsorg.scastie.web.RestApiServerβorg.scastie.api.FetchResultorg.scastie.web.RestApiServerβorg.scastie.api.FormatRequestorg.scastie.web.RestApiServerβorg.scastie.api.FormatResponseorg.scastie.web.RestApiServerβorg.scastie.api.RestApiorg.scastie.web.RestApiServerβorg.scastie.api.SnippetIdorg.scastie.web.RestApiServerβorg.scastie.api.SnippetSummaryorg.scastie.web.RestApiServerβorg.scastie.api.Userorg.scastie.web.RestApiServerβorg.scastie.api.UserDataorg.scastie.web.routesβorg.scastie.api.SnippetId
- Direction
- web uses api, so a change to api can break web, while a change to web can't break api.
- Position
- Below the diagonal: web uses a module listed above it, which is the healthy direction.
39β38 web uses balancer✕
- Connections
- 1 pair of types, where a type in web uses a type in balancer.
- The types involved
org.scastie.web.RestApiServerβorg.scastie.balancer.InputsWithIpAndUser
- Direction
- web uses balancer, so a change to balancer can break web, while a change to web can't break balancer.
- Position
- Below the diagonal: web uses a module listed above it, which is the healthy direction.
40β10 web.routes uses api✕
- Connections
- 3 pairs of types, where a type in web.routes uses a type in api.
- The types involved
org.scastie.web.routes.FrontPageRoutesβorg.scastie.api.SnippetIdorg.scastie.web.routes.ProgressRoutesβorg.scastie.api.SnippetIdorg.scastie.web.routes.ProgressRoutesβorg.scastie.api.SnippetProgress
- Direction
- web.routes uses api, so a change to api can break web.routes, while a change to web.routes can't break api.
- Position
- Below the diagonal: web.routes uses a module listed above it, which is the healthy direction.
40β39 web.routes uses web✕
- Connections
- 1 pair of types, where a type in web.routes uses a type in web.
- The types involved
org.scastie.web.routes.ApiRoutesβorg.scastie.web.RestApiServer
- Direction
- web.routes uses web, so a change to web can break web.routes, while a change to web.routes can't break web.
- Position
- Below the diagonal: web.routes uses a module listed above it, which is the healthy direction.
At a glance β Code Health
At a glance β Architecture
At a glance β Maturity
At a glance β Readiness
At a glance β Security
At a glance β Accessibility
At a glance β Performance
Security & Compliance β OWASP Top-10 mapping
| OWASP category | Findings | Severity |
|---|---|---|
| A03:2025 β Software Supply Chain Failures | 17 | High / Critical |
| A07:2025 β Authentication Failures | 8 | High / Critical |
| A05:2025 β Injection | 6 | High / Critical |
Roadmap
First, correct the page structure by adding essential semantic landmarks and titles, while ensuring visual safety through proper focus styles, reduced motion support, and sufficient color contrast. Next, integrate accessibility checks into the development toolchain and CI pipeline to enforce these standards automatically. Simultaneously, secure the application by pinning third-party scripts with integrity hashes or strict content security policies, and resolve the identified high-severity dependency vulnerabilities to harden the overall security posture.
| Do this | Helps | Effort | Dimension |
|---|---|---|---|
| Declare <html lang>, a document <title> and a <main> landmark, keep headings in order, leave zoom enabled, title iframes and drop meta-refresh. | +8.3 pts | Medium | Page structure |
| Keep a visible focus style (don't remove the outline without a replacement), guard animation with prefers-reduced-motion, and raise low-contrast colour pairs to at least 4.5:1. | +8.3 pts | Medium | Visual & motion safety |
| Enforce accessibility in the toolchain: add eslint-plugin-jsx-a11y, then assert with your test runner's axe binding (jest-axe, vitest-axe, cypress-axe or @axe-core/playwright) in tests, then gate axe/pa11y/Lighthouse in CI. | +6.7 pts | Medium | A11y enforcement |
| Resolve the 1 No ADRs found finding(s) in ADR Quality. | +2.3 pts | Low | ADR Quality |
| Pin third-party scripts and verify them: name an exact version in the URL and add an `integrity="sha384-β¦"` hash alongside `crossorigin="anonymous"` (both are required β an integrity hash on a cross-origin script without `crossorigin` is not evaluated, it blocks the script). Where the vendor ships a continuously-updated loader and publishes no stable hash (tag managers, analytics, chat widgets), Subresource Integrity is not available: constrain it instead with a `Content-Security-Policy` that names the exact origins allowed to execute, and drop the script from the pages that do not need it. Where the page is shipped inside a package that others host, prefer vendoring the asset and serving it from the appβs own origin, so no consumer inherits a third-party dependency they did not choose. | +3.9 pts | Medium | Web-Security Posture |
| Resolve the 4 Leaked secret finding(s) in REDACTED Scanning β start with REDACTED (4). | +1.5 pts | Low | REDACTED Scanning |
| Resolve the 13 High CVE finding(s) in Dependency Vulnerabilities β start with REDACTED (13). | +2.5 pts | Medium | Dependency Vulnerabilities |
| Resolve the 3 REDACTED finding(s) in Secrets (history) β start with REDACTED (2), REDACTED. | +1.1 pts | Low | Secrets (history) |
File quality
| File | Score | Band | Worst signal |
|---|---|---|---|
| REDACTED | 0.5 | Slop | Dependency Vulnerabilities: High CVE: REDACTED |
| REDACTED | 0.6 | Slop | REDACTED Scanning: Leaked secret: REDACTED |
| REDACTED | 2.7 | Slop | Static Analysis (SAST): High: REDACTED |
| instrumentation/src/main/scala/org/scastie/instrumentation/Instrument.scala | 5.8 | Mixed | Change Coupling: Boundary-crossing change coupling: Instrument.scala β SharedRuntime.scala |
| client/src/main/scala/org/scastie/client/components/Scastie.scala | 6.0 | Mixed | Explicit Debt: TodoComment |
| REDACTED | 7.2 | Near-clean | Secrets (history): REDACTED: REDACTED |
| REDACTED | 7.2 | Near-clean | Static Analysis (SAST): High: REDACTED |
| instrumentation/src/main/scala/org/scastie/instrumentation/Patch.scala | 7.3 | Near-clean | Explicit Debt: TodoComment |
| balancer/src/main/scala/org/scastie/balancer/SbtDispatcher.scala | 7.4 | Near-clean | Cyclomatic Complexity: SbtDispatcher.receive (cyclomatic 20) |
| client/src/main/scala/org/scastie/client/components/ScaladexSearch.scala | 7.4 | Near-clean | Cyclomatic Complexity: ScaladexSearch.render (cyclomatic 20) |
| metals-runner/src/main/scala/org/scastie/metals/ScastieMetalsRoutes.scala | 7.8 | Near-clean | Cyclomatic Complexity: ScastieMetalsRoutes.routes (cyclomatic 25) |
| balancer/src/main/scala/org/scastie/balancer/ScalaCliDispatcher.scala | 7.8 | Near-clean | Cyclomatic Complexity: ScalaCliDispatcher.receive (cyclomatic 17) |
| sbt-runner/src/main/scala/org/scastie/sbt/SbtMain.scala | 7.8 | Near-clean | Code Duplication: Duplicated block (19 lines × 2) |
| REDACTED | 7.9 | Near-clean | Static Analysis (SAST): Medium: REDACTED |
| api/src/main/scala/org/scastie/api/ScalaTarget.scala | 8.2 | Near-clean | Explicit Debt: TodoComment |
| client/src/main/scala/org/scastie/client/ScastieBackend.scala | 8.2 | Near-clean | Explicit Debt: XxxComment |
| sbt-runner/src/main/scala/org/scastie/sbt/SbtProcess.scala | 8.2 | Near-clean | Explicit Debt: TodoComment |
| storage/src/main/scala/org/scastie/storage/mongodb/GenericMongoContainer.scala | 8.2 | Near-clean | Explicit Debt: TodoComment |
| client/src/main/scala/org/scastie/client/EmbeddedOptions.scala | 8.5 | Near-clean | Cyclomatic Complexity: EmbeddedOptions.fromJs (cyclomatic 21) |
| metals-runner/src/main/scala/org/scastie/metals/ScastieMetals.scala | 8.5 | Near-clean | Cognitive Complexity: ScastieMetalsImpl.instance (cognitive 27) |
How the grades work
A definite problem that already costs you something and drags the score down: a missing authorisation check, a dependency with a known exploit, a build that does not reproduce. Failure here tends to cause failures elsewhere.
Likely wrong, but not failing yet. It degrades the codebase over a longer horizon and can cause failures elsewhere β not urgent this week, not something to carry for two years either.
Recorded, with no effect on how the codebase functions. Present so the survey is complete, not because it needs doing.
Something this survey could not settle from the outside, and which could be critical or serious. Either a control was required and no positive evidence of it exists in the repository β a backup job that nothing shows was ever restored from proves nothing about restores β or our own analysis could not run over that part of the tree. This is not a clean result. These are excluded from the score rather than awarded a pass, so the number on the cover neither rewards nor penalises them: if you act on this survey without resolving them, you carry that risk yourself. Each one is named under Limitations.
Methodology & how to trust this report
Watchdog is a deep, periodic assessment β run each sprint, monthly, or quarterly, taking the time to go wider and deeper than a quick check and surfacing in one coherent report what you'd otherwise piece together from a dozen separate tools. It scores deterministically: the same commit yields the same score, every run. 64 of 68 evaluated dimensions are computed purely by tools and static analysis (confidence 1.0); 4 documentation/naming judgement(s) are LLM-assisted and labelled advisory. Overall confidence is 0.9 β the weighted average across measured dimensions; it falls as more of the score leans on LLM-assisted judgement and rises when it's fully tool-backed.
What we checked β 68 dimensions across the health lenses
- Can you open the finding? Real findings cite a repo-relative file and line you can open at the cited line β never an absolute scratch path. Here, 139 of 162 do; the remainder are repo-wide signals β a dimension-level measurement, not a single line.
- Is there a tool behind the number? Every score below names the method that produced it β Roslyn, git, a scanner, or (for a handful of documentation/naming dimensions) an LLM labelled sampled Β· advisory β not a narrative.
- Does re-running give the same result? Run it again on the same commit and the score β and this report, byte for byte β is identical. A report whose numbers move between runs is describing the run, not the code.
Tools & methods
| Method | Backs | Version | Evaluator |
|---|---|---|---|
| Roslyn static analysis | Complexity, cohesion, coupling, dead code, API surface, layering | 5.3.0 | β deterministic |
| Native secret scanner | Hardcoded secrets / credentials | 1.0.0 | β deterministic |
| Watchdog duplication detector (in-process) | Code duplication | 1.0.0 | β deterministic |
| Coverage (coverlet / dotnet-coverage) | Line & branch coverage | 10.0.400 | β deterministic |
| NuGet / dotnet | Outdated, vulnerable & deprecated dependencies | 10.0.400 | β deterministic |
| git / LibGit2Sharp | Churn hotspots, knowledge concentration, history | 2.43.0 Β· 0.31.0 | β deterministic |
| gitleaks · semgrep · trivy | Secrets in history, SAST, CVEs, IaC & container, PII / GDPR | 1.86.0 Β· 0.69.3 | β deterministic |
| LLM (sampled · advisory) | Documentation quality, ADR conformance, naming β sampled over a bounded sample; advisory, never a deterministic measurement | Local LLM | β LLM Β· sampled Β· advisory |
Run transparency β what happened this run
- D8 Code Coverage β not measured this run β Watchdog could not measure this here. That is a gap on our side β a collector, parser or image we have not built yet β and it is neither a defect in this repository nor evidence that the check would have passed. Coverage NOT MEASURED: test source is present (.scala) but the built-in coverage collector has no runner for this repository's ecosystem β so this suite was never executed by it. Not scored β this is a gap in the analyzer's language coverage, not a defect in the repo. To have real coverage read, produce a coverage report in a standard format (`addSbtPlugin("org.scoverage" % "sbt-scoverage" % "<version>")` in `project/plugins.sbt`, then `sbt clean coverage test coverageReport`) and commit it β a hosted scan measures a clone of the repository, so a report that exists only in a working tree, a CI runner's or your own, never reaches it; the artefact is commonly gitignored, so `git add -f` that one file (or un-ignore its path) and commit it alongside the code it measures. You can widen what we reach: optional: produce a coverage report in a standard format (`addSbtPlugin("org.scoverage" % "sbt-scoverage" % "<version>")` in `project/plugins.sbt`, then `sbt clean coverage test coverageReport`) and commit it β a hosted scan measures a clone of the repository, so a report that exists only in a working tree, a CI runner's or your own, never reaches it; the artefact is commonly gitignored, so `git add -f` that one file (or un-ignore its path) and commit it alongside the code it measures β then the real number is read on the next scan.
- D11 Test Reliability β not measured this run β Watchdog could not measure this here. That is a gap on our side β a collector, parser or image we have not built yet β and it is neither a defect in this repository nor evidence that the check would have passed. Test source is present (.scala) and this repository declares an sbt build (repository root, 24 test files), but it was not re-run: the analyzer environment could not run it. Not scored β this is a gap in the analyzer's language coverage, not a finding about this repository.
- D14 License Compliance β measured, with a gap in what it reached β Watchdog measured this, but not all of it. What it did not reach is a gap on our side β a collector, parser or image we have not built yet β so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. This repository declares package.json, but the licence verdict published here was taken over its sbt dependencies. Nothing was read about its npm dependencies' licensing in either direction, and a clean score on this card must not be read as covering them.
- D27 Navigability β not measured this run β Watchdog could not measure this here. That is a gap on our side β a collector, parser or image we have not built yet β and it is neither a defect in this repository nor evidence that the check would have passed. Navigability is taken over call sites whose callee resolved. For C# that population includes calls into referenced assemblies; for this language only calls declared inside the repository count, so the abstention threshold reads the repository's use of its standard library as a resolution failure. That is a limit of this analyzer, not a build problem in this repository.
- D32 Data Compliance (PII/GDPR) β not measured this run β Watchdog could not measure this here. That is a gap on our side β a collector, parser or image we have not built yet β and it is neither a defect in this repository nor evidence that the check would have passed. `demo/bug.scala`, `metals-runner/src/main/scala/org/scastie/metals/DTOExtensions.scala`, `metals-runner/src/main/scala/org/scastie/metals/MetalsDispatcher.scala`, `metals-runner/src/main/scala/org/scastie/metals/ScastiePresentationCompiler.scala` produced a parse error, so every rule in this engine's `gdpr.yml` was absent there. That absence is NOT a clean result: these rules detect personal data crossing a boundary into a log sink, a URL or browser storage, and a file that was never parsed cannot report any of the three. The rest of the tree analysed normally and its rows above stand; only these files are unaccounted for. You can widen what we reach: fix the syntax error (or exclude the file deliberately) and re-scan to cover it.
- AX2 Stateful singletons β measured, with a gap in what it reached β Watchdog measured this, but not all of it. What it did not reach is a gap on our side β a collector, parser or image we have not built yet β so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. Those languages run requests on shared-memory threads, so a shared instance mutated without a lock is the same defect this card counts in C#, Java, Kotlin, Python, Go, Swift, Scala, Ruby and F#, but their singleton shapes are not read yet. That is a gap in this analyzer's language reach β not a finding that the code is free of it.
- AXR1 Runtime accessibility β not measured this run β Watchdog could not measure this here. That is a gap on our side β a collector, parser or image we have not built yet β and it is neither a defect in this repository nor evidence that the check would have passed. Render strategy: boot via DevServer (dev). the dev server did not expose a crawlable HTTP endpoint in time β no runtime evidence.
- C1 Data Protection β not measured this run β Watchdog could not measure this here. That is a gap on our side β a collector, parser or image we have not built yet β and it is neither a defect in this repository nor evidence that the check would have passed. These personal data controls are read from declarative annotations, request middleware, entity/column names and guard methods in a C# source model, and none was loaded on this run, so there was nothing to gather. That is a gap in this analyzer's language reach β not a finding that the repository lacks personal data controls.
- C2 Access Controls β not measured this run β Watchdog could not measure this here. That is a gap on our side β a collector, parser or image we have not built yet β and it is neither a defect in this repository nor evidence that the check would have passed. These authorization controls are read from declarative annotations, request middleware, entity/column names and guard methods in a C# source model, and none was loaded on this run, so there was nothing to gather. That is a gap in this analyzer's language reach β not a finding that the repository lacks authorization controls.
- C3 Audit Trail β not measured this run β Watchdog could not measure this here. That is a gap on our side β a collector, parser or image we have not built yet β and it is neither a defect in this repository nor evidence that the check would have passed. 'org.mongodb.scala' is imported (scripts/MigrationScript.scala:25), but no entity, schema, table or model declaration this check reads was found beside it, so whether personal data is stored could not be decided.
- C4 Data Retention β not measured this run β Watchdog could not measure this here. That is a gap on our side β a collector, parser or image we have not built yet β and it is neither a defect in this repository nor evidence that the check would have passed. 'org.mongodb.scala' is imported (scripts/MigrationScript.scala:25), but no entity, schema, table or model declaration this check reads was found beside it, so whether personal data is stored could not be decided.
- C5 Data-Subject Rights β not measured this run β Watchdog could not measure this here. That is a gap on our side β a collector, parser or image we have not built yet β and it is neither a defect in this repository nor evidence that the check would have passed. 'org.mongodb.scala' is imported (scripts/MigrationScript.scala:25), but no entity, schema, table or model declaration this check reads was found beside it, so whether personal data is stored could not be decided.
Limitations & what we did not check
Watchdog assesses the repository exactly as committed, and only the repository. By design it does not reach outside the source tree: the live cloud account, the running CI/CD pipeline, the host's branch-protection and approval rules, the production configuration, or a restore actually exercised against a backup are all out of scope. That boundary is a feature, not a gap β a repo-relative, deterministic scan re-runs identically on any commit and every finding opens at a real file and line, where a live audit can neither be reproduced nor traced. The visible consequence is that controls which leave no in-repo evidence are reported as "not evidenced" and excluded from the score rather than awarded a number a static scan cannot justify.
Per-dimension blind spots
- D1 Cyclomatic Complexity: Cyclomatic complexity counts branches statically β it cannot tell an essential decision tree from accidental tangle, nor see complexity that lives in data or configuration (large switch-case token tables, DSL lexers/parsers, data-as-code rule tables) rather than control flow: a tokenizer's many single-character cases read as high complexity though each branch is trivial.
- D2 Cognitive Complexity: Cognitive-complexity heuristics approximate how hard code is to follow; genuine domain difficulty and well-named intent that eases reading are not captured.
- D3 God Classes: "God class" is sized by members and responsibilities visible in the type β a deliberately broad facade over a coherent subsystem can read the same as an accidental grab-bag. For front-end JS the file-length check is cohesion-aware (a single-responsibility module β one class/IIFE β earns a 3× threshold), but cohesion is approximated from top-level declarations, not true dependency structure.
- D4 Code Duplication: Duplication is token-similarity β an in-process token-stream comparison over sliding windows, with type-aware normalization β so it finds copy-paste, not semantic duplication expressed differently. Committed machine-written code (scaffolded migrations, designer/codegen output, protobuf/OpenAPI stubs, model snapshots) is EXCLUDED β its repetition is the tool's, not the team's β so the score reflects hand-written duplication only.
- D5 Coupling: Coupling is measured between projects/assemblies β runtime coupling through DI, reflection, messaging or shared databases is invisible to a static reference graph.
- D6 Cohesion (LCOM4): LCOM4 cohesion is syntactic β it infers connectivity from which methods touch which fields/methods by name, not from real runtime behaviour or intent.
- D9 Test Distribution: The test-pyramid shape is inferred from project/folder naming and references, with a single test host bucketed per-file by its path tier and content signals β a suite that names tiers unconventionally and gives no per-file signal can still be mis-bucketed.
- D12 Dependency Hygiene: Dependency health reads manifests and lockfiles β a vulnerability in a vendored/copied dependency, or risk from how a dependency is actually used, is outside this view.
- D13 REDACTED Scanning: REDACTED detection is signature- and entropy-based on the current tree β a secret that does not match a known pattern, or one already rotated, will not be flagged (a clean scan is "nothing matched", not "no secrets exist").
- D14 License Compliance: License compatibility is checked against declared package metadata and a policy β mislabelled or missing license metadata, and obligations that depend on how you distribute, are not resolved here.
- D15 Churn × Complexity Hotspots: Churn hotspots come from git history β a freshly imported or squashed repository has no churn signal, and recent rewrites can mask a historically risky file.
- D16 Bus Factor: Bus-factor is a time-decayed model of commit attribution (who has recently, repeatedly worked a file), not comprehension β pairing, review and reading-without-committing spread knowledge it can't see; bot commits and shared accounts still distort it.
- D17 Explicit Debt: Acknowledged-debt signals (TODO/FIXME, suppressions, dead code) are textual β undocumented debt that nobody marked, and debt that lives in design rather than annotations, is invisible. Committed machine-written code (scaffolded migrations, designer/codegen output, generated stubs) is excluded β it is never the team's dead code to delete.
- D19 Documentation Quality: Documentation quality is judged by an LLM over a bounded sample of docs β it reads what is written, not whether the docs match the running system, and it is advisory, not a measurement. Its critique rows are drawn from a closed category vocabulary and each row means the same thing in every run, so two scans can be compared row by row; the SET that fires is still a sample, and does not repeat exactly. Measured on one frozen input, six scans at one engine SHA: 2-5 critique rows per scan, 8 distinct rows across the six, 3 of those 8 seen in only one scan. So a D19 row is evidence about the documentation, but a COUNT of D19 rows is not a quantity β never read a change in it as an improvement or a regression.
- D20 ADR Quality: ADR quality is an LLM read of the decision records present β it cannot know about decisions made and never recorded, and its verdict is sampled and advisory.
- D21 Naming Consistency: Naming quality is an LLM judgement over a bounded sample β it assesses clarity/consistency of the names it sees, not domain-correctness, and is advisory.
- D22 Internal API Consistency: API-surface coherence is an LLM judgement over a sample of the public surface β consistency of intent across the whole API is approximated, not exhaustively verified.
- D26 Project Cohesion: Project focus is sized from members/namespaces per project β a project that is broad by deliberate design reads the same as one that has sprawled.
- D28 Secrets (history): Secret-history scanning sweeps the git log for known patterns β a secret that predates the available history, or never matched a signature, is not found (clean means "nothing matched in the history we can see").
- D29 Static Analysis (SAST): SAST findings are pattern-based (semgrep) β it finds classes of bug it has rules for; logic flaws, auth/authorization gaps and issues needing runtime context are out of reach (and clean means "no rule matched").
- D30 Dependency Vulnerabilities: CVE matching depends on accurate package/version metadata and on the advisory databases β a vulnerability with no published advisory, or in code not declared as a dependency, is not seen. Coverage needs a RESOLVED graph: an unpinned requirements.txt, or a pom without a resolved build, yields partial coverage rather than a clean verdict. An ecosystem the analyzer cannot scan is reported as unmeasured, never as clean.
- D34 Knowledge Freshness: Freshness is decayed commit RECENCY, not comprehension β code read often but rarely committed reads as orphaned, and stable code that genuinely needs no changes is penalised the same as forgotten code; bot/squash commits distort it like the bus factor.
- D35 Change Coupling: Change coupling is co-change in COMMITS β files split across separate commits, or coupled only through a shared config/build step, read as uncoupled, and a sweeping commit (rename/format) is excluded so it doesn't couple everything. It shows that files change together, not WHY: a high coupling can be a healthy cohesive pair as readily as a hidden leak.
- D43 Malicious Dependencies: Only packages some vulnerability database has already NAMED as malicious are seen β a compromise published in the last hours, or never reported at all, is invisible here, and this dimension reading 10 is not evidence that a dependency is trustworthy. There is no typosquat or dependency-confusion analysis: a package nobody has reported is simply absent from the feeds. Coverage is the dependency scan's: an ecosystem that could not be scanned is disclosed as unmeasured, never as clean.
- D44 Platform End-of-Life: The support table is FROZEN, so it goes out of date by losing RECALL: a release that ended support after the table was written is missed until the table is refreshed, and this dimension reading 10 is not evidence that a platform is current. Only platforms the repository DECLARES in a place this pass reads are seen β a runtime named only in a Dockerfile (D31's subject), in a CI workflow (D29's), or in a file this pass does not parse (go.mod, a Gemfile ruby directive) is invisible here, which is why a repository declaring none of them abstains rather than scoring. Only frameworks with a PUBLISHED support policy are tracked: React, Flask and Express publish none, so their age cannot be judged and their absence from a report is not a statement that they are supported.
- AC3 Page structure: Page structure is read from the static markup tree β landmarks, headings and lang injected at runtime aren't seen, heading ORDER is checked structurally (not against the rendered visual hierarchy), and lang/title/main fire only on full documents, never partials, and the data-table check sees header-cell presence (a <th> exists), not whether each header correctly associates with its cells. Static readiness, not conformance.
- AC6 Visual & motion safety: Contrast and motion safety are PARTIAL by construction β literal colours (hex/rgb/hsl/named) in inline styles, in-repo <style> blocks, in-repo .css files, var() tokens, Tailwind neutral utilities and CSS-in-JS top-level declarations are read (same-rule/same-element colour+background pairs only); computed/runtime/theme colour, external-CDN stylesheets, CSS-in-JS dynamic (${β¦}) and nested-selector colours, cross-element pairs and image contrast stay out of reach, so a clean result is bounded by what the static CSS itself shows.
- AC7 A11y enforcement: Enforcement is scored from in-repo config/CI evidence only β an a11y gate enforced in external tooling with no in-repo trace can't be credited, and a configured linter is presence, not proof the rules actually run or block a merge.
- AX10 Code composition: Role is inferred from namespace/folder convention, not semantics β a domain concept living in a folder named "Services" reads as application, and the split is lines-of-code, not business value. The business-logic-share score is a SOFT, FLOORED signal: it contributes to the Architecture lens but is floored at the Critical gate, so an infrastructure-heavy design (a gateway, an ETL, a driver) is legitimately low without being nuked to zero.
- M4 Documentation accuracy: Onboarding quality is an LLM read of the docs/setup present β it cannot run the onboarding or measure how long a real new joiner takes; the verdict is sampled and advisory.
- P6 Release Hygiene: Rollback/observability controls are inferred from repo artefacts (pipelines, dashboards-as-code) β controls configured in external tooling, with no in-repo trace, cannot be credited.
The LLM boundary
Dimensions
D1 Β· Cyclomatic Complexity
6 method(s) exceeded the cyclomatic complexity threshold of 15; the worst was ScastieMetalsRoutes.routes at 25. A further 1 method(s) were over the threshold but excluded as flat dispatchers (a long switch/match over independent cases: many branches, almost no nesting), the largest being DispatchActor.receive at 26 β they are counted neither in the figure above nor in this dimension's score. 1 file carries no cyclomatic complexity row at all for this reason β every one of its over-threshold methods was excluded, so the exclusion is disclosed nowhere in the file itself: balancer/src/main/scala/org/scastie/balancer/DispatchActor.scala (DispatchActor.receive at 26). They are named here because the per-file figures other dimensions report are taken BEFORE this exclusion, so such a file can show a high maximum complexity elsewhere in this report and nothing here, with nothing to reconcile the two.
What to do
- Bring the 6 bodies over 15 down to 15 or less in Cyclomatic Complexity β start with ScastieMetalsRoutes.routes (cyclomatic 25), EmbeddedOptions.fromJs (cyclomatic 21), SbtDispatcher.receive (cyclomatic 20). β This score is capped by its worst body, so a finding fixed alone moves it by almost nothing β the next one down takes its place. Refactoring these 6 together lifts Cyclomatic Complexity from 9.0 to about 10.0/10, projected with the scoring formula itself and assuming each lands exactly at 15.
- Enforce Cyclomatic Complexity in CI to reach Verified (currently Documented). β Hardens enforcement from Documented toward Prevented β provenance only; does not change the score.
D2 Β· Cognitive Complexity
12 method(s) exceeded the cognitive complexity threshold of 15; the worst was ScastieMetalsRoutes.routes at 55.
What to do
- Bring the 2 bodies over 30 down to 30 or less in Cognitive Complexity β start with ScastieMetalsRoutes.routes (cognitive 55), ScaladexSearch.render (cognitive 36). β This score is capped by its worst body, so a finding fixed alone moves it by almost nothing β the next one down takes its place. Refactoring these 2 together lifts Cognitive Complexity from 7.7 to about 8.3/10, projected with the scoring formula itself and assuming each lands exactly at 30; a cleaner split scores higher.
- Enforce Cognitive Complexity in CI to reach Verified (currently Documented). β Hardens enforcement from Documented toward Prevented β provenance only; does not change the score.
D3 Β· God Classes
0 god class(es) detected.
D4 Β· Code Duplication
6 duplicated block group(s) detected.
What to do
- Resolve the 2 Duplicated block (13 lines × 2) finding(s) in Code Duplication β start with SbtDispatcher.scala, ProgressRoutes.scala. β One of this dimension's main actionable groups (2 warning-level).
- Resolve the 2 Duplicated block (8 lines × 2) finding(s) in Code Duplication β start with SbtMain.scala, SbtActor.scala. β One of this dimension's main actionable groups (2 warning-level).
- Resolve the 1 Duplicated block (19 lines × 2) finding(s) in Code Duplication β start with SbtMain.scala. β One of this dimension's main actionable groups (1 warning-level).
- Enforce Code Duplication in CI to reach Verified (currently Documented). β Hardens enforcement from Documented toward Verified β provenance only; does not change the score.
D5 Β· Coupling
13 production modules (npm+sbt), 0 dependency cycle(s), 0 unstable depended-on module(s). Read from the build's own module declarations; a dependsOn spread (deps: _*) and a project whose directory a helper computes are not visible there; 1 module(s) off the main sequence, with abstractness counted on 12 of the 13 (the rest declare no modelled class or interface, export only macros, declare types in source no model reads, or have no source directory of their own).
What to do
- Resolve the 1 Off the main sequence finding(s) in Coupling. β One of this dimension's main actionable groups (1 warning-level).
- Enforce Coupling in CI to reach Verified (currently Documented). β Hardens enforcement from Documented toward Prevented β provenance only; does not change the score.
D6 Β· Cohesion (LCOM4)
0 of 28 classes have LCOM4 above 3.
D9 Β· Test Distribution
177 test methods: 175 unit, 2 integration, 0 BDD, 0 e2e. The Scala suite contributes 177 test case(s) across 12 file(s) in a test source set declaring at least one β every `test("β¦")`, `it("β¦")`, `property("β¦")` and `"β¦" in {β¦}` registration and every JUnit `@Test`, which is how munit, ScalaTest, utest, ZIO Test and specs2 declare a case; a case registered under a computed name is not counted, so this is a floor. Its tier split is INFERRED from paths and file names, except sbt's src/it source set, which the build declares.
D12 Β· Dependency Hygiene
8 outdated direct sbt declarations. 10 of 11 direct declarations were graded against Maven Central (1 not published there, which is what a private Nexus or Artifactory artifact looks like, 0 declaring a version range rather than an exact version). An sbt declaration names an EXACT version, so the remedy is an edit to the build file β there is no lockfile refresh that would move it. Test-, Provided- and it-scoped declarations are excluded, because a consumer of this project never receives them. A version held in a Scala val is read only when the val is one string literal: sbt is a program rather than a manifest, and evaluating a computed version would invent the measurement rather than take it. Whether any artifact is DEPRECATED or ABANDONED is not graded and cannot be β Maven Central publishes no such marker, and release age does not stand in for one: the most widely depended-upon libraries are routinely the stalest, being finished rather than abandoned. Known CVEs in this dependency graph are D30's question.
What to do
- Enforce Dependency Hygiene in CI to reach Verified (currently Documented). β Hardens enforcement from Documented toward Verified β provenance only; does not change the score.
D13 Β· REDACTED Scanning
2 secret(s) detected.
What to do
- Resolve the 4 Leaked secret finding(s) in REDACTED Scanning β start with REDACTED (4). β One of this dimension's main actionable groups (4 issue-level).
- Enforce REDACTED Scanning in CI to reach Verified (currently Documented). β Hardens enforcement from Documented toward Prevented β provenance only; does not change the score.
D14 Β· License Compliance
0 of 10 declared sbt dependency artifact(s) use a banned license. Licences were resolved from the POMs Maven Central publishes, over the production coordinates this repository's 7 sbt build file(s) (build.sbt and project/*.scala) declare with a literal version, directly or through a string-literal val β `%%` resolved to the Scala binary suffix Central publishes under, test-scoped declarations excluded β the same declaration-site closure this analysis reads for dependency currency. sbt has no lockfile a checkout carries, so this is deliberately NOT the transitive closure. 20 further production coordinate(s) are declared with a version the build computes rather than writes as a literal β sbt is a program, and this pass does not run it β and are NOT graded: this verdict covers what the build pins literally or through a string-literal val, not the full graph. A further 1 coordinate(s) are not published to Maven Central β another repository (Google's Maven hosts androidx), a SNAPSHOT, or a private artifact β so their licences are not readable from here and they are outside this verdict. β COVERAGE OF THIS VERDICT: it grades this repository's sbt dependencies and nothing else. The repository also declares package.json, and the licences of those dependencies were NOT read by this pass β a gap in this engine's coverage, not a statement about them. So this result says the graded closure carries no banned licence; it does NOT say this repository's licensing is clear.
D15 Β· Churn × Complexity Hotspots
No churn × complexity hotspots in the window.
D16 Β· Bus Factor
22 source file(s) have their living knowledge concentrated in one author (β₯90% of recent, decayed contribution). The largest is client/src/main/scala/org/scastie/client/components/ScaladexSearch.scala. Counted over 87 of the 196 production source files in this repository: the rest are under the ~2,400-byte size floor this dimension measures over.
What to do
- Resolve the 1 Off-boarding risk finding(s) in Bus Factor. β One of this dimension's main actionable groups (1 recommendation-level).
- Resolve the 1 Further sole-owners (lower concentration) finding(s) in Bus Factor. β One of this dimension's main actionable groups (1 recommendation-level).
D17 Β· Explicit Debt
7 deducted task-comment markers across 17324 LoC (0.0/KLoC) β score 9.9. Task comments only: this repository's language is read without a compiler, so D17's suppression, dead-code and commented-out-code arms did not run and this score counts fewer marker kinds than a .NET repository's would.
What to do
- Resolve the 6 TodoComment finding(s) in Explicit Debt β start with Patch.scala (2), ScalaTarget.scala, Scastie.scala. β One of this dimension's main actionable groups (6 warning-level).
- Resolve the 1 XxxComment finding(s) in Explicit Debt β start with ScastieBackend.scala. β One of this dimension's main actionable groups (1 warning-level).
- Enforce Explicit Debt in CI to reach Verified (currently Documented). β Hardens enforcement from Documented toward Prevented β provenance only; does not change the score.
D19 Β· Documentation Quality
The repository's root README is a single cohesive document that describes Scastie clearly: what it does (sbt in your browser), the features it enables (any Scala version, alternate backends, any published library, share with anyone, embed into guides), and how it works (input sent to server, isolated JVM run, Scaladex integration, streaming output, worksheet mode). It also explains embedding options (tw) and ends with acknowledgements. The document is well written and clearly structured for an end-user reader.
What to do
- Improve Documentation Quality β currently 8.0/10. β The repository's root README is a single cohesive document that describes Scastie clearly: what it does (sbt in your browser), the features it enables (any Scala version, alternate backends, any published library, share with anyone, embed into guides), and how it works (input sent to server, isolated JVM run, Scaladex integration, streaming output, worksheet mode). It also explains embedding options (tw) and ends with acknowledgements. The document is well written and clearly structured for an end-user reader.
D20 Β· ADR Quality
No architecture decision records were found.
What to do
- Resolve the 1 No ADRs found finding(s) in ADR Quality. β One of this dimension's main actionable groups (1 recommendation-level).
D21 Β· Naming Consistency
0 naming inconsistencies across 0 sampled symbols.
D22 Β· Internal API Consistency
0 API inconsistencies across 4 exposed types.
D26 Β· Project Cohesion
1 of 2 build units (npm, sbt) flagged as possibly oversized/incoherent.
What to do
- Resolve the 1 Projects may be oversized for their cohesion finding(s) in Project Cohesion. β One of this dimension's main actionable groups (1 recommendation-level).
D28 Β· Secrets (history)
3 finding(s): 0 critical, 3 high, 0 medium, 0 low. Remediation for historically-committed secrets is credential rotation β they remain in history regardless of later deletion.
What to do
- Resolve the 3 REDACTED finding(s) in Secrets (history) β start with REDACTED (2), REDACTED. β One of this dimension's main actionable groups (3 issue-level).
- Resolve the 1 Rotate the exposed credentials finding(s) in Secrets (history). β One of this dimension's main actionable groups (1 recommendation-level).
D29 Β· Static Analysis (SAST)
6 finding(s): 0 critical, 5 high, 1 medium, 0 low. 4 unpinned-GitHub-Actions row(s) are reported here but scored by D36 (supply-chain provenance), which measures that posture as `pinned_actions` β one pinning decision is charged once, not once per lens. semgrep hit a parse error in 3 file(s) β `demo/bug.scala`, `metals-runner/src/main/scala/org/scastie/metals/DTOExtensions.scala`, `metals-runner/src/main/scala/org/scastie/metals/MetalsDispatcher.scala` β so no absence of findings in them is evidence of anything, and nothing in them was analysed. Fix the syntax error (or exclude the file deliberately) and re-scan to cover them.
What to do
- Resolve the 1 REDACTED finding(s) in Static Analysis (SAST) β start with REDACTED. β One of this dimension's main actionable groups (1 issue-level).
- Resolve the 1 REDACTED finding(s) in Static Analysis (SAST) β start with REDACTED. β One of this dimension's main actionable groups (1 warning-level).
- No action in Static Analysis (SAST) β all 4 REDACTED finding(s) are reported here at file:line but scored by D36 (supply-chain provenance), so none is charged to this dimension. β One of this dimension's main actionable groups (4 issue-level, 0 of them charged here).
D30 Β· Dependency Vulnerabilities
17 finding(s): 0 critical, 13 high, 4 medium, 0 low.
What to do
- Resolve the 13 High CVE finding(s) in Dependency Vulnerabilities β start with REDACTED (13). β One of this dimension's main actionable groups (13 issue-level).
- Resolve the 4 Medium CVE finding(s) in Dependency Vulnerabilities β start with REDACTED (4). β One of this dimension's main actionable groups (4 warning-level).
D34 Β· Knowledge Freshness
44 of 87 significant source file(s) are orphaned β their living knowledge has decayed to nothing, so no one currently understands them. The largest is sbt-scastie/src/main/scala/sbt/ScastieTrapExit.scala. Counted over 87 of the 196 production source files in this repository: the rest are under the ~2,400-byte size floor this dimension measures over.
What to do
- Resolve the 43 Orphaned file finding(s) in Knowledge Freshness β start with Scastie.scala, MigrationScript.scala, BlockingProcess.scala. β One of this dimension's main actionable groups (43 recommendation-level).
- Resolve the 1 Concentrated knowledge decay finding(s) in Knowledge Freshness. β One of this dimension's main actionable groups (1 recommendation-level).
- Resolve the 1 Most significant orphaned file finding(s) in Knowledge Freshness β start with ScastieTrapExit.scala. β One of this dimension's main actionable groups (1 recommendation-level).
D35 Β· Change Coupling
Strongest change-coupling: Instrument.scalaβSharedRuntime.scala 50%
What to do
- Resolve the 1 Boundary-crossing change coupling finding(s) in Change Coupling β start with Instrument.scala. β One of this dimension's main actionable groups (1 issue-level).
D43 Β· Malicious Dependencies
No dependency in any ecosystem this repository declares is published as malicious.
D44 Β· Platform End-of-Life
0 end-of-life runtime(s) and 0 end-of-life framework(s), read from 0 platform declaration(s) and 29 dependency declaration(s). This dimension reads what the repository says about ITSELF β a pinned target framework, a version file, a capped requires-python, a Rust toolchain pin, a framework major a constraint cannot move off. A FLOOR is deliberately never charged: `requires-python = ">=3.8"` states what the package SUPPORTS, not what it runs on, and a well-maintained library declares exactly that while running its own CI on a current release. The end-of-life facts are FROZEN and dated, so this dimension needs no network and answers identically inside a closed scan fence; as the table ages it loses recall and never precision, because a statement about support that ended in the past cannot become false. The OS layer of a container image is D31's question and the toolchain a CI workflow installs is D29's; this row is neither.
Frontend & cross-cutting dimensions
AC3 Β· Page structure
- The page declares no language, so assistive tech can't pick the right pronunciation. Add lang (e.g. lang="en"). (×3) β client/dev-static/scalajs.html:2, client/dev-static/test-embed.html:2, REDACTED:2
- A page with no <title> gives no name in the tab, history or screen-reader page list. Add a descriptive <title> in <head>. (×3) β client/dev-static/scalajs.html:2, client/dev-static/test-embed.html:2, REDACTED:2
- No <main> (or role="main") means no "skip to content" target and a weaker landmark map. Wrap the primary content in <main>. (×3) β client/dev-static/scalajs.html:2, client/dev-static/test-embed.html:2, REDACTED:2
What to do
- Declare <html lang>, a document <title> and a <main> landmark, keep headings in order, leave zoom enabled, title iframes and drop meta-refresh.
AC6 Β· Visual & motion safety
- `.scastie .ansi-blink` moves (`animation: blinker 1s linear infinite`) and nothing reads prefers-reduced-motion for it β no @media (prefers-reduced-motion) rule for this element, no reset this project loads β so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce. β client/src/main/resources/sass/ansi.scss:54
- `.fa-spin` moves (`animation: fa-spin 2s infinite linear`) and nothing reads prefers-reduced-motion for it β no @media (prefers-reduced-motion) rule for this element, no reset this project loads β so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce. β client/src/main/resources/fonts/font-awesome/font-awesome.css:94
- `.fa-pulse` moves (`animation: fa-spin 1s infinite steps(8)`) and nothing reads prefers-reduced-motion for it β no @media (prefers-reduced-motion) rule for this element, no reset this project loads β so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce. β client/src/main/resources/fonts/font-awesome/font-awesome.css:98
What to do
- Keep a visible focus style (don't remove the outline without a replacement), guard animation with prefers-reduced-motion, and raise low-contrast colour pairs to at least 4.5:1.
AC7 Β· A11y enforcement
- No accessibility enforcement found β no a11y linter (eslint-plugin-jsx-a11y) and no axe/pa11y/Lighthouse in tests or CI. Start with the linter to catch issues at author time. What was searched, so you can tell an absence from a miss: the 5 markup file(s) this pass actually assessed, the linter configuration checked in beside them, and this repository's test and CI files β matched by name against the accessibility checkers this dimension carries. An audit run outside the repository, a hosted scanner, or a check whose name is not one of those, is not seen here.
What to do
- Enforce accessibility in the toolchain: add eslint-plugin-jsx-a11y, then assert with your test runner's axe binding (jest-axe, vitest-axe, cypress-axe or @axe-core/playwright) in tests, then gate axe/pa11y/Lighthouse in CI.
AX10 Β· Code composition
What to do
- The domain core is a small share of production code, but most of the rest matched no layer vocabulary at all β so this is not yet an anemic-domain finding. The namespace/path convention could not place that code, which makes the composition above a statement about the naming, not about the design. Name the layers (or check that the repository's conventions differ from the ones this check knows) before reading a thin domain into it.
AX2 Β· Stateful singletons
AX3 Β· Project dependency cycles
AX4 Β· Dependency direction
AX6 Β· Interface segregation
GD1 Β· Unfinished & placeholder code
IC1 Β· Incompleteness & stubs
- A bare `// scalastyle:off`, `// scalafix:off` or `@nowarn` (or Wartremover's `warts.All`) switches every rule or warning off β hidden debt. Suppress the specific rule on the specific line, with a justification, instead. β sbt-scastie/src/main/scala/sbt/ScastieTrapExit.scala:34
What to do
- Clear the softer debt: re-enable or delete `ignore`d and `pending` tests, decide whether each empty method or UnsupportedOperationException is deliberate (and say so in a comment), and replace a bare `// scalastyle:off` or `@nowarn` with targeted, justified suppressions.
M1 Β· Documentation (README)
What to do
- Add a build/run (quick start) section to the root README β the first thing a newcomer needs.
- Explain in the README how to run the tests. Add a section called Testing to the README in the repository's top folder, saying how to run the test suite.
- Add an 'Architecture' / 'How it works' section to the root README β the high-level shape.
- Add a README to the 1 of 1 project(s) that lack one β worth up to 2 pts.
M2 Β· Architecture documentation
- No Architecture Decision Records found β no conventional ADR directory, no numbered `NNNN-title` documents in any markup this check reads, and nothing ADR-shaped by content. Design rationale recorded elsewhere (a design-notes tree, a mailing list, pull-request discussion) is not visible to this check and is not re-findable per decision, so a future maintainer cannot ask why one choice was made and get an answer.
What to do
- Record your significant design decisions. Write one short document per decision, giving its date, the situation, the decision and its consequences, and keep them together with your other design documents. A docs/adr folder with each file named by number and title is the easiest place to find them.
M3 Β· Folder & project structure
M4 Β· Documentation accuracy
- CONTRIBUTING.md runs `./production/deploy-runners.sh`, but `production/deploy-runners.sh` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. β CONTRIBUTING.md:301
- CONTRIBUTING.md runs `./production/deploy-metals.sh`, but `production/deploy-metals.sh` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. β CONTRIBUTING.md:302
- CONTRIBUTING.md runs `./server.sh`, but `server.sh` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. β CONTRIBUTING.md:304
What to do
- Reconcile the README with reality: CONTRIBUTING.md runs `./production/deploy-runners.sh`, but `production/deploy-runners.sh` does not exist; CONTRIBUTING.md runs `./production/deploy-metals.sh`, but `production/deploy-metals.sh` does not exist; CONTRIBUTING.md runs `./server.sh`, but `server.sh` does not exist.
P1 Β· CI/CD gates
P2 Β· Observability
What to do
- Consider OpenTelemetry tracing/metrics (opentelemetry-java or Micrometer) and a health-check endpoint (Spring Boot Actuator's /actuator/health, or a /health route) for operability.
P3 Β· Security & performance tooling
- No static application security testing detected. For this repository's stack, add scalafix or scapegoat (or `semgrep --config=auto`, which runs on any language) as a CI step. What was searched, so you can tell an absence from a miss: the 581 CI workflow file(s) in this repository, and the scanner and linter configuration checked in beside them. A scan that runs outside CI, one configured in your forge's web UI rather than in a committed file, or a tool whose name is none of those this check carries, is not seen β if that is your case the row is wrong, and saying so is more useful than adding a second scanner.
What to do
- Add a SAST step to CI running what this repository's stack ships: scalafix or scapegoat β or `semgrep --config=auto`, which runs on any language β so a security regression fails the build instead of landing.
- Dependabot is configured but does not watch `gitsubmodule` β add that `package-ecosystem` entry to REDACTED so those dependencies get the same automatic update and advisory pressure as the ones it already covers.
- Add gitleaks/trufflehog in CI to block PRs that introduce committed secrets.
P6 Β· Release Hygiene
- The changelog this check read carries 2 versioned entries, against a bar of 3. Counted as either the distinct `x.y.z` versions it names (a link's target is not counted) or its version-shaped section headings (`## [1.2.0]`, `## V14.x.x`, `## Updates in 8.0.x`), whichever is the larger β so a log sectioned by minor series counts its sections, not its individual patch numbers. Entries recorded somewhere this check does not read β release notes generated at tag time from a generator config it did not recognise, or a log kept outside the repository β are not counted here, and this row is about what is re-findable in the tree rather than about how often you release.
What to do
- Keep the changelog current β add a versioned entry (Keep-a-Changelog ## [x.y.z]) for each release so the history isn't a stub.
PF3 Β· Async & latency hygiene
S1 Β· Web-Security Posture
- `http://localhost:9000/embedded.js` is executed by this page with no Subresource Integrity. Whoever can answer that request β the CDN, anyone who compromises it, anyone on the network path β runs arbitrary script in this page's origin, with its session. The URL also names no version, so it resolves to whatever that origin serves at fetch time β the executed bytes can change with nobody touching this repository. 4 such include(s) across the repository's markup. β client/dev-static/scalajs.html:38
- This repository runs an HTTP server and nothing in its Scala source or committed configuration secures the transport: no HTTPS served (akka/pekko-http `ConnectionContext.httpsServer`/`enableHttps`, an http4s builder's `withTLS`, Jetty's `SslContextFactory`, zio-http's `SSLConfig`, Play's `https.port`), no `Strict-Transport-Security` header, HSTS middleware or Play `RedirectHttpsFilter`, no `X-Forwarded-Proto` read or Play `play.http.forwarded.trustedProxies` for a TLS-terminating proxy β so its traffic may cross the network in clear text. (β2.0 on this card.) The server: metals-runner/src/main/scala/org/scastie/metals/Server.scala:17 β `EmberServerBuilder`.
- None of the 11 security response headers the OWASP Secure Headers Project recommends (Content-Security-Policy, Strict-Transport-Security, X-Content-Type-Options, X-Frame-Options, β¦) is set on a response this repository's Scala server sends β defense in depth, even when a proxy could set them. (β2.0 on this card.) The server: metals-runner/src/main/scala/org/scastie/metals/Server.scala:17 β `EmberServerBuilder`.
- No handler of this repository's Scala server answers 400, 413 or 422 (`BadRequest`, `StatusCodes.BadRequest`, `Status.BadRequest`, `UnprocessableEntity`), and nothing declares validation β no Play `Form(mapping(β¦))` or `validate[T]`, no tapir `Validator`, no akka/pekko-http `validate(β¦)` or `withSizeLimit`, no validation library (refined, iron, accord, cats `Validated`, Jakarta Bean Validation) β nothing shows inbound requests being checked, and refused, before a handler acts on them. A check that answers its failure with 200 and an error body is not seen. (β2.0 on this card.) The server: metals-runner/src/main/scala/org/scastie/metals/Server.scala:17 β `EmberServerBuilder`.
What to do
- Pin third-party scripts and verify them: name an exact version in the URL and add an `integrity="sha384-β¦"` hash alongside `crossorigin="anonymous"` (both are required β an integrity hash on a cross-origin script without `crossorigin` is not evaluated, it blocks the script). Where the vendor ships a continuously-updated loader and publishes no stable hash (tag managers, analytics, chat widgets), Subresource Integrity is not available: constrain it instead with a `Content-Security-Policy` that names the exact origins allowed to execute, and drop the script from the pages that do not need it. Where the page is shipped inside a package that others host, prefer vendoring the asset and serving it from the appβs own origin, so no consumer inherits a third-party dependency they did not choose.
- Secure the server's transport: serve TLS itself (akka/pekko-http `ConnectionContext.httpsServer(sslContext)` with `newServerAt(β¦).enableHttps(β¦)`, an http4s server builder's `withTLS(β¦)`, Play's `https.port`), or run it behind a TLS-terminating proxy and trust it (`X-Forwarded-Proto`; Play `play.http.forwarded.trustedProxies`); send `Strict-Transport-Security` once it is HTTPS-only (http4s `HSTS(β¦)`, Play `RedirectHttpsFilter`).
- Set security response headers on what the server sends β keep Play's `SecurityHeadersFilter` enabled, wrap akka/pekko-http routes in `respondWithHeaders(RawHeader("X-Content-Type-Options", "nosniff"), β¦)`, or add an http4s middleware that sets `Content-Security-Policy`, `X-Content-Type-Options` and a frame policy on every response.
- Validate what the server reads from a request β path, query, headers, body size and shape β and answer what fails with 400 (413 for an oversized body) before a handler acts on it: a Play form or `validate[T]` answered with `BadRequest`, tapir `Validator`s on the endpoint's inputs, or akka/pekko-http's `validate(β¦)` and `withSizeLimit` directives.
X1 Β· Async correctness
X12 Β· Unreachable branch
X13 Β· Undrained process stream
X14 Β· Bypassable address classification
X15 Β· Unvalidated length from an untrusted reader
X16 Β· Unfloored truncation loop
X17 Β· Uncapped recursion over a caller-supplied document
X18 Β· Disposal-pattern correctness
- `Source.fromURL(β¦)` opens something that has to be given back β a file descriptor, a socket, a directory handle β and its only use reads `.mkString` through it and drops it, so this expression both creates the value and is the last place that can release it, and does not. Every call leaks one more open handle until the collector happens to reach it: `Too many open files` under load, and on Windows a file that cannot be replaced or deleted while it is held. Open it with `scala.util.Using.resource(Source.fromURL(β¦)) { r => β¦ }`, which releases it on every path including a throw, or hold it and call `.close()` in a `finally`. β server/src/main/scala/org/scastie/server/utils/NightlyVersionFetcher.scala:26
What to do
- Each finding names the value and the span that decides who owns it β the `new` that created it, or the constructor parameter that handed it over. Confirm ownership from that span, then make the disposal match it: release what this type created, leave what it was injected with to whoever created THAT, and drop a finalizer whose type holds nothing unmanaged to release.
X19 Β· Unrestored process-global state
X20 Β· Mistyped argument guard
X21 Β· Side-effecting pattern guard
X22 Β· Contradicted release guard
X23 Β· Unguarded diagnostic materialisation
X24 Β· Document value interpolated into markup unescaped
X25 Β· Inert configuration knob
X26 Β· Unsynchronised callback handoff
X27 Β· Collection changed while being enumerated
X28 Β· Index access outside its own emptiness guard
X29 Β· Per-element action decided by a fixed element
X3 Β· Exception handling
- An empty catch block silently discards the error β failures vanish with no log and no rethrow. Log it, handle it, or don't catch it. β client/src/main/scala/org/scastie/client/ScastieBackend.scala:212
- `case _: Throwable` takes every exception and records none of it β the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter. β client/src/main/scala/org/scastie/client/components/editor/TreeSitterArgumentFinder.scala:20
- `case e: Exception` takes every exception and records none of it β the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter. β project/Deployment.scala:454
- `case NonFatal(e)` takes every exception and records none of it β the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter. β sbt-runner/src/main/scala/org/scastie/sbt/OutputExtractor.scala:203
- `case util.control.NonFatal(_)` takes every exception and records none of it β the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter. (×2) β storage/src/main/scala/org/scastie/storage/filesystem/FilesystemSnippetsContainer.scala:69, storage/src/main/scala/org/scastie/storage/filesystem/FilesystemSnippetsContainer.scala:97
What to do
- Swallowed exception (empty catch)
X30 Β· Support guard that admits what it rejects
X4 Β· Structured logging
- `info` at line 50 is handed an interpolated string as its message through SLF4J, so the logger receives one finished string β the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.info("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. scala-logging's `LazyLogging` logger takes an `s"β¦"` message apart into that pattern at compile time, so switching to it is also a fix. β metals-runner/src/main/scala/org/scastie/metals/MetalsDispatcher.scala:50
- `info` at line 38 is handed an interpolated string as its message through SLF4J, so the logger receives one finished string β the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.info("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. scala-logging's `LazyLogging` logger takes an `s"β¦"` message apart into that pattern at compile time, so switching to it is also a fix. β sbt-runner/src/main/scala/org/scastie/sbt/SbtMain.scala:38
- `info` at line 42 is handed an interpolated string as its message through SLF4J, so the logger receives one finished string β the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.info("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. scala-logging's `LazyLogging` logger takes an `s"β¦"` message apart into that pattern at compile time, so switching to it is also a fix. β sbt-runner/src/main/scala/org/scastie/sbt/FormatActor.scala:42
- `info` at line 43 is handed an interpolated string as its message through SLF4J, so the logger receives one finished string β the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.info("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. scala-logging's `LazyLogging` logger takes an `s"β¦"` message apart into that pattern at compile time, so switching to it is also a fix. β scala-cli-runner/src/main/scala/org/scastie/scalacli/ScalaCliMain.scala:43
What to do
- Interpolated log message defeats structured logging
X5 Β· Nullable reference types
- No build over this repository's 186 Scala product file(s) passes `-Yexplicit-nulls`, enables WartRemover's `Null` wart or runs Scalafix's `DisableSyntax.noNulls`, so every reference type admits null and nothing reports a `null` written into the code or returned from a Java API β the first one to reach a method call is a `NullPointerException`. `Option` by convention is a habit no tool here holds the code to.
What to do
- On Scala 3, add `-Yexplicit-nulls` to `scalacOptions` so `String` and `String | Null` mean different things, and type each Java API's result as nullable where it can return null; on Scala 2 (or as a first step), enable WartRemover's `Null` wart (`wartremoverErrors += Wart.Null`) or Scalafix's `DisableSyntax.noNulls = true` so the code holds absence in `Option`. Then pay the assertions down rather than adding to them: each `.nn` is a null the compiler could not rule out β wrap the Java value in `Option(β¦)` at the boundary, pattern-match on `null` once there, or change the API so the null cannot arrive; an `unsafeNulls` import switches the checking off for everything after it.
WCAG coverage β what static analysis assessed
| Dimension | WCAG 2.2 A/AA criteria | Coverage |
|---|---|---|
| AC3 Β· Page structure | 1.4.4, 2.2.1, 2.4.1, 2.4.2, 3.1.1, 4.1.2 | Partial signal |
| AC6 Β· Visual & motion safety | 1.4.3, 2.4.7 | Partial β literal CSS only |
| AC7 Β· A11y enforcement | enforcement β no page criterion | Enforcement posture (process) |
Reference β by lens
| Lens | Score | Rating | Impact |
|---|---|---|---|
| Code Health | 56% | Adequate β gated by X5 | Capped at Fair by a Critical contributor β resolve it before relying on this lens. |
| Architecture | 89% | Adequate β gated by D26 | Capped at Fair by a Critical contributor β resolve it before relying on this lens. |
| Maturity | 48% | Adequate β gated by M2 | Capped at Fair by a Critical contributor β resolve it before relying on this lens. |
| Readiness | 61% | Adequate β gated by D13, P3 | Capped at Fair by a Critical contributor β resolve it before relying on this lens. |
| Security | 42% | Weak β gated by D30, S1 | Capped at Fair by a Critical contributor β resolve it before relying on this lens. |
| Accessibility | 27% | Weak β gated by AC3, AC6 | Capped at Fair by a Critical contributor β resolve it before relying on this lens. |
| Performance | 100% | Exemplary | Strongest area. |
Unscored β 3 check(s) recorded observations but carry no score
- D36 Supply-chain Provenance & Signing β 1 observation(s) recorded Β· The CI pipeline builds and tests but publishes no released artifact β no package publish, container push, GitHub release or deployment step. Supply-chain provenance, signing and SBOM attest RELEASED artifacts, so there is nothing to attest here. Add them to the release pipeline when this repo starts shipping artifacts (a published package, a container image, a deployed service or a tagged release). Build integrity and workflow-token hygiene are reported below: they describe what the CI runs and the token it runs with, neither of which is affected by whether the pipeline ships an artifact.
- X10 Duplicated predicate β 3 observation(s) recorded Β· Advisory β this card reports evidence and never carries a score.
- X7 Silent fallback defaults β 1 observation(s) recorded Β· Advisory β this card reports evidence and never carries a score.
Not evidenced β 5 control(s) we could not find positive evidence for
- C3 Audit Trail β Not assessed: this repository stores data through 'org.mongodb.scala' (scripts/MigrationScript.scala:25) but declares no persisted model this check reads (Slick table columns, CREATE TABLE and ALTER TABLE β¦ ADD columns in SQL migrations). Personal data may be written through raw SQL or a hosted backend, so whether its changes need an audit trail could not be established, and the trail's absence is not scored.
- C4 Data Retention β Not assessed: this repository stores data through 'org.mongodb.scala' (scripts/MigrationScript.scala:25) but declares no persisted model this check reads (Slick table columns, CREATE TABLE and ALTER TABLE β¦ ADD columns in SQL migrations). Personal data may be written through raw SQL or a hosted backend, so whether a retention limit applies here could not be established, and its absence is not scored.
- C5 Data-Subject Rights β Not assessed: this repository stores data through 'org.mongodb.scala' (scripts/MigrationScript.scala:25) but declares no persisted model this check reads (Slick table columns, CREATE TABLE and ALTER TABLE β¦ ADD columns in SQL migrations). Personal data may be written through raw SQL or a hosted backend, so whether data-subject rights apply here could not be established, and their absence is not scored.
- P4 Deployment & Rollback β not evidenced β no deploy/rollback/approval signal in the repo; absence of evidence is not evidence of a manual release
- P5 DR & Backup β not evidenced β repo shows no backup/RTO/RPO controls; absence of evidence is not evidence of a working control
Not included β 44 check(s) not relevant to this codebase
- AC1 Text alternatives β No image/media element found in the parsed markup β AC1 not applicable here.
- AC2 Forms & labels β No form control/button found in the parsed markup β AC2 not applicable here.
- AC4 Keyboard semantics β No interactive element found in the parsed markup β AC4 not applicable here.
- AC5 ARIA correctness β No ARIA usage found in the parsed markup β AC5 not applicable here.
- AX1 Captive dependencies β Not applicable: this repository's JavaScript imports no dependency-injection container and defines no container of its own β nothing that both registers and resolves bindings, and nothing that names two lifetimes β so nothing holds one lifetime's instance while handing out another's; this repository's Scala imports no dependency-injection container and defines no container of its own β nothing that both registers and resolves bindings, and nothing that names two lifetimes β so nothing holds one lifetime's instance while handing out another's.
- AX5 Architecture & structure β not assessed β architecture style/structure is computed from a project graph (projects, types, module namespaces) that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
- AX7 Slice cohesion β not applicable β not a vertical-slice architecture
- AX8 Test isolation β no test/production split to check
- AX9 CQS / query purity β no CQRS query handlers detected β query purity is not applicable to this codebase
- AXB2 Runtime readiness β Advisory β this card reports evidence and never carries a score, so there is nothing missing here.
- AXR1 Runtime accessibility β the dev server did not expose a crawlable HTTP endpoint in time β no runtime evidence This is a statement about this run, not a statement about your application: nothing here says the surface is inaccessible, only that it was never rendered.
- C1 Data Protection β Not assessed: these personal data controls are read from a source model (declarative annotations, request middleware, entity/column names, guard methods) that was not loaded for this repository β because the repository is written in a language this check does not yet model, or because its projects failed to load. Absence of an idiom this check recognises is NOT evidence that this repository lacks personal data controls: it may implement them entirely in its own ecosystem. This is a gap in the analyzer's language coverage, not a finding about this repository.
- C2 Access Controls β Not assessed: these authorization controls are read from a source model (declarative annotations, request middleware, entity/column names, guard methods) that was not loaded for this repository β because the repository is written in a language this check does not yet model, or because its projects failed to load. Absence of an idiom this check recognises is NOT evidence that this repository lacks authorization controls: it may implement them entirely in its own ecosystem. This is a gap in the analyzer's language coverage, not a finding about this repository.
- D10 Test Quality β ~3124 lines of test source are present (.scala) but no test cases reached the test census for this repository β no test root we could resolve declared them, or the files we read declare no cases in a test framework we recognise β so skipped/assertion-free tests couldn't be counted. Not scored β this is a gap in the analyzer, not a finding about this repository.
- D11 Test Reliability β Test reliability not included β the .scala suite was found but not re-run
- D18 Solution Shape β D18 scores the shape of a .NET solution; this repository has no .NET solution or project files, so the dimension does not apply.
- D23 Boundary Type-Coupling β No bounded-context organisation was detected either β neither a context-shaped layout nor 2+ sibling source directories each declaring an aggregate root. Declaring this codebase's bounded contexts (β₯2) would let cross-boundary type coupling be assessed. Declare them in `.codehealth/config.yaml` at the repository root (create it if absent), mapping each context name to the module-path or namespace prefixes that belong to it β e.g. `architecture:` β `contexts:` β `Billing: ["src/billing", "Acme.Billing"]`, `Catalog: ["src/catalog", "Acme.Catalog"]`.
- D24 Comment Value β No inline comments to assess β comment value is not applicable here.
- D25 ADR Conformance β no ADRs to check
- D27 Navigability β D27 counts a call into the standard library or a dependency as unresolved for this repository's language (.scala), so too few call sites counted as resolved to assess navigability. Not scored: this is a gap in the analyzer, not a verdict about this repository.
- D31 IaC & Container Security β No Infrastructure-as-Code or container manifests found (Dockerfile, Docker Compose, Terraform, Kubernetes/Helm, CloudFormation, ARM, Bicep, Ansible); nothing to scan.
- D32 Data Compliance (PII/GDPR) β 4 file(s) were not parsed by semgrep β the PII/GDPR ruleset never ran over them
- D37 Vulnerability-disclosure Policy β No vulnerability-disclosure policy file found (SECURITY.md/.markdown/.rst/.txt at root or under .github/.forgejo/.gitea/docs, .well-known/security.txt). A coordinated-disclosure policy may live off-repo, so this is not evidenced rather than failed.
- D39 IL Efficiency β D39 measures the IL emitted by a .NET build; this repository has no .NET solution or project files, so the dimension does not apply.
- D40 Network Egress Confinement β No Kubernetes/orchestration workloads found in the repository manifests; network egress policy is a cluster-native control that may live at the platform/firewall layer, so there is nothing to assess here.
- D41 Kernel & Syscall Confinement β No Kubernetes/orchestration workloads found in the repository manifests; seccomp/AppArmor/SELinux confinement is a workload-level control, so there is nothing to assess here.
- D42 Runtime Threat Enforcement β No Kubernetes/orchestration workloads found in the repository manifests; runtime threat-detection and admission-control policy are cluster-level controls, so there is nothing to assess here.
- D7 Architectural Integrity β no checkable ADRs, and no project-reference graph for the cycle pass to read β so this dimension makes no claim about dependency cycles in either direction (where this repository's language has an import-cycle lens, cycles are reported there). Architectural integrity not assessed
- D8 Code Coverage β Coverage not included β suite not readable by the collector
- DM1 Domain Modelling β applicable but not scored (2 signals for this style, 2 needed β the count is met but a required primary signal is absent): 96 value object(s); 1 domain event(s); its domain events are published by services or handlers β no domain entity raises one
- ED1 Event-Driven β not scored β this repository shows none of the 3 signals this lens looks for
- ED5 Idempotency β no mutating command handlers or message consumers detected β idempotency check not applicable
- ES1 Event Sourcing β not scored β this repository shows none of the 3 signals this lens looks for
- P12 CI test-gate honesty β Reported, not scored β and nothing was matched here. The coverage check applies to any stack, and the automatic-re-run check to any GitHub-Actions workflow, but the checks for excluded tests, skipped tests and sleep-based synchronisation currently recognise only some ecosystems' test-runner idioms, so on a repository built with another stack the zeros below mean 'not checked', not 'clean'.
- P7 Outbound HTTP resilience β not applicable β no HTTP server, API framework or worker entry point was found in the JVM, JavaScript/TypeScript source, so there is no service whose uptime a failing dependency could take down
- P8 Schema migrations β no ORM, schema-migration tool or schema auto-create was found in this repository's dependency manifests or source, so there is no database schema for this check to judge
- P9 Domain vs controller coverage β no coverage report found on disk β produce a coverage report in a standard format (`addSbtPlugin("org.scoverage" % "sbt-scoverage" % "<version>")` in `project/plugins.sbt`, then `sbt clean coverage test coverageReport`) and commit it β a hosted scan measures a clone of the repository, so a report that exists only in a working tree, a CI runner's or your own, never reaches it; the artefact is commonly gitignored, so `git add -f` that one file (or un-ignore its path) and commit it alongside the code it measures, or wire coverage collection into CI, to enable this cross-layer check
- PF1 Benchmark discipline β Not applicable: no benchmark suite was found. This check searched for `@Benchmark` in a Java, Kotlin or Scala file importing JMH or kotlinx-benchmark, Jetpack Benchmark's `measureRepeated` in a file importing androidx.benchmark, or JMH/kotlinx-benchmark/androidx.benchmark in a pom.xml, Gradle or sbt build, and for a `*benchmark*` script that this repository's CI runs. Benchmarks are credited as a bonus, so their absence is neither scored nor deducted.
- PF2 Allocation hygiene β Not applicable: allocation awareness is rated where code engineers for it β at least 400 production lines that ship benchmarks or already use allocation-aware idioms (8 or more). This repository's Scala code has 19,997 production line(s), 4 such use(s) and no benchmarks, so there is no allocation work to rate. The card is reward-only: its absence costs nothing.
- SC1 Supply-chain hygiene β Advisory β this card reports evidence and never carries a score, so there is nothing missing here.
- X2 Cancellation propagation β no C# was loaded; this repository's Scala was read, and no request in it can be cancelled by a caller β a Scala request takes no token: a Future cannot be cancelled, and cats-effect, ZIO and Monix interrupt the fiber that made the request from outside the call, not through a parameter
- X32 Type resolved by simple name across every loaded assembly β This check is about how a .NET program searches the assemblies loaded into its process for a type, and this repository contains no .NET source, so there is nothing here for it to assess. Not a gap in the analyzer and not a finding about your code.
- X6 Hand-rolled structured-format parsing β Advisory β this card reports evidence and never carries a score, so there is nothing missing here.
- X9 Subsumed condition operand β Advisory β this card reports evidence and never carries a score, so there is nothing missing here.
Appendix A β Findings (grouped)
Critical β 32 finding(s)
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- <html> without a lang client/dev-static/scalajs.html:2
- <html> without a lang client/dev-static/test-embed.html:2
- <html> without a lang REDACTED:2
- Document without a <title> client/dev-static/scalajs.html:2
- Document without a <title> client/dev-static/test-embed.html:2
- Document without a <title> REDACTED:2
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- Boundary-crossing change coupling: Instrument.scala β SharedRuntime.scala instrumentation/src/main/scala/org/scastie/instrumentation/Instrument.scala:1
Serious β 53 finding(s)
- TodoComment api/src/main/scala/org/scastie/api/ScalaTarget.scala:260
- TodoComment client/src/main/scala/org/scastie/client/components/Scastie.scala:30
- TodoComment instrumentation/src/main/scala/org/scastie/instrumentation/Patch.scala:25
- TodoComment instrumentation/src/main/scala/org/scastie/instrumentation/Patch.scala:29
- TodoComment sbt-runner/src/main/scala/org/scastie/sbt/SbtProcess.scala:145
- TodoComment storage/src/main/scala/org/scastie/storage/mongodb/GenericMongoContainer.scala:12
- Swallowed exception (caught, then discarded) client/src/main/scala/org/scastie/client/components/editor/TreeSitterArgumentFinder.scala:20
- Swallowed exception (caught, then discarded) project/Deployment.scala:454
- Swallowed exception (caught, then discarded) sbt-runner/src/main/scala/org/scastie/sbt/OutputExtractor.scala:203
- Swallowed exception (caught, then discarded) storage/src/main/scala/org/scastie/storage/filesystem/FilesystemSnippetsContainer.scala:69
- Swallowed exception (caught, then discarded) storage/src/main/scala/org/scastie/storage/filesystem/FilesystemSnippetsContainer.scala:97
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- Page without a main landmark client/dev-static/scalajs.html:2
- Page without a main landmark client/dev-static/test-embed.html:2
- Page without a main landmark REDACTED:2
- Animation without a prefers-reduced-motion guard client/src/main/resources/sass/ansi.scss:54
- Animation without a prefers-reduced-motion guard client/src/main/resources/fonts/font-awesome/font-awesome.css:94
- Animation without a prefers-reduced-motion guard client/src/main/resources/fonts/font-awesome/font-awesome.css:98
- Duplicated block (13 lines × 2) balancer/src/main/scala/org/scastie/balancer/SbtDispatcher.scala:75
- Duplicated block (13 lines × 2) server/src/main/scala/org/scastie/server/routes/ProgressRoutes.scala:49
- Duplicated block (8 lines × 2) sbt-runner/src/main/scala/org/scastie/sbt/SbtMain.scala:21
- Duplicated block (8 lines × 2) sbt-runner/src/main/scala/org/scastie/sbt/SbtActor.scala:28
- Accessibility enforcement below the top rung
- ScastieMetalsRoutes.routes (cyclomatic 25) metals-runner/src/main/scala/org/scastie/metals/ScastieMetalsRoutes.scala:19
- EmbeddedOptions.fromJs (cyclomatic 21) client/src/main/scala/org/scastie/client/EmbeddedOptions.scala:97
- SbtDispatcher.receive (cyclomatic 20) balancer/src/main/scala/org/scastie/balancer/SbtDispatcher.scala:74
- ScaladexSearch.render (cyclomatic 20) client/src/main/scala/org/scastie/client/components/ScaladexSearch.scala:235
- Instrument.apply (cyclomatic 20) instrumentation/src/main/scala/org/scastie/instrumentation/Instrument.scala:169
- ScalaCliDispatcher.receive (cyclomatic 17) balancer/src/main/scala/org/scastie/balancer/ScalaCliDispatcher.scala:68
- XxxComment client/src/main/scala/org/scastie/client/ScastieBackend.scala:25
- ScastieMetalsRoutes.routes (cognitive 55) metals-runner/src/main/scala/org/scastie/metals/ScastieMetalsRoutes.scala:19
- ScaladexSearch.render (cognitive 36) client/src/main/scala/org/scastie/client/components/ScaladexSearch.scala:235
- Instrument.apply (cognitive 27) instrumentation/src/main/scala/org/scastie/instrumentation/Instrument.scala:169
- ScastieMetalsImpl.instance (cognitive 27) metals-runner/src/main/scala/org/scastie/metals/ScastieMetals.scala:21
- Scastie.start (cognitive 23) client/src/main/scala/org/scastie/client/components/Scastie.scala:122
- RuntimeErrorLogger.findThrowable (cognitive 23) sbt-scastie/src/main/scala/org/scastie/sbt/plugin/RuntimeErrorLogger.scala:33
- ScalaCliDispatcher.receive (cognitive 22) balancer/src/main/scala/org/scastie/balancer/ScalaCliDispatcher.scala:68
- SbtDispatcher.receive (cognitive 21) balancer/src/main/scala/org/scastie/balancer/SbtDispatcher.scala:74
- Scastie.component (cognitive 19) client/src/main/scala/org/scastie/client/components/Scastie.scala:244
- BspClient.build (cognitive 19) scala-cli-runner/src/main/scala/org/scastie/scalacli/BspClient.scala:349
- Status.render (cognitive 18) client/src/main/scala/org/scastie/client/components/Status.scala:28
- ScaladexSearch.fetchSelected (cognitive 16) client/src/main/scala/org/scastie/client/components/ScaladexSearch.scala:59
- REDACTED
- REDACTED
- Duplicated block (19 lines × 2) sbt-runner/src/main/scala/org/scastie/sbt/SbtMain.scala:42
- Duplicated block (12β14 lines × 2) client/src/main/scala/org/scastie/client/components/BuildSettings.scala:34
- Off the main sequence: utils
- Third-party script without Subresource Integrity client/dev-static/scalajs.html:38
- Disposable created and abandoned in the function that made it server/src/main/scala/org/scastie/server/utils/NightlyVersionFetcher.scala:26
- Swallowed exception (empty catch) client/src/main/scala/org/scastie/client/ScastieBackend.scala:212
Minor β 69 finding(s)
- Orphaned file client/src/main/scala/org/scastie/client/components/Scastie.scala:1
- Orphaned file scripts/MigrationScript.scala:1
- Orphaned file utils/src/main/scala/org/scastie/util/BlockingProcess.scala:1
- Orphaned file api/src/main/scala/org/scastie/api/ApiModels.scala:1
- Orphaned file storage/src/main/scala/org/scastie/storage/filesystem/FilesystemSnippetsContainer.scala:1
- Orphaned file balancer/src/main/scala/org/scastie/balancer/DispatchActor.scala:1
- Orphaned file project/DockerHelper.scala:1
- Orphaned file client/src/main/scala/org/scastie/client/Routing.scala:1
- Orphaned file storage/src/main/scala/org/scastie/storage/mongodb/MongoDBSnippetsContainer.scala:1
- Orphaned file metals-runner/src/main/scala/org/scastie/metals/ScastiePresentationCompiler.scala:1
- Orphaned file client/src/main/scala/org/scastie/client/components/editor/DecorationProvider.scala:1
- Orphaned file metals-runner/src/main/scala/org/scastie/metals/PresentationCompilers.scala:1
- Orphaned file client/src/main/scala/org/scastie/client/components/CodeSnippets.scala:1
- Orphaned file metals-runner/src/main/scala/org/scastie/metals/JavaConverters.scala:1
- Orphaned file server/src/main/scala/org/scastie/server/routes/FrontPageRoutes.scala:1
- Orphaned file client/src/main/scala/org/scastie/client/components/EditorTopBar.scala:1
- Orphaned file client/src/main/scala/org/scastie/client/components/SideBar.scala:1
- Orphaned file balancer/src/main/scala/org/scastie/balancer/SbtDispatcher.scala:1
- Orphaned file client/src/main/scala/org/scastie/client/RestApiClient.scala:1
- Orphaned file server/src/main/scala/org/scastie/server/RestApiServer.scala:1
- Orphaned file client/src/main/scala/org/scastie/client/components/Status.scala:1
- Orphaned file client/src/main/scala/org/scastie/client/EventStream.scala:1
- Orphaned file runner/src/main/scala/org/scastie/runner/StackTracePrinter.scala:1
- Orphaned file sbt-scastie/src/main/scala/org/scastie/sbt/plugin/RuntimeErrorLogger.scala:1
- Orphaned file client/src/main/scala/org/scastie/client/components/editor/SyntaxHighlightingTheme.scala:1
- Interpolated log message defeats structured logging metals-runner/src/main/scala/org/scastie/metals/MetalsDispatcher.scala:50
- Interpolated log message defeats structured logging sbt-runner/src/main/scala/org/scastie/sbt/SbtMain.scala:38
- Interpolated log message defeats structured logging sbt-runner/src/main/scala/org/scastie/sbt/FormatActor.scala:42
- Interpolated log message defeats structured logging scala-cli-runner/src/main/scala/org/scastie/scalacli/ScalaCliMain.scala:43
- README/code drift CONTRIBUTING.md:301
- README/code drift CONTRIBUTING.md:302
- README/code drift CONTRIBUTING.md:304
- Duplicated predicate client/src/main/scala/org/scastie/client/components/MainPanel.scala:146
- Duplicated predicate project/SbtShared.scala:111
- Duplicated predicate project/SbtShared.scala:132
- Off-boarding risk: anonymized user #1
- Further sole-owners (lower concentration)
- No ADRs found
- Projects may be oversized for their cohesion
- REDACTED
- Concentrated knowledge decay
- Most significant orphaned file sbt-scastie/src/main/scala/sbt/ScastieTrapExit.scala:1
- Blanket warning suppression sbt-scastie/src/main/scala/sbt/ScastieTrapExit.scala:34
- No ADRs
- No SAST
- Changelog looks stale/thin
- No app-layer HTTPS enforcement detected
- No security response headers detected
- No inbound request validation detected
- Scala's null is not held to the type system everywhere
- Silent fallback default in catch storage/src/main/scala/org/scastie/storage/filesystem/FilesystemSnippetsContainer.scala:69
Minor β 8 finding(s)
- Outdated: ch.epfl.scala:bsp4j
- Outdated: ch.qos.logback:logback-classic
- Outdated: com.typesafe:config
- Outdated: io.get-coursier:interface
- Outdated: io.sentry:sentry-logback
- Outdated: net.lingala.zip4j:zip4j
- Outdated: org.apache.commons:commons-text
- Outdated: org.virtuslab:using_directives
Appendix B β Reproduction & audit trail
| Dimension | Tool | Version | Command | Findings | Raw output |
|---|---|---|---|---|---|
| D28 Β· Secrets (history) | gitleaks | β | gitleaks detect --no-banner --config /opt/gitleaks-rules/watchdog-gitleaks.toml --report-format json --report-path /tmp/watchdog-gitleaks-37d90b2d98b646bca50505cdf0995e48/history.json --exit-code 0 --source . | 6 | artifacts/raw/gitleaks-history.json |
| D28 Β· Secrets (history) | gitleaks | β | gitleaks detect --no-git --no-banner --config /opt/gitleaks-rules/watchdog-gitleaks.toml --report-format json --report-path /tmp/watchdog-gitleaks-37d90b2d98b646bca50505cdf0995e48/tree.json --exit-code 0 --source . | 2 | artifacts/raw/gitleaks-tree.json |
| D29 Β· Static Analysis (SAST) | semgrep | β | semgrep --config /opt/semgrep-rules/security-audit.yml --config /opt/semgrep-rules/owasp-top-ten.yml --config /opt/semgrep-rules/watchdog-sast.yml --json --quiet --timeout 10 --timeout-threshold 3 --metrics off . | 6 | artifacts/raw/semgrep.json |
| D30 Β· Dependency Vulnerabilities | trivy | β | trivy fs --scanners vuln --format json --quiet --severity CRITICAL,HIGH,MEDIUM,LOW --skip-dirs **/bin/** --skip-dirs **/obj/** . --skip-db-update | 17 | artifacts/raw/trivy-fs.json |
| D31 Β· IaC & Container Security | trivy | β | trivy: not applicable β No Infrastructure-as-Code or container manifests found (Dockerfile, Docker Compose, Terraform, Kubernetes/Helm, CloudFormation, ARM, Bicep, Ansible); nothing to scan. | 0 | β |
| D32 Β· Data Compliance (PII/GDPR) | semgrep | β | semgrep: not applicable β No personal data was found crossing a boundary the PII/GDPR ruleset checks β nothing written to a log or console sink, placed in a URL or query string, or persisted to browser storage. That is a clean result for the LEAK surface only: this ruleset detects personal data escaping, it does not inventory the personal data a repository holds, so it is not evidence that this repository has no personal-data surface. The personal-data map (Appendix C) and the C1-C5 compliance cards are what speak to that. semgrep could not parse 4 file(s) β `demo/bug.scala`, `metals-runner/src/main/scala/org/scastie/metals/DTOExtensions.scala`, `metals-runner/src/main/scala/org/scastie/metals/MetalsDispatcher.scala`, `metals-runner/src/main/scala/org/scastie/metals/ScastiePresentationCompiler.scala` β so the PII/GDPR sweep did not cover them at all. | 0 | β |
| D37 Β· Vulnerability-disclosure Policy | disclosure | β | disclosure: not applicable β No vulnerability-disclosure policy file found (SECURITY.md/.markdown/.rst/.txt at root or under .github/.forgejo/.gitea/docs, .well-known/security.txt). A coordinated-disclosure policy may live off-repo, so this is not evidenced rather than failed. | 0 | β |
| D40 Β· Network Egress Confinement | runtime-hardening | β | runtime-hardening: not applicable β No Kubernetes/orchestration workloads found in the repository manifests; network egress policy is a cluster-native control that may live at the platform/firewall layer, so there is nothing to assess here. | 0 | β |
| D41 Β· Kernel & Syscall Confinement | runtime-hardening | β | runtime-hardening: not applicable β No Kubernetes/orchestration workloads found in the repository manifests; seccomp/AppArmor/SELinux confinement is a workload-level control, so there is nothing to assess here. | 0 | β |
| D42 Β· Runtime Threat Enforcement | runtime-hardening | β | runtime-hardening: not applicable β No Kubernetes/orchestration workloads found in the repository manifests; runtime threat-detection and admission-control policy are cluster-level controls, so there is nothing to assess here. | 0 | β |
| D43 Β· Malicious Dependencies | trivy | β | trivy fs --scanners vuln --format json --quiet --severity CRITICAL,HIGH,MEDIUM,LOW --skip-dirs **/bin/** --skip-dirs **/obj/** . --skip-db-update | 0 | artifacts/raw/trivy-fs.json |