-
Notifications
You must be signed in to change notification settings - Fork 0
/
excludeFilter.xml
132 lines (117 loc) · 3.4 KB
/
excludeFilter.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
<FindBugsFilter>
<!-- sources of tests -->
<Match>
<Source name="~.*Test.*" />
</Match>
<!-- 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>
<!-- "==" compare is desired -->
<Match>
<Class
name="org.eclipse.emf.parsley.dsl.model.impl.ControlFactorySpecificationImpl" />
<Method name="getFeature" />
<Bug pattern="EC_UNRELATED_TYPES_USING_POINTER_EQUALITY" />
</Match>
<Match>
<Class
name="org.eclipse.emf.parsley.dsl.model.impl.FeatureAssociatedExpressionImpl" />
<Method name="getFeature" />
<Bug pattern="EC_UNRELATED_TYPES_USING_POINTER_EQUALITY" />
</Match>
<Match>
<Class
name="org.eclipse.emf.parsley.internal.edit.ui.dnd.DynamicEditingDomainViewerDropAdapter" />
<Method name="drop" />
<Bug pattern="NP_NONNULL_PARAM_VIOLATION" />
</Match>
<Match>
<Class
name="org.eclipse.emf.parsley.edit.ui.provider.ViewerContentProvider" />
<Method name="getParent" />
<Bug pattern="NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE" />
</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>