spotbugs / discuss

SpotBugs mailing list
6 stars 1 forks source link

Wildcard for maven <excludeFilterFile>? #46

Open mkienenb opened 6 years ago

mkienenb commented 6 years ago

Is there a way to use a wildcard when specifying exclude files with <excludeFilterFile> for the spotbugs maven plug-in?

When I was using the findbugs ant task, I could select exclude filter files with the following:

<excludePath>
    <fileset dir="${src.dir}" includes="**/findbugs-*-exclude-filter.xml"/>
    <fileset dir="${test-src.dir}" includes="**/findbugs-*-exclude-filter.xml"/>
</excludePath>

https://spotbugs.github.io/spotbugs-maven-plugin/check-mojo.html#excludeFilterFile Regards, -Mike

KengoTODA commented 6 years ago

It seems that it's not supported. Maven plugin simply separate values by comma, and spotbugs uses given string as filename

mkienenb commented 6 years ago

Yes, I had already figured out that I could use comma-separated values by reading the plugin source code. I'm not sure why the information isn't showing up in the online docs since I see it in the class docs.

I could easily make a patch to do something like this for ant, but I have no idea how to go about it for maven.

KengoTODA commented 6 years ago

Ya please start from where you can :)