29 lines
1.1 KiB
XML
29 lines
1.1 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<FindBugsFilter
|
|
xmlns="https://github.com/spotbugs/filter/3.0.0"
|
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
xsi:schemaLocation="https://github.com/spotbugs/filter/3.0.0 https://raw.githubusercontent.com/spotbugs/spotbugs/3.1.0/spotbugs/etc/findbugsfilter.xsd">
|
|
|
|
<!-- I'm reasonably confident that the singleton pattern isn't exposing internal representation -->
|
|
<And>
|
|
<Class name="dev.openfeature.javasdk.OpenFeatureAPI"/>
|
|
<Bug pattern="MS_EXPOSE_REP"/>
|
|
</And>
|
|
<!-- similarly, client using the singleton doesn't seem bad -->
|
|
<And>
|
|
<Class name="dev.openfeature.javasdk.OpenFeatureClient"/>
|
|
<Bug pattern="EI_EXPOSE_REP2"/>
|
|
</And>
|
|
|
|
<!-- Test class that should be excluded -->
|
|
<Match>
|
|
<Class name="dev.openfeature.javasdk.DoSomethingProvider"/>
|
|
</Match>
|
|
<!-- All bugs in test classes, except for JUnit-specific bugs -->
|
|
<Match>
|
|
<Class name="~.*\.*Test" />
|
|
<Not>
|
|
<Bug code="IJU" />
|
|
</Not>
|
|
</Match>
|
|
</FindBugsFilter> |