Skip to content

Commit e9f0cf7

Browse files
biandratti1015bit
andauthored
[ETCM-259] sonar-scala (#874)
* add sonar plugin * add nix library * fix nix files * Update nix-sbt sha Co-authored-by: Petra Bierleutgeb <[email protected]>
1 parent 382d616 commit e9f0cf7

File tree

4 files changed

+15
-7
lines changed

4 files changed

+15
-7
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,6 @@ metals.sbt
2424
# Nix
2525
result
2626
.nix/
27+
28+
# sonarScan
29+
.scannerwork/

build.sbt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,3 +255,6 @@ addCommandAlias(
255255
|;it:test
256256
|""".stripMargin
257257
)
258+
259+
scapegoatVersion in ThisBuild := "1.4.7"
260+
scapegoatReports := Seq("xml")

nix/pkgs/mantis.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ in sbt.mkDerivation {
5050

5151
# This sha represents the change dependencies of mantis.
5252
# Update this sha whenever you change the dependencies
53-
depsSha256 = "0bdpmkgz2m7fxrhlq7bfm9nyhzj1kzsnh9j6dwrc218rp2sm9bxz";
53+
depsSha256 = "1058ryh7nj7y59iwk60ap0kgky4j0awpfvq76p9l4picz9qgg9i8";
5454

5555
# this is the command used to to create the fixed-output-derivation
5656
depsWarmupCommand = "sbt compile --debug -Dnix=true";

project/plugins.sbt

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
logLevel := sbt.Level.Warn
2-
addSbtPlugin("org.scoverage" % "sbt-scoverage" % "1.6.1")
3-
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.4.2")
4-
addSbtPlugin("org.scalastyle" %% "scalastyle-sbt-plugin" % "1.0.0")
5-
addSbtPlugin("com.typesafe.sbt" % "sbt-native-packager" % "1.7.5")
2+
addSbtPlugin("com.eed3si9n" % "sbt-buildinfo" % "0.9.0")
3+
addSbtPlugin("com.github.mwz" % "sbt-sonar" % "2.2.0")
4+
addSbtPlugin("com.lightbend.sbt" % "sbt-javaagent" % "0.1.6")
5+
addSbtPlugin("com.sksamuel.scapegoat" % "sbt-scapegoat" % "1.1.0")
66
addSbtPlugin("com.thoughtworks.sbt-api-mappings" % "sbt-api-mappings" % "3.0.0")
77
addSbtPlugin("com.timushev.sbt" % "sbt-updates" % "0.5.1")
8-
addSbtPlugin("com.eed3si9n" % "sbt-buildinfo" % "0.9.0")
98
addSbtPlugin("com.typesafe.sbt" % "sbt-git" % "1.0.0")
9+
addSbtPlugin("com.typesafe.sbt" % "sbt-native-packager" % "1.7.5")
1010
addSbtPlugin("io.kamon" % "sbt-kanela-runner" % "2.0.5")
11-
addSbtPlugin("com.lightbend.sbt" % "sbt-javaagent" % "0.1.6")
11+
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.4.2")
12+
addSbtPlugin("org.scalastyle" %% "scalastyle-sbt-plugin" % "1.0.0")
13+
addSbtPlugin("org.scoverage" % "sbt-scoverage" % "1.6.1")

0 commit comments

Comments
 (0)