Skip to content

Commit

Permalink
Updated Spotbugs Plugin to 6.0.9 (the solution was taken from spotbug…
Browse files Browse the repository at this point in the history
  • Loading branch information
Vest authored and karianna committed May 20, 2024
1 parent c0e82c9 commit 035e59e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ plugins {
id 'application' // Creating application bundles
id 'build-dashboard' // Produces a build report
id 'checkstyle' // Checkstyle for Java, configured further below
id "com.github.spotbugs" version '5.2.5' // Spotbugs for Java
id "com.github.spotbugs" version '6.0.9' // Spotbugs for Java
id 'java' // Core java / javac
id 'maven-publish' // Publishing to Maven Central
id 'pmd' // PMD for Java, configured further below
Expand All @@ -33,7 +33,7 @@ plugins {
id 'edu.sc.seis.launch4j' version '3.0.5' // Creates launch4j
id 'com.github.ben-manes.versions' version '0.51.0' // Checks versions for plugins and dependencies
id "com.dorongold.task-tree" version '3.0.0' // Prints the task dependency tree
id 'org.openjfx.javafxplugin' version '0.1.0' // JavaFX support
id 'org.openjfx.javafxplugin' version '0.1.0' // JavaFX support
id 'org.beryx.runtime' version '1.13.1' // Creates custom runtimes
}

Expand Down
11 changes: 7 additions & 4 deletions code/gradle/reporting.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -25,21 +25,24 @@ pmd {

// TODO fix the outstanding bugs and then remove the ignoreFailures
spotbugs {
def classLoader = plugins["com.github.spotbugs"].class.classLoader
def SpotBugsConfidence = classLoader.findLoadedClass("com.github.spotbugs.snom.Confidence")

toolVersion = '4.8.3'
excludeFilter = file("$rootProject.projectDir/code/standards/spotbugs_ignore.xml")
omitVisitors = ['Naming', 'CrossSiteScripting', 'DontUseEnum', 'DoInsideDoPrivileged']
reportLevel = 'low'
reportLevel = SpotBugsConfidence.LOW
ignoreFailures = true
}

spotbugsMain {
reports {
xml.enabled = false
html.enabled = true
xml.required = false
html.required = true
html.stylesheet resources.text.fromFile('code/standards/fancy-hist.xsl')
}
}

task allReports {
tasks.register('allReports') {
dependsOn = ['checkstyleMain', 'pmdMain', 'spotbugsMain']
}

0 comments on commit 035e59e

Please sign in to comment.