forked from gazbert/bxbot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
spotbugs-exclude-filter.xml
116 lines (96 loc) · 3.99 KB
/
spotbugs-exclude-filter.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
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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
<?xml version="1.0"?>
<!--
Bug codes can be found here: http://findbugs.sourceforge.net/bugDescriptions.html
-->
<FindBugsFilter>
<!-- Don't bother with unused fields in Exchange Adapter GSON classes. -->
<Match>
<Bug code="UwF,NP"/>
</Match>
<!-- False positive - this NPE check is required. -->
<Match>
<Class name="com.gazbert.bxbot.exchanges.ItBitExchangeAdapter"/>
<Bug code="RCN"/>
</Match>
<!-- False positive - this NPE check is required. -->
<Match>
<Class name="com.gazbert.bxbot.datastore.xml.ConfigurationManager"/>
<Bug code="OBL"/>
</Match>
<!-- Ignore default interface method warning -->
<Match>
<Class name="com.gazbert.bxbot.trading.api.TradingApi"/>
<Bug pattern="SIC_INNER_SHOULD_BE_STATIC_ANON"/>
</Match>
<!-- Ignore static inner warnings for Kraken adapter -->
<Match>
<Class name="com.gazbert.bxbot.exchanges.KrakenExchangeAdapter"/>
<Bug pattern="SIC_INNER_SHOULD_BE_STATIC_ANON"/>
</Match>
<!-- Ignore Exception not thrown for catch warnings in Kraken adapter -->
<Match>
<Class name="com.gazbert.bxbot.exchanges.KrakenExchangeAdapter"/>
<Bug pattern="REC_CATCH_EXCEPTION"/>
</Match>
<!-- Ignore Exception not thrown for catch warnings in Gemini adapter -->
<Match>
<Class name="com.gazbert.bxbot.exchanges.GeminiExchangeAdapter"/>
<Bug pattern="REC_CATCH_EXCEPTION"/>
</Match>
<!-- Ignore Exception not thrown for catch warnings in ItBit adapter -->
<Match>
<Class name="com.gazbert.bxbot.exchanges.ItBitExchangeAdapter"/>
<Bug pattern="REC_CATCH_EXCEPTION"/>
</Match>
<!-- Ignore Exception not thrown for catch warnings in Bitfinex adapter -->
<Match>
<Class name="com.gazbert.bxbot.exchanges.BitfinexExchangeAdapter"/>
<Bug pattern="REC_CATCH_EXCEPTION"/>
</Match>
<!-- Ignore Exception not thrown for catch warnings in Coinbase Pro adapter -->
<Match>
<Class name="com.gazbert.bxbot.exchanges.CoinbaseProExchangeAdapter"/>
<Bug pattern="REC_CATCH_EXCEPTION"/>
</Match>
<!-- Ignore toLowerCase/toUpperCase warnings without locale in Bitfinex adapter
Exchange uses US English.
-->
<Match>
<Class name="com.gazbert.bxbot.exchanges.BitfinexExchangeAdapter"/>
<Bug pattern="DM_CONVERT_CASE"/>
</Match>
<!-- Ignore toLowerCase/toUpperCase warnings without locale in Bitstamp adapter
Exchange uses US English.
-->
<Match>
<Class name="com.gazbert.bxbot.exchanges.BitstampExchangeAdapter"/>
<Bug pattern="DM_CONVERT_CASE"/>
</Match>
<!-- Ignore toLowerCase/toUpperCase warnings without locale in Gemini adapter
Exchange uses US English.
-->
<Match>
<Class name="com.gazbert.bxbot.exchanges.GeminiExchangeAdapter"/>
<Bug pattern="DM_CONVERT_CASE"/>
</Match>
<!-- Ignore toLowerCase/toUpperCase warnings without locale in Coinbase Pro adapter
Exchange uses US English.
-->
<Match>
<Class name="com.gazbert.bxbot.exchanges.CoinbaseProExchangeAdapter"/>
<Bug pattern="DM_CONVERT_CASE"/>
</Match>
<!-- False positive generated in BotLogfileServiceImpl:
[ERROR] Nullcheck of stream at line 108 of value previously dereferenced in
com.gazbert.bxbot.services.runtime.impl.BotLogfileServiceImpl.tailFile(Path, int)
[com.gazbert.bxbot.services.runtime.impl.BotLogfileServiceImpl,
com.gazbert.bxbot.services.runtime.impl.BotLogfileServiceImpl] At
BotLogfileServiceImpl.java:[line 108]Redundant null check at
BotLogfileServiceImpl.java:[line 110] RCN_REDUNDANT_NULLCHECK_WOULD_HAVE_BEEN_A_NPE
See: https://github.com/spotbugs/spotbugs/issues/756
-->
<Match>
<Class name="com.gazbert.bxbot.services.runtime.impl.BotLogfileServiceImpl"/>
<Bug pattern="RCN_REDUNDANT_NULLCHECK_WOULD_HAVE_BEEN_A_NPE"/>
</Match>
</FindBugsFilter>