Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to avoid kotlin files with Findbugs

I'm integrating findbugs in a mixed java/kotlin project. However, as findbugs acts on the generated jar it is finding bugs related to classes generated through kotlin file.

Is there any way to avoid checks on these classes?

Thank you

like image 668
Fábio Carballo Avatar asked Feb 17 '16 15:02

Fábio Carballo


1 Answers

Filter based on the <Source> filter type.

This element matches warnings associated with a particular source file. The name attribute is used to specify the exact or regex match pattern for the source file name.

<FindBugsFilter>
    <Match>
        <Source name="~.*\.kt"/>
    </Match>
</FindBugsFilter>

See: documentation for FindBugs filters and name matching details

like image 155
3 revs Avatar answered Oct 15 '22 12:10

3 revs