-
Notifications
You must be signed in to change notification settings - Fork 0
/
spotbugs-exclude.xml
28 lines (28 loc) · 969 Bytes
/
spotbugs-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
<?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">
<!-- Can't avoid exposing a potentially mutable Throwable -->
<Match>
<Class name="io.github.josephearl.result.Result$Failure"/>
<Or>
<And>
<Method name="<init>"/>
<Bug pattern="EI_EXPOSE_REP2"/>
</And>
<And>
<Or>
<Method name="exception"/>
<Method name="exceptionOrNull"/>
</Or>
<Bug pattern="EI_EXPOSE_REP"/>
</And>
</Or>
</Match>
<!-- Dead store to pattern matched variable cannot be avoided -->
<Match>
<Class name="io.github.josephearl.result.ResultExample"/>
<Bug pattern="DLS_DEAD_LOCAL_STORE"/>
</Match>
</FindBugsFilter>