File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Expand file tree Collapse file tree 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
145145 scalacOptions += warnAdaptedArgs.value, // For NoAutoTupling
146146 scalacOptions += warnUnusedImports.value, // For RemoveUnused
147147 scalacOptions += " -Ywarn-unused" , // For RemoveUnusedTerms
148+ scalacOptions ++= maxwarns.value, // Increase the maximum warnings to print
148149 logLevel := Level .Error , // avoid flood of compiler warnings
149150 libraryDependencies += bijectionCore,
150151 testsInputOutputSetting,
Original file line number Diff line number Diff line change @@ -39,10 +39,15 @@ object ScalafixBuild extends AutoPlugin with GhpagesKeys {
3939 crossVersion := CrossVersion .full
4040 )
4141 lazy val isScala213 = Def .setting { scalaVersion.value.startsWith(" 2.13" ) }
42+ lazy val isScala212 = Def .setting { scalaVersion.value.startsWith(" 2.12" ) }
4243 lazy val warnUnusedImports = Def .setting {
4344 if (isScala213.value) " -Wunused:imports"
4445 else " -Ywarn-unused-import"
4546 }
47+ lazy val maxwarns = Def .setting {
48+ if (isScala213.value || isScala212.value) Seq (" -Xmaxwarns" , " 1000" )
49+ else Nil
50+ }
4651 lazy val scaladocOptions = Seq (
4752 " -groups" ,
4853 " -implicits"
You can’t perform that action at this time.
0 commit comments