-
-
Notifications
You must be signed in to change notification settings - Fork 25
Expand file tree
/
Copy pathspotbugs-exclude.xml
More file actions
81 lines (69 loc) · 2.29 KB
/
spotbugs-exclude.xml
File metadata and controls
81 lines (69 loc) · 2.29 KB
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
<?xml version="1.0" encoding="UTF-8"?>
<!--
SpotBugs exclusion rules for HDFView
This file excludes false positives and patterns specific to HDF/SWT development
-->
<FindBugsFilter>
<!-- Exclude UI initialization patterns common in SWT applications -->
<Match>
<Class name="~.*\.view\..*"/>
<Bug pattern="ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD"/>
</Match>
<!-- Exclude SWT-specific patterns - widgets often require null checks -->
<Match>
<Class name="~.*\.view\..*"/>
<Bug pattern="UWF_NULL_FIELD"/>
</Match>
<!-- Exclude SWT dispose patterns - widgets handle their own disposal -->
<Match>
<Method name="~.*dispose.*"/>
<Bug pattern="UWF_NULL_FIELD"/>
</Match>
<!-- Exclude native library integration patterns -->
<Match>
<Class name="~.*\.h[45]\..*"/>
<Bug pattern="DM_DEFAULT_ENCODING"/>
</Match>
<!-- Exclude JNI-related patterns in HDF native integration -->
<Match>
<Class name="~.*\.jni\..*"/>
<Bug pattern="DM_DEFAULT_ENCODING"/>
</Match>
<!-- Exclude HDF library wrapper classes that may have unusual patterns -->
<Match>
<Class name="~.*\.h[45]\..*"/>
<Bug pattern="MS_SHOULD_BE_FINAL"/>
</Match>
<!-- Exclude UI event handling patterns -->
<Match>
<Class name="~.*\.view\..*"/>
<Method name="~.*Listener.*"/>
<Bug pattern="UWF_UNWRITTEN_FIELD"/>
</Match>
<!-- Exclude SWT Image and resource management patterns -->
<Match>
<Class name="~.*\.view\..*"/>
<Bug pattern="OS_OPEN_STREAM"/>
</Match>
<!-- Exclude test classes from analysis (reduce noise) -->
<Match>
<Class name="~.*Test.*"/>
</Match>
<Match>
<Class name="~.*TestCase.*"/>
</Match>
<!-- Exclude utility classes with static initialization patterns -->
<Match>
<Class name="~.*Utils.*"/>
<Bug pattern="ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD"/>
</Match>
<!-- Exclude HDF format-specific classes that may have complex inheritance -->
<Match>
<Class name="~.*\.fits\..*"/>
<Bug pattern="SE_BAD_FIELD"/>
</Match>
<Match>
<Class name="~.*\.netcdf\..*"/>
<Bug pattern="SE_BAD_FIELD"/>
</Match>
</FindBugsFilter>