-
Notifications
You must be signed in to change notification settings - Fork 11
/
spotbugs-exclusions.xml
34 lines (31 loc) · 1.44 KB
/
spotbugs-exclusions.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
<?xml version="1.0" encoding="UTF-8"?>
<FindBugsFilter xmlns="https://github.com/spotbugs/filter/3.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="https://github.com/spotbugs/filter/3.0.0 https://raw.githubusercontent.com/spotbugs/spotbugs/3.1.0/spotbugs/etc/findbugsfilter.xsd">
<And>
<Bug pattern="EI_EXPOSE_REP"/>
<Class name="com.ebay.ejmask.core.BaseFilter"/>
</And>
<!-- All bugs in test classes, except for JUnit-specific bugs -->
<Match>
<Class name="~.*\.*Test"/>
<Not>
<Bug code="IJU"/>
</Not>
</Match>
<!-- Exclude CT_CONSTRUCTOR_THROW for BaseFilter constructors -->
<Match>
<Class name="com.ebay.ejmask.core.BaseFilter">
<Method name="BaseFilter" params="java.lang.Class,java.lang.String[]"/>
<Method name="BaseFilter" params="java.lang.Class,int,java.lang.String[]"/>
<Method name="BaseFilter" params="java.lang.Class,int,int,java.lang.String[]"/>
</Class>
<Bug pattern="CT_CONSTRUCTOR_THROW"/>
</Match>
<!-- Exclude INFORMATION_EXPOSURE_THROUGH_AN_ERROR_MESSAGE for CommonUtils.getStackTrace -->
<Match>
<Class name="com.ebay.ejmask.core.util.CommonUtils">
<Method name="getStackTrace" params="java.lang.Throwable"/>
</Class>
<Bug pattern="INFORMATION_EXPOSURE_THROUGH_AN_ERROR_MESSAGE"/>
</Match>
</FindBugsFilter>