Skip to content

Commit

Permalink
[ETCM-259] sonar-scala (#874)
Browse files Browse the repository at this point in the history
* add sonar plugin

* add nix library

* fix nix files

* Update nix-sbt sha

Co-authored-by: Petra Bierleutgeb <petra.bierleutgeb@iohk.io>
  • Loading branch information
biandratti and 1015bit committed Feb 21, 2021
1 parent 382d616 commit e9f0cf7
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 7 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Expand Up @@ -24,3 +24,6 @@ metals.sbt
# Nix
result
.nix/

# sonarScan
.scannerwork/
3 changes: 3 additions & 0 deletions build.sbt
Expand Up @@ -255,3 +255,6 @@ addCommandAlias(
|;it:test
|""".stripMargin
)

scapegoatVersion in ThisBuild := "1.4.7"
scapegoatReports := Seq("xml")
2 changes: 1 addition & 1 deletion nix/pkgs/mantis.nix
Expand Up @@ -50,7 +50,7 @@ in sbt.mkDerivation {

# This sha represents the change dependencies of mantis.
# Update this sha whenever you change the dependencies
depsSha256 = "0bdpmkgz2m7fxrhlq7bfm9nyhzj1kzsnh9j6dwrc218rp2sm9bxz";
depsSha256 = "1058ryh7nj7y59iwk60ap0kgky4j0awpfvq76p9l4picz9qgg9i8";

# this is the command used to to create the fixed-output-derivation
depsWarmupCommand = "sbt compile --debug -Dnix=true";
Expand Down
14 changes: 8 additions & 6 deletions project/plugins.sbt
@@ -1,11 +1,13 @@
logLevel := sbt.Level.Warn
addSbtPlugin("org.scoverage" % "sbt-scoverage" % "1.6.1")
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.4.2")
addSbtPlugin("org.scalastyle" %% "scalastyle-sbt-plugin" % "1.0.0")
addSbtPlugin("com.typesafe.sbt" % "sbt-native-packager" % "1.7.5")
addSbtPlugin("com.eed3si9n" % "sbt-buildinfo" % "0.9.0")
addSbtPlugin("com.github.mwz" % "sbt-sonar" % "2.2.0")
addSbtPlugin("com.lightbend.sbt" % "sbt-javaagent" % "0.1.6")
addSbtPlugin("com.sksamuel.scapegoat" % "sbt-scapegoat" % "1.1.0")
addSbtPlugin("com.thoughtworks.sbt-api-mappings" % "sbt-api-mappings" % "3.0.0")
addSbtPlugin("com.timushev.sbt" % "sbt-updates" % "0.5.1")
addSbtPlugin("com.eed3si9n" % "sbt-buildinfo" % "0.9.0")
addSbtPlugin("com.typesafe.sbt" % "sbt-git" % "1.0.0")
addSbtPlugin("com.typesafe.sbt" % "sbt-native-packager" % "1.7.5")
addSbtPlugin("io.kamon" % "sbt-kanela-runner" % "2.0.5")
addSbtPlugin("com.lightbend.sbt" % "sbt-javaagent" % "0.1.6")
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.4.2")
addSbtPlugin("org.scalastyle" %% "scalastyle-sbt-plugin" % "1.0.0")
addSbtPlugin("org.scoverage" % "sbt-scoverage" % "1.6.1")

0 comments on commit e9f0cf7

Please sign in to comment.