-
Notifications
You must be signed in to change notification settings - Fork 30
/
spotBugsExcludeFilter.xml
115 lines (114 loc) · 3.78 KB
/
spotBugsExcludeFilter.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
<?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">
<Match>
<Class name="com.microsoft.graph.core.content.BatchRequestContent" />
<Field name="requests" />
<Bug code="PA" />
</Match>
<Match>
<Class name="com.microsoft.graph.core.content.BatchRequestContent" />
<Bug code="CT" />
</Match>
<Match>
<Class name="com.microsoft.graph.core.content.BatchRequestContentCollection" />
<Bug code="CT" />
</Match>
<Match>
<Class name="com.microsoft.graph.core.models.BatchRequestStep" />
<Bug code="CT" />
</Match>
<Match>
<Class name="com.microsoft.graph.core.requests.upload.UploadSessionRequestBuilder" />
<Bug code="CT" />
</Match>
<Match>
<Class name="com.microsoft.graph.core.requests.upload.UploadSliceRequestBuilder" />
<Bug code="CT" />
</Match>
<Match>
<Class name="com.microsoft.graph.core.tasks.LargeFileUploadTask" />
<Bug code="CT" />
</Match>
<Match>
<Class name="com.microsoft.graph.core.CoreConstants$Headers" />
<Bug code="PI" />
</Match>
<Match>
<Class name="com.microsoft.graph.core.CoreConstants$BatchRequest" />
<Bug code="PI" />
</Match>
<Match>
<Class name="com.microsoft.graph.core.ErrorConstants$Messages" />
<Bug code="PI" />
</Match>
<Match>
<Class name="com.microsoft.graph.tasks.LargeFileUploadRequest" />
<Bug code="Dm" />
</Match>
<Match>
<Class name="com.microsoft.graph.tasks.LargeFileUploadResponseHandler" />
<Method name="generateResult" />
<Bug code="RCN,NP" />
</Match>
<Match>
<Class name="com.microsoft.graph.core.authentication.AzureIdentityAccessTokenProvider" />
<Bug pattern="NM_SAME_SIMPLE_NAME_AS_SUPERCLASS" />
</Match>
<Match>
<Bug pattern="NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE" />
<Or>
<Class name="com.microsoft.graph.core.content.BatchRequestContent" />
<Class name="com.microsoft.graph.core.content.BatchResponseContent" />
<Class name="com.microsoft.graph.core.requests.ResponseBodyHandler" />
<Class name="com.microsoft.graph.core.requests.upload.UploadResponseHandler" />
<Class name="com.microsoft.graph.core.requests.middleware.GraphTelemetryHandlerTest" />
</Or>
</Match>
<Match>
<Bug pattern="EI_EXPOSE_REP" />
<Class name="com.microsoft.graph.core.requests.BatchRequestBuilder" />
</Match>
<Match>
<Bug pattern="EI_EXPOSE_REP2" />
<Or>
<Class name="com.microsoft.graph.core.content.BatchRequestContentCollection" />
<Class name="com.microsoft.graph.core.requests.middleware.GraphTelemetryHandler" />
<Class name="com.microsoft.graph.core.requests.upload.UploadSessionRequestBuilder" />
<Class name="com.microsoft.graph.core.requests.upload.UploadSliceRequestBuilder" />
<Class name="com.microsoft.graph.core.tasks.PageIterator$Builder" />
</Or>
</Match>
<!-- SpotBugs' exclusions for test classes -->
<Match>
<Class name="com.microsoft.graph.core.testModels.TestBodyType" />
<Bug code="PI" />
</Match>
<Match>
<Bug code="PA" />
<Or>
<Package name="~com\.microsoft\.graph\.core\.testModels.*" />
<Class name="com.microsoft.graph.core.BaseClient" />
</Or>
</Match>
<Match>
<Bug pattern="EI_EXPOSE_REP" />
<Or>
<Package name="~com\.microsoft\.graph\.core\.testModels.*" />
<Class name="com.microsoft.graph.core.BaseClient" />
</Or>
</Match>
<Match>
<Bug pattern="EI_EXPOSE_REP2" />
<Or>
<Package name="~com\.microsoft\.graph\.core\.testModels.*" />
<Class name="com.microsoft.graph.core.BaseClient" />
</Or>
</Match>
<Match>
<Bug pattern="DCN_NULLPOINTER_EXCEPTION" />
<Class name="com.microsoft.graph.core.content.BatchResponseContentTest" />
</Match>
</FindBugsFilter>