-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathfindbugs-exclude.xml
executable file
·78 lines (77 loc) · 2.77 KB
/
findbugs-exclude.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
<FindBugsFilter>
<Match>
<Package name="org.visage.tools.antlr"/>
</Match>
<Match>
<!-- runtime.awt is a copy of the 1.6 AWT classes we use, but don't modify -->
<Package name="org.visage.runtime.awt"/>
</Match>
<Match>
<!-- Offending methods are inherited from javac -->
<Class name="org.visage.tools.tree.VisageTreeMaker" />
<Bug pattern="NM_METHOD_NAMING_CONVENTION" />
</Match>
<Match>
<!-- Offending classes are generated -->
<Package name="org.visage.tools.resources"/>
<Bug pattern="NM_CLASS_NAMING_CONVENTION"/>
</Match>
<Match>
<!-- On purpose, sets global state -->
<Class name="~com\.sun\.tools\.visage\.main\.RecognizedOptions\$[0-9]+"/>
<Method name="process"/>
<Bug pattern="ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD"/>
</Match>
<Match>
<!-- Reference points to (immutable) sequence -->
<Class name="org.visage.runtime.sequence.CartesianProduct"/>
<Bug pattern="EI_EXPOSE_REP2"/>
</Match>
<Match>
<!-- Exclude Duration.visage -->
<Class name="visage.lang.Duration"/>
</Match>
<Match>
<!-- Exclude package visage.animation -->
<Package name="visage.animation"/>
</Match>
<Match>
<!-- Exclude package org.visage.runtime.util.backport -->
<Package name="org.visage.runtime.util.backport"/>
</Match>
<Match>
<!-- Switch-fallthrough on purpose -->
<Class name="org.visage.runtime.util.VisagePropertyResourceBundle"/>
<Method name="initialize"/>
<Bug pattern="SF_SWITCH_FALLTHROUGH"/>
</Match>
<Match>
<!-- valid test for whether assertions are enabled -->
<Class name="org.visage.tools.comp.VisageAttr"/>
<Method name="attribClassBody"/>
<Local name="assertsEnabled"/>
<Bug pattern="DLS_DEAD_LOCAL_STORE"/>
</Match>
<Match>
<!-- Error in findbugs, confuses two scan-methods in superclass -->
<Class name="org.visage.tools.comp.VisageEnter"/>
<Method name="scan"/>
<Bug pattern="NM_WRONG_PACKAGE_INTENTIONAL"/>
</Match>
<Match>
<Class name="org.visage.tools.ant.VisageAntTask$VisageCompilerAdapter"/>
<Method name="execute"/>
<Bug pattern="DP_CREATE_CLASSLOADER_INSIDE_DO_PRIVILEGED"/>
</Match>
<!-- Temporarily disabled because work in progress -->
<Match>
<!-- Exclude package visage.reflect -->
<Package name="visage.reflect"/>
</Match>
<Match>
<!-- Field isSimple is not implemented yet -->
<Class name="~com\.sun\.tools\.visage\.comp\.VisageToBound\$[0-9]+"/>
<Field name="isSimple"/>
<Bug pattern="SS_SHOULD_BE_STATIC"/>
</Match>
</FindBugsFilter>