-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathspotbugs-exclude.xml
54 lines (45 loc) · 2.26 KB
/
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
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
<?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">
<!-- TODO: remove this once https://github.com/spotbugs/spotbugs/pull/1603 is included in a spotbugs release -->
<Match>
<Bug pattern="EI_EXPOSE_REP,EI_EXPOSE_REP2" />
</Match>
<!-- Introduced by spotbugs 4.7.0 and OpenSourceOcava intentionally does this in many places -->
<Match>
<Bug pattern="THROWS_METHOD_THROWS_RUNTIMEEXCEPTION"/>
</Match>
<!-- Introduced by spotbugs 4.7.0 and the code in BlockingEventBus and ScenarioTestWrapper deliberately propagates exceptions -->
<Match>
<Bug pattern="THROWS_METHOD_THROWS_CLAUSE_THROWABLE"/>
<Or>
<Class name="com.google.common.eventbus.BlockingEventBus"/>
<Class name="com.ocadotechnology.scenario.ScenarioTestWrapper"/>
</Or>
</Match>
<!-- Introduced by spotbugs 4.7.0 and the code in ExceptionSwallower and Id seems to be getting a false positive -->
<Match>
<Bug pattern="THROWS_METHOD_THROWS_CLAUSE_BASIC_EXCEPTION"/>
<Or>
<Class name="com.ocadotechnology.event.scheduling.ExecutorEventScheduler"/>
<Class name="com.ocadotechnology.id.Id$1"/>
</Or>
</Match>
<!-- Introduced by spotbugs 4.7.0 and the code in BinarySearch incorrectly triggers this error -->
<Match>
<Bug pattern="FL_FLOATS_AS_LOOP_COUNTERS"/>
<Class name="com.ocadotechnology.physics.utils.BinarySearch"/>
</Match>
<!--
Introduced by spotbugs 4.8.0 and OSOcava has a number of enum values which shadow Java names e.g. BusyLoopQueueType which is intentional and not a bug
-->
<Match>
<Bug pattern="PI_DO_NOT_REUSE_PUBLIC_IDENTIFIERS_FIELD_NAMES"/>
</Match>
<!-- Introduced by spotbugs 4.8.0 and OSOcava has classes which shadow Java names e.g. Notification/Identity/etc which is intentional and not a bug -->
<Match>
<Bug pattern="PI_DO_NOT_REUSE_PUBLIC_IDENTIFIERS_CLASS_NAMES"/>
</Match>
</FindBugsFilter>