| <FindBugsFilter> |
| |
| <!-- Too many false positives to be useful. I could not make it happy :( --> |
| <Match> |
| <Bug pattern="SF_SWITCH_NO_DEFAULT" /> |
| </Match> |
| |
| <!-- Exclude test classes --> |
| <Match> |
| <Class name="~.*\.*Test" /> |
| </Match> |
| |
| </FindBugsFilter> |
| |
| |
| |
| <!-- Examples: --> |
| |
| <!-- Exclude java.* classes --> |
| <!-- |
| <Match> |
| <Package name="java\.*" /> |
| </Match> |
| --> |
| |
| <!-- Exclude test classes --> |
| <!-- |
| <Match> |
| <Class name="~.*\.*Test" /> |
| </Match> |
| --> |
| |
| <!-- Intentionally set to null to throw an exception during test --> |
| <!-- |
| <Match> |
| <Bug pattern="NP_NULL_PARAM_DEREF_NONVIRTUAL" /> |
| <Class name="com.yahoo.sketches.tuple.SerializerDeserializerTest" /> |
| <Method name="deserializeFromMemoryUsupportedClass" /> |
| </Match> |
| --> |
| <!-- False positive. FindBugs complains if DQS_RESIZE_THRESHOLD == REBUILD_THRESHOLD, |
| but this allows us to tune these constants for different sketches. --> |
| <!-- |
| <Match> |
| <Bug pattern="DB_DUPLICATE_BRANCHES" /> |
| <Class name="com.yahoo.sketches.theta.DirectQuickSelectSketch" /> |
| <Method name="setHashTableThreshold" /> |
| </Match> |
| --> |
| |
| <!-- |
| <Match> |
| <Class name="com.foobar.ClassNotToBeAnalyzed" /> |
| </Match> |
| --> |
| <!-- |
| <Match> |
| <Class name="com.foobar.ClassWithSomeBugsMatched" /> |
| <Bug code="DE,UrF,SIC" /> |
| </Match> |
| --> |
| <!-- Match all XYZ violations. --> |
| <!-- |
| <Match> |
| <Bug code="XYZ" /> |
| </Match> |
| --> |
| <!-- Match all doublecheck violations in these methods of "AnotherClass". --> |
| <!-- |
| <Match> |
| <Class name="com.foobar.AnotherClass" /> |
| <Or> |
| <Method name="nonOverloadedMethod" /> |
| <Method name="frob" params="int,java.lang.String" returns="void" /> |
| <Method name="blat" params="" returns="boolean" /> |
| </Or> |
| <Bug code="DC" /> |
| </Match> |
| --> |
| <!-- A method with a dead local store false positive (medium priority). --> |
| <!-- |
| <Match> |
| <Class name="com.foobar.MyClass" /> |
| <Method name="someMethod" /> |
| <Bug pattern="DLS_DEAD_LOCAL_STORE" /> |
| <Priority value="2" /> |
| </Match> |
| --> |