Skip to content

Commit

Permalink
updating build settings to output spotbugs report
Browse files Browse the repository at this point in the history
  • Loading branch information
jscancella committed Jul 23, 2020
1 parent d95e26c commit b1e2fb7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ plugins {
id "de.aaschmid.cpd" version "3.1"
id "org.owasp.dependencycheck" version "5.3.0"
id "org.ajoberstar.grgit" version "4.0.1"
id "com.github.spotbugs" version "4.0.2"
id "com.github.spotbugs" version "4.4.4"
id "com.jfrog.bintray" version "1.8.4"
id 'info.solidsoft.pitest' version '1.4.7'
}
Expand Down
9 changes: 9 additions & 0 deletions code-quality.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,15 @@ pmdTest.enabled = false
spotbugsIntegrationTest.enabled = false
spotbugsTest.enabled = false

spotbugsMain {
reports {
html {
enabled = true
destination = file("$buildDir/reports/spotbugs/main/spotbugs.html")
}
}
}

pmd {
ruleSets = [] //specifically set this to be empty, otherwise gradle includes the defaults in addition to our custom ruleset!
ruleSetConfig = resources.text.fromFile("config/pmd/ruleset.xml")
Expand Down

0 comments on commit b1e2fb7

Please sign in to comment.