sbt, the interactive build tool
This report summarizes scanner evidence for sbt/sbt, a Scala project with 4,951 GitHub stars. SynthScan examined 166,715 lines of code across 2603 source files, recording 84 pattern matches distributed across 7 syntactic categories. The legacy adjusted pattern signal is 1.5 (Low pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.
Can maintainers explain intent, assumptions, and trade-offs? 61 finding(s).
Are imports declared and package/API names verified? 19 finding(s).
Are wrappers, guards, and repeated structures necessary? 29 finding(s).
Which changes need focused human review? 84 finding(s).
This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 84 distinct pattern matches across 7 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL | main-command/src/main/scala/sbt/State.scala | 384 | s.configuration.provider.scalaProvider.launcher.globalLock.apply( | CODE |
| CRITICAL | …lete/src/main/scala/sbt/internal/util/LineReader.scala | 224 | sbt.internal.util.complete.JLineCompletion.installCustomCompletor(cr, complete) | CODE |
| CRITICAL | …ogging/src/main/scala/sbt/internal/util/Terminal.scala | 844 | org.jline.utils.InfoCmp.Capability.values().map(c => c.toString -> c).toMap | CODE |
| CRITICAL | …rver-test/src/test/scala/testpkg/BuildServerTest.scala | 774 | |def jdk: File = sbt.internal.util.Util.javaHome.toFile() | STRING |
| CRITICAL | project/Utils.scala | 104 | dotty.tools.dotc.core.StdNames.nme.keywords.map(_.toString).toSet | CODE |
| CRITICAL | main-settings/src/main/scala/sbt/Def.scala | 251 | sbt.internal.util.complete.Parsers.spaceDelimited(argLabel) | CODE |
| CRITICAL | main-settings/src/main/scala/sbt/InputTask.scala | 75 | Types.const(sbt.internal.util.complete.DefaultParsers.success(())) | CODE |
| CRITICAL | …il-cache/src/test/scala/sbt/util/ActionCacheTest.scala | 895 | val midnightUTC = java.nio.file.attribute.FileTime.from( | CODE |
| CRITICAL⚡ | util-cache/src/main/scala/sbt/util/Output.scala | 36 | val js = sjsonnew.support.scalajson.unsafe.Converter.toJson(value).get | CODE |
| CRITICAL⚡ | util-cache/src/main/scala/sbt/util/Output.scala | 39 | sjsonnew.support.scalajson.unsafe.CompactPrinter.print(js, out) | CODE |
| CRITICAL⚡ | util-cache/src/main/scala/sbt/util/Output.scala | 48 | val js = sjsonnew.support.scalajson.unsafe.Converter.toJson(value).get | CODE |
| CRITICAL⚡ | util-cache/src/main/scala/sbt/util/Output.scala | 53 | sjsonnew.support.scalajson.unsafe.CompactPrinter.print(js, out) | CODE |
| CRITICAL | util-cache/src/main/scala/sbt/util/Input.scala | 53 | .fromJson(sjsonnew.support.scalajson.unsafe.Parser.parseFromFile(file).get) | CODE |
| CRITICAL | util-cache/src/main/scala/sbt/util/Input.scala | 71 | sjsonnew.support.scalajson.unsafe.Parser.parseFromByteArray(bytes).get | CODE |
| CRITICAL | util-cache/src/main/scala/sbt/util/Input.scala | 73 | sjsonnew.support.scalajson.unsafe.Converter.fromJson(json).get | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | main-command/src/main/scala/sbt/BasicCommands.scala | 201 | def multiParser(s: State): Parser[List[String]] = multiParserImpl(Some(s)) | COMMENT |
| LOW | main-command/src/main/scala/sbt/BasicCommands.scala | 221 | // we search for a named command whose name is a prefix of the first command in the list. | COMMENT |
| LOW | sbt-app/src/sbt-test/nio/file-hashes/original/Bar.md | 1 | ### Bar | COMMENT |
| LOW | sbt-app/src/sbt-test/nio/file-hashes/changes/Bar.md | 1 | ### Bar updated | COMMENT |
| LOW | sbt-app/src/sbt-test/nio/file-hashes/base/Bar.md | 1 | ### Bar | COMMENT |
| LOW | sbt-app/src/sbt-test/nio/diff/changes/Bar.md | 1 | ### new bar | COMMENT |
| LOW | sbt-app/src/sbt-test/nio/diff/base/Bar.md | 1 | ### Bar | COMMENT |
| LOW | sbt-app/src/sbt-test/nio/last-modified/changes/Bar.md | 1 | ### new bar | COMMENT |
| LOW | sbt-app/src/sbt-test/nio/last-modified/changes/Bar2.md | 1 | ### new bar 2 | COMMENT |
| LOW | sbt-app/src/sbt-test/nio/last-modified/base/Bar.md | 1 | ### Bar | COMMENT |
| LOW | …rc/main/scala/sbt/internal/util/hashing/WyHash64.scala | 121 | // val secret2 = PRIME64_2 | COMMENT |
| LOW | …rc/main/scala/sbt/internal/util/hashing/WyHash64.scala | 141 | // var see0 = s | COMMENT |
| LOW | …rc/main/scala/sbt/internal/util/hashing/WyHash64.scala | 161 | // b = readLongLE(buf, off + len - 8) | COMMENT |
| LOW | project/SbtScriptedIT.scala | 1 | // import sbt._ | COMMENT |
| LOW | project/SbtScriptedIT.scala | 21 | // override lazy val globalSettings = Seq( | COMMENT |
| LOW | project/SbtScriptedIT.scala | 41 | // git.checkout().setName(ref).call() | COMMENT |
| LOW | project/SbtScriptedIT.scala | 61 | // s"""-Dsbt.build.lm.moduleName=${lmArtifactID}""", | COMMENT |
| LOW | project/SbtScriptedIT.scala | 81 | COMMENT | |
| LOW | project/SbtScriptedIT.scala | 101 | // sbtTestDirectory.value / thisProject.value.id, | COMMENT |
| LOW | …n/scala/sbt/internal/librarymanagement/LMSysProp.scala | 21 | case "0" | "never" | "false" => Some(false) | COMMENT |
| LOW | …internal/librarymanagement/SemanticSelectorExtra.scala | 61 | s"$op$versionStr$tagsStr" | COMMENT |
| LOW | scripts/distrust-emudhra.sh | 1 | #!/usr/bin/env bash | COMMENT |
| LOW | .github/workflows/ci.yml | 161 | ./sbt -v "RepoOverrideTest/scripted force-proxy-repos-file/*" | COMMENT |
| LOW | main-settings/src/test/scala/sbt/std/UsageTest.scala | 161 | val it6b = Def.inputTaskDyn { | COMMENT |
| LOW | launcher-package/upload/sbt-upload.sh | 1 | #!/usr/bin/env bash | COMMENT |
| LOW | launcher-package/upload/sbt-upload.sh | 21 | # | COMMENT |
| LOW | launcher-package/upload/sbt-upload.sh | 41 | # - for POLR_USERNAME/POLR_PASSWORD, you will need the credentials | COMMENT |
| LOW | launcher-package/upload/sbt-upload.sh | 61 | # | COMMENT |
| LOW | launcher-package/upload/sbt-upload.sh | 261 | echo | COMMENT |
| LOW | launcher-package/src/universal/conf/sbtconfig.txt | 1 | # sbt configuration file for Windows | COMMENT |
| LOW | main/src/main/scala/sbt/internal/SysProp.scala | 61 | def double(name: String, default: Double): Double = | COMMENT |
| LOW | main/src/main/scala/sbt/internal/ConsoleProject.scala | 101 | // Two things are required so the REPL resolves `sbt.*` (e.g. | COMMENT |
| LOW | main/src/main/scala/sbt/internal/ConsoleProject.scala | 121 | // objects for every `sbt.*` and `scala.*` class. `local` skips | COMMENT |
| LOW | main/src/main/scala/sbt/internal/LogManager.scala | 241 | // private[sbt] def setGlobalLogLevels(s: State, data: Def.Settings): State = | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tasks-standard/src/main/scala/sbt/Task.scala | 29 | def getOrElse[B](key: AttributeKey[B], default: => B): B = attributes.getOrElse(key, default) | CODE |
| LOW | tasks-standard/src/main/scala/sbt/std/Transform.scala | 38 | private def getOrId(map: [A] => TaskId[A] => Option[Task[A]]): [A] => TaskId[A] => Task[A] = | CODE |
| LOW | …ile/src/main/scala/sbt/internal/parser/SbtParser.scala | 104 | def getOrCreateReporter(uniqueFileName: String): StoreReporter = | CODE |
| LOW | …util-logging/src/main/scala/sbt/util/LogExchange.scala | 51 | def getOrElseUpdateStringCodec[A](tag: String, v: ShowLines[A]): ShowLines[A] = | CODE |
| LOW | …main/scala/sbt/internal/inc/ZincComponentManager.scala | 41 | def getOrElse(orElse: => Iterable[File]): Iterable[File] = | CODE |
| LOW | …tion/src/main/scala/sbt/internal/util/Attributes.scala | 188 | def getOrElse[T](k: AttributeKey[T], default: => T): T = | CODE |
| LOW | …collection/src/main/scala/sbt/internal/util/PMap.scala | 37 | def getOrUpdate[T](k: K[T], make: => V[T]): V[T] | CODE |
| LOW | …collection/src/main/scala/sbt/internal/util/PMap.scala | 101 | def getOrUpdate[T](k: K[T], make: => V[T]) = | CODE |
| LOW | …n/scala/sbt/internal/librarymanagement/LMSysProp.scala | 26 | def getOrFalse(name: String): Boolean = booleanOpt(name).getOrElse(false) | CODE |
| LOW | …n/scala/sbt/internal/librarymanagement/LMSysProp.scala | 27 | def getOrTrue(name: String): Boolean = booleanOpt(name).getOrElse(true) | CODE |
| LOW | main-settings/src/main/scala/sbt/Structure.scala | 336 | final def getOrElse[A2 >: A1](or: => A2): Initialize[A2] = | CODE |
| LOW | main-settings/src/main/scala/sbt/Structure.scala | 483 | def getOrElse[A2 >: A1](or: => A2): Initialize[Task[A2]] = | CODE |
| LOW | main/src/main/scala/sbt/ProjectExtra.scala | 267 | def getOrError[T](state: State, key: AttributeKey[T], msg: String): T = | CODE |
| LOW | main/src/main/scala/sbt/ProjectExtra.scala | 596 | def getOrNil[A](s: State, key: AttributeKey[List[A]]): List[A] = | CODE |
| LOW | main/src/main/scala/sbt/MainLoop.scala | 239 | def getOrSet[T](state: State, key: AttributeKey[T], value: Extracted => T): State = | CODE |
| LOW | main/src/main/scala/sbt/Extracted.scala | 131 | private def getOrError[T](key: ScopedKey[?], value: Option[T])(using | CODE |
| LOW | main/src/main/scala/sbt/Extracted.scala | 136 | private def getOrError[T](key: ScopedKey[T])(using | CODE |
| LOW | main/src/main/scala/sbt/internal/SysProp.scala | 39 | def getOrFalse(name: String): Boolean = booleanOpt(name).getOrElse(false) | CODE |
| LOW | main/src/main/scala/sbt/internal/SysProp.scala | 40 | def getOrTrue(name: String): Boolean = booleanOpt(name).getOrElse(true) | CODE |
| LOW | main/src/main/scala/sbt/internal/SysProp.scala | 284 | private def getOrUpdateSysProp(key: String)(value: String): String = | CODE |
| LOW | main/src/main/scala/sbt/internal/BuildDef.scala | 122 | private def getOrElseUpdate( | CODE |
| LOW | …in/scala/sbt/internal/server/BuildServerReporter.scala | 193 | private def getAndClearPreviousDocuments(source: VirtualFileRef): Seq[TextDocumentIdentifier] = | CODE |
| LOW | main/src/main/scala/sbt/nio/FileStamp.scala | 245 | def getOrElseUpdate(path: Path, stamper: FileStamper): Option[FileStamp] = | CODE |
| LOW | util-cache/src/main/scala/sbt/util/CacheImplicits.scala | 74 | private def getOrElseUpdate( | CODE |
| LOW | util-cache/src/main/scala/sbt/util/CacheImplicits.scala | 89 | private def getOrElseUpdate( | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | launcher-package/upload/sbt-upload.sh | 76 | #-------------------------------------------------------------- | COMMENT |
| MEDIUM | …/test/scala/sbt/internal/CompilerConsoleOptsTest.scala | 13 | // ── deterministic unit cases ────────────────────────────────────────────── | COMMENT |
| MEDIUM | …/test/scala/sbt/internal/CompilerConsoleOptsTest.scala | 111 | // ── property-based cases ────────────────────────────────────────────────── | COMMENT |
| MEDIUM | …/test/scala/sbt/internal/CompilerConsoleOptsTest.scala | 127 | // ── helpers ─────────────────────────────────────────────────────────────── | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | LLM_POLICY.md | 11 | - Ensure that you review and understand all code generated by AI tools before including it in your PR - do not blindly t | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …t-test/project/remote-project-transitive-deps/setup.sh | 10 | git config user.email "test@test.com" | CODE |
| LOW | …app/src/sbt-test/project/remote-project-dedup/setup.sh | 9 | git config user.email "test@test.com" | CODE |
| LOW | …rc/sbt-test/project/remote-project-git-branch/setup.sh | 9 | git config user.email "test@test.com" | CODE |
| LOW | …pp/src/sbt-test/project/remote-project-update/setup.sh | 8 | git config user.email "test@test.com" | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | scripts/distrust-emudhra.sh | 13 | # Usage: | COMMENT |