blob: 26f4c88f64aee827455639f66ecd5ba58c78d51f [file] [log] [blame]
<FindBugsFilter>
<!-- antlr generated -->
<Match>
<Class name="~.*\.antlr\.internal.*" />
</Match>
<Match>
<Class name="~.*Lexer(\$.*)?" />
</Match>
<Match>
<Class name="~testdata\..*" />
</Match>
<!-- seems to be a common move classes to another package -->
<Match>
<Bug pattern="NM_SAME_SIMPLE_NAME_AS_SUPERCLASS"/>
</Match>
<!-- "==" compare is desired - See https://bugs.eclipse.org/bugs/show_bug.cgi?id=225331 -->
<Match>
<Class
name="org.eclipse.xtext.ui.editor.preferences.FixedScopedPreferenceStore" />
<Method name="setToDefault" />
<Bug pattern="ES_COMPARING_STRINGS_WITH_EQ" />
</Match>
<!-- "==" compare is desired -->
<Match>
<Class
name="org.eclipse.xtext.impl.EnumLiteralDeclarationImpl" />
<Method name="getEnumLiteral" />
<Bug pattern="EC_UNRELATED_TYPES_USING_POINTER_EQUALITY" />
</Match>
<!-- someArray.hashCode() is desired -->
<Match>
<Class
name="org.eclipse.xtext.xbase.lib.ArrayExtensions" />
<Bug pattern="DMI_INVOKING_HASHCODE_ON_ARRAY" />
</Match>
<!-- Deprecated -->
<Match>
<Class name="~org\.eclipse\.xtext\.generator\.MergeableManifes.*" />
</Match>
<Match>
<Class name="org.eclipse.xtext.generator.ecore2xtext.FormatterFragment" />
</Match>
<!-- Xtend generated: guava Objects.equal(x,null) should be a valid construct -->
<Match>
<Bug pattern="EC_NULL_ARG" />
</Match>
<!-- API base line, can't workaround -->
<Match>
<Class name="org.eclipse.xtext.util.ITextRegion" />
<Bug pattern="IC_SUPERCLASS_USES_SUBCLASS_DURING_INITIALIZATION" />
</Match>
<!-- Some Examples:
<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>
All bugs in test classes, except for JUnit-specific bugs
<Match>
<Class name="~.*\.*Test" />
<Not>
<Bug code="IJU" />
</Not>
</Match> -->
</FindBugsFilter>