I’m using M9 and the new FindBugs plugin. I need to specify a filter file (a sub-set of my Sonar rules) for FindBugs to use. In looking through the docs, I do not see any reference to a filter file (but I’ve overlooked some things here lately). Is this currently possible? If not, will it be in 1.0?
Hello Jamie, at the moment its not possible to pass a filter file to the built-in findbugs plugin. You can use ‘exclude’ and ‘include’ of FileCollection to exclude specific files from being analyzed.
@Jamie includeFilter and excludeFilter are what you’re looking for. effort, reportingLevel, visitors, and omitVisitors will also be supported.
@Rene I had my pull request all ready to go, then I saw those GRADLE-2167 changes, so I had to refactor a bit. I had an issue with FindBugs never finishing, but that was FindBugs specific and I got past it. It probably could use a few more integration tests, but I don’t want to get into the business of testing FindBugs functionality. Submitted pull request: https://github.com/gradle/gradle/pull/78