File tree Expand file tree Collapse file tree 5 files changed +22
-9
lines changed
Expand file tree Collapse file tree 5 files changed +22
-9
lines changed Original file line number Diff line number Diff line change @@ -186,7 +186,7 @@ workflows:
186186 name : lint
187187 install_sbt_version : 1.8.2
188188 cmd : |
189- sbt "scalafmtCheckAll;scalafmtSbtCheck;scapegoat; scalafixEnable;scalafix --test"
189+ sbt "scalafmtCheckAll;scalafmtSbtCheck;scalafixEnable;scalafix --test"
190190 requires :
191191 - compile
192192 - codacy/sbt :
@@ -294,7 +294,7 @@ workflows:
294294 # nightly:
295295 # triggers:
296296 # - schedule:
297- # cron: "0 0 * * *" # Every day " At minute 00:00"
297+ # cron: "0 0 * * *" # Every day “ At minute 00:00”
298298 # filters:
299299 # branches:
300300 # only:
Original file line number Diff line number Diff line change @@ -19,9 +19,7 @@ val assemblyCommon = Seq(
1919inThisBuild(
2020 Seq (
2121 scalaVersion := Common .scalaVersionNumber,
22- scalaBinaryVersion := Common .scalaBinaryVersionNumber,
23- scapegoatDisabledInspections := Seq (),
24- scapegoatVersion := " 3.1.9" ))
22+ scalaBinaryVersion := Common .scalaBinaryVersionNumber))
2523
2624val sonatypeInformation = Seq (
2725 startYear := Some (2018 ),
@@ -38,6 +36,7 @@ lazy val codacyAnalysisCore = project
3836 .settings(name := " codacy-analysis-core" )
3937 .settings(coverageExcludedPackages := " <empty>;com\\ .codacy\\ ..*Error.*" )
4038 .settings(Common .genericSettings)
39+ .settings(Common .scapegoatSettings)
4140 .settings(
4241 // App Dependencies
4342 libraryDependencies ++= Seq (
@@ -87,6 +86,7 @@ lazy val codacyAnalysisModels = project
8786 crossScalaVersions := Common .supportedScalaVersions,
8887 name := " codacy-analysis-cli-model" ,
8988 Common .genericSettings,
89+ Common .scapegoatSettings,
9090 libraryDependencies ++=
9191 Dependencies .circe ++ Seq (Dependencies .pluginsApi) ++ Dependencies .specs2,
9292 description := " Library with analysis models" )
Original file line number Diff line number Diff line change @@ -11,12 +11,24 @@ object Common {
1111
1212 private val defaultDockerInstallationPath = " /opt/codacy"
1313 val scalaBinaryVersionNumber = " 2.12"
14- val scalaVersionNumber = s " $scalaBinaryVersionNumber.20 "
14+ val scalaVersionNumber = s " $scalaBinaryVersionNumber.19 "
1515
1616 val scala213BinaryVersionNumber = " 2.13"
17- val scala213VersionNumber = s " $scala213BinaryVersionNumber.16 "
17+ val scala213VersionNumber = s " $scala213BinaryVersionNumber.14 "
1818 lazy val supportedScalaVersions = List (Common .scalaVersionNumber, Common .scala213VersionNumber)
1919
20+ val scapegoatSettings = Seq (
21+ libraryDependencies += compilerPlugin(" com.sksamuel.scapegoat" % s " scalac-scapegoat-plugin_ ${scalaVersion.value}" % (scalaVersion.value match {
22+ case v if v.startsWith(" 2.12" ) => " 3.1.9"
23+ case v if v.startsWith(" 2.13" ) => " 3.1.2"
24+ case _ => " 3.1.9"
25+ })),
26+ scalacOptions ++= Seq (
27+ s " -P:scapegoat:dataDir: ${crossTarget.value}/scapegoat-report " ,
28+ " -P:scapegoat:reports:xml:html:markdown"
29+ )
30+ )
31+
2032 val genericSettings = Seq (
2133 scalacOptions ++= Common .compilerFlags(scalaVersion.value),
2234 Test / scalacOptions += " -Yrangepos" ,
Original file line number Diff line number Diff line change 1- sbt.version =1.9.9
1+ sbt.version =1.10.5
Original file line number Diff line number Diff line change @@ -4,7 +4,8 @@ addSbtPlugin("com.codacy" % "codacy-sbt-plugin" % "25.2.4")
44addSbtPlugin(" org.scoverage" % " sbt-scoverage" % " 2.3.0" )
55
66// Static Analysis
7- addSbtPlugin(" com.sksamuel.scapegoat" %% " sbt-scapegoat" % " 1.2.13" )
7+ // Commented out due to Scala version conflicts, it kept trying to fetch 2.12.15
8+ // addSbtPlugin("com.sksamuel.scapegoat" %% "sbt-scapegoat" % "1.2.13")
89addSbtPlugin(" ch.epfl.scala" % " sbt-scalafix" % " 0.9.34" )
910
1011// Dependencies
You can’t perform that action at this time.
0 commit comments