spotbugs-gradle-plugin icon indicating copy to clipboard operation
spotbugs-gradle-plugin copied to clipboard

Findbugs : Gradle - Fail only on high priority issues

Open imdurgadas opened this issue 7 years ago • 3 comments

It would be great if findbugs could provide a way to fail the build only if there are high priority bugs, but want all bug instances (high, medium, low) to be listed in the xml report generated by fingBugs. There is reportLevel attribute in findBugs plugin, but if I set it to “high” and ignoreFailure to false it does fail the build on high priority bug but it does not report the medium and low priority bugs in xml report at all.

I want the build to fail only on high priority bugs but should report all bugs in report xml.

imdurgadas avatar Mar 18 '18 14:03 imdurgadas

memo: it could be nice to support this request by adding a verification type task like:

https://docs.gradle.org/current/dsl/org.gradle.testing.jacoco.tasks.JacocoCoverageVerification.html

KengoTODA avatar Oct 26 '21 09:10 KengoTODA

See also https://github.com/spotbugs/spotbugs-gradle-plugin/issues/189

Johnlon avatar Mar 27 '24 13:03 Johnlon