spotbugs-exclude.xml
2.4 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
<?xml version="1.0" encoding="UTF-8"?>
<FindBugsFilter>
<!-- 忽略特定包或类的所有警告 --<
<Match package="~com\.neotel\.smfcore\.apiGateway\.agv\..*" />
<Match package="~com\.neotel\.smfcore\.businessServices\.inList\..*" />
<!-- 忽略测试类中的警告 -->
<Match class="~.*Test" />
<Match class="~.*Tests" />
<Match class="~.*IT" />
<!-- 忽略序列化相关警告 --<
<Match bug="SE_NO_SERIALVERSIONID">
<Class name="~com\.neotel\.smfcore\.shared\..*" />
</Match>
<!-- 忽略未使用参数警告,特别是在接口方法和回调中 --<
<Match bug="URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD">
<Class name="~com\.neotel\.smfcore\.apiGateway\..*" />
</Match>
<!-- 忽略可能的空指针警告,对于已知安全的场景 --<
<Match bug="NP_NULL_ON_SOME_PATH">
<Class name="~com\.neotel\.smfcore\.businessServices\..*" />
<Method name="~get.*" />
</Match>
<!-- 忽略不必要的同步警告,对于线程安全集合 --<
<Match bug="DL_SYNCHRONIZATION_ON_SHARED_CONSTANT"<
<Class name="~com\.neotel\.smfcore\.shared\.utils\..*" />
</Match>
<!-- 忽略StringBuffer线程安全警告,已知单线程使用场景 --<
<Match bug="DM_STRING_TO_STRINGBUFFER">
<Class name="~com\.neotel\.smfcore\.businessServices\..*" />
</Match>
<!-- 忽略可能的资源泄露警告,已知try-with-resources已使用 --<
<Match bug="OBL_UNSATISFIED_OBLIGATION">
<Class name="~com\.neotel\.smfcore\.integrations\..*" />
</Match>
<!-- 忽略未使用的私有方法,用于预留扩展点 --<
<Match bug="UPM_UNCALLED_PRIVATE_METHOD">
<Class name="~com\.neotel\.smfcore\.smfPlatform\..*" />
</Match>
<!-- 忽略常量条件警告,在配置类中常见 --<
<Match bug="DLS_DEAD_LOCAL_STORE">
<Class name="~com\.neotel\.smfcore\.shared\.config\..*" />
</Match>
<!-- 忽略构造函数调用中初始化字段的警告 --<
<Match bug="SS_SHOULD_BE_STATIC">
<Class name="~com\.neotel\.smfcore\.shared\.base\..*" />
</Match>
<!-- 忽略可能的内存泄漏警告,在单例模式中常见 --<
<Match bug="LEAK_DETECTED_IN_ACTION_PERFORMED">
<Class name="~com\.neotel\.smfcore\.smfPlatform\.dashboard\..*" />
</Match>
</FindBugsFilter>