11import $file .docs .generateDocs
22import $ivy .`de.tototec::de.tobiasroeser.mill.vcs.version::0.4.0`
33import $ivy .`com.github.lolgab::mill-mima::0.1.0`
4+ import $ivy .`com.goyeau::mill-scalafix::0.3.1`
45import de .tobiasroeser .mill .vcs .version .VcsVersion
5-
6+ import com . goyeau . mill . scalafix . ScalafixModule
67import mill ._ , scalalib ._ , publish ._
78
89val scalaVersions = Seq (" 2.13.12" /* , "3.3.1"*/ )
910
10- trait Common extends CrossScalaModule with PublishModule {
11+ trait Common extends CrossScalaModule with PublishModule with ScalafixModule {
1112 def scalaVersion = crossScalaVersion
1213
1314 def publishVersion = VcsVersion .vcsState().format()
@@ -25,6 +26,8 @@ trait Common extends CrossScalaModule with PublishModule{
2526 Developer (" lihaoyi" , " Li Haoyi" , " https://github.com/lihaoyi" )
2627 )
2728 )
29+
30+ def scalacOptions = Seq (" -Wunused" )
2831}
2932
3033
@@ -41,7 +44,8 @@ trait ScalaSql extends Common{
4144 )
4245
4346
44- object test extends ScalaTests {
47+ object test extends ScalaTests with ScalafixModule {
48+ def scalacOptions = Seq (" -Wunused" )
4549 def ivyDeps = Agg (
4650 ivy " com.github.vertical-blank:sql-formatter:2.0.4 " ,
4751 ivy " com.lihaoyi::mainargs:0.4.0 " ,
0 commit comments