spotbugs / spotbugs-gradle-plugin

https://plugins.gradle.org/plugin/com.github.spotbugs
Apache License 2.0
175 stars 67 forks source link

Findbugs : Gradle - Fail only on high priority issues #14

Open imdurgadas opened 6 years ago

imdurgadas commented 6 years ago

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.

KengoTODA commented 2 years ago

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

Johnlon commented 3 months ago

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

chanhengseang3 commented 1 month ago

I would like to request for the same feature