File tree 2 files changed +6
-0
lines changed
2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -145,6 +145,7 @@ lazy val testsInput = project
145
145
scalacOptions += warnAdaptedArgs.value, // For NoAutoTupling
146
146
scalacOptions += warnUnusedImports.value, // For RemoveUnused
147
147
scalacOptions += " -Ywarn-unused" , // For RemoveUnusedTerms
148
+ scalacOptions ++= maxwarns.value, // Increase the maximum warnings to print
148
149
logLevel := Level .Error , // avoid flood of compiler warnings
149
150
libraryDependencies += bijectionCore,
150
151
testsInputOutputSetting,
Original file line number Diff line number Diff line change @@ -39,10 +39,15 @@ object ScalafixBuild extends AutoPlugin with GhpagesKeys {
39
39
crossVersion := CrossVersion .full
40
40
)
41
41
lazy val isScala213 = Def .setting { scalaVersion.value.startsWith(" 2.13" ) }
42
+ lazy val isScala212 = Def .setting { scalaVersion.value.startsWith(" 2.12" ) }
42
43
lazy val warnUnusedImports = Def .setting {
43
44
if (isScala213.value) " -Wunused:imports"
44
45
else " -Ywarn-unused-import"
45
46
}
47
+ lazy val maxwarns = Def .setting {
48
+ if (isScala213.value || isScala212.value) Seq (" -Xmaxwarns" , " 1000" )
49
+ else Nil
50
+ }
46
51
lazy val scaladocOptions = Seq (
47
52
" -groups" ,
48
53
" -implicits"
You can’t perform that action at this time.
0 commit comments