spotbugs / spotbugs-gradle-plugin

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

How to disable an specific check across the entire project? #1140

Open Johnlon opened 7 months ago

Johnlon commented 7 months ago

Failed to find the necessary doco or example.

Any clues?

We use the gradle plugin.

JuditKnoll commented 7 months ago

You can use omitVisitors, if you would like to specify the detector itself, which reports the bug. There is many-to-many relationship between the bugtypes and detectors. If you would like to exclude a bugtype, you can use excludeFilter. There is an example for both in the readme. You can find more info about the filter file in the official documentation.