I use SpotBugs Maven Plugin for a static analysis and I would like to exclude a directory from the inspection. Looking at the spotbugs:check
goal documentation, it seems that it is not possible to configure the plugin is such a way. I also checked documentation for a SpotBugs filter file.
In Apache Maven PMD Plugin this can be done by using excludeRoots parameter:
<excludeRoots>
<excludeRoot>target</excludeRoot>
</excludeRoots>
Is it possible to exclude a directory from SpotBugs inspection?