Skip to content

Commit

Permalink
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 5 deletions.
3 changes: 2 additions & 1 deletion gradle/java-setup.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ tasks.withType(JavaCompile).configureEach {
apply plugin: 'com.github.spotbugs'
spotbugs {
ignoreFailures = false // bug free or it doesn't ship!
reportLevel = 'medium' // low|medium|high (low = sensitive to even minor mistakes)
// LOW|MEDIUM|DEFAULT|HIGH (low = sensitive to even minor mistakes).
reportLevel = com.github.spotbugs.snom.Confidence.valueOf('MEDIUM')
omitVisitors = [
// https://spotbugs.readthedocs.io/en/latest/detectors.html#constructorthrow
'ConstructorThrow',
Expand Down
5 changes: 4 additions & 1 deletion lib-extra/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -91,5 +91,8 @@ p2deps {
}

// we'll hold the core lib to a high standard
spotbugs { reportLevel = 'low' } // low|medium|high (low = sensitive to even minor mistakes)
spotbugs {
// LOW|MEDIUM|DEFAULT|HIGH (low = sensitive to even minor mistakes).
reportLevel = com.github.spotbugs.snom.Confidence.valueOf('LOW')
}

5 changes: 4 additions & 1 deletion lib/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,10 @@ dependencies {
}

// we'll hold the core lib to a high standard
spotbugs { reportLevel = 'low' } // low|medium|high (low = sensitive to even minor mistakes)
spotbugs {
// LOW|MEDIUM|DEFAULT|HIGH (low = sensitive to even minor mistakes).
reportLevel = com.github.spotbugs.snom.Confidence.valueOf('LOW')
}

apply from: rootProject.file('gradle/special-tests.gradle')
tasks.withType(Test).configureEach {
Expand Down
2 changes: 1 addition & 1 deletion settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ plugins {
// https://github.com/gradle-nexus/publish-plugin/releases
id 'io.github.gradle-nexus.publish-plugin' version '1.3.0' apply false
// https://github.com/spotbugs/spotbugs-gradle-plugin/releases
id 'com.github.spotbugs' version '5.2.3' apply false
id 'com.github.spotbugs' version '6.0.1' apply false
// https://github.com/diffplug/spotless-changelog/blob/main/CHANGELOG.md
id 'com.diffplug.spotless-changelog' version '3.0.2' apply false
// https://github.com/diffplug/goomph/blob/main/CHANGES.md
Expand Down
5 changes: 4 additions & 1 deletion testlib/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@ dependencies {
}

// we'll hold the testlib to a low standard (prize brevity)
spotbugs { reportLevel = 'high' } // low|medium|high (low = sensitive to even minor mistakes)
spotbugs {
// LOW|MEDIUM|DEFAULT|HIGH (low = sensitive to even minor mistakes).
reportLevel = com.github.spotbugs.snom.Confidence.valueOf('HIGH')
}

apply from: rootProject.file('gradle/special-tests.gradle')
tasks.withType(Test).configureEach {
Expand Down

0 comments on commit 7901c64

Please sign in to comment.