Repository navigation
Expand Scala tooling detection with Mill, Scala CLI, test frameworks and linters - #226
Merged
andrew merged 1 commit intoNov 2, 2026
Conversation
andrew
approved these changes
Nov 2, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #168
Problem
knowledge/scala/only covered the language, sbt, ScalaTest, scalafmt and WartRemover. A Mill or Scala CLI project reported Scala but no package manager. A project using MUnit, specs2 or utest reported no test tool. sbt was detected only from a literalbuild.sbt.Changes
New tool definitions
build.mill,build.sc,.mill-version(also applies to Java and Kotlin projects, like Gradle)project.scala, with high confidence when it contains//> using"munit"inbuild.sbtorproject/Dependencies.scala,::munit:orTestModule.Munitinbuild.mill,build.scorproject.scala"org.specs2"in sbt files,org.specs2::orTestModule.Specs2in Mill and Scala CLI files"utest"in sbt files,::utest:orTestModule.Utestin Mill and Scala CLI files.scalafix.confor thesbt-scalafixplugin inproject/plugins.sbtscapegoatinbuild.sbtorproject/plugins.sbtsbt
sbt.tomlnow also detects*.sbtandproject/build.properties. That covers builds whose root file has another name and builds defined only underproject/.Notes
"munit") or the coursier form (::munit:) rather than a bare substring, so text like "community" in a build file comment does not trigger MUnit.project.scalaonly. The knowledge base validator rejectsfile_containskeys whose file name is a glob, so detecting any*.scalafile with a//> usingdirective is not possible without loosening that rule.project.scalais the conventional Scala CLI configuration file.project/Dependencies.scalais checked for test frameworks because many sbt builds declare dependencies there.Tests
detect/scala_tools_test.gocovers:mill-project,scala-cli-project,sbt-plugins-project)brief list -readme tools.go build ./...,go vet ./...,go test -race ./..., the WebAssembly and WASI builds andgolangci-lint runall pass.