-
Notifications
You must be signed in to change notification settings - Fork 88
/
spotbugs-exclude.xml
172 lines (172 loc) · 7.13 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
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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
<!-- This file specifies a spotbugs filter for excluding reports that
should not be considered errors.
The format of this file is documented at:
https://spotbugs.readthedocs.io/en/latest/filter.html
When possible, please specify the full names of the bug codes,
using the pattern attribute, to make it clearer what reports are
being suppressed. You can find a listing of codes at:
https://spotbugs.readthedocs.io/en/latest/bugDescriptions.html
-->
<FindBugsFilter>
<!-- Internals of Log event for apache log4j-->
<Match>
<Bug pattern="EI_EXPOSE_REP"/>
<Or>
<And>
<Class name="software.amazon.lambda.powertools.logging.internal.LambdaJsonLayout$LogEventWithAdditionalFields"/>
<Method name="getLogEvent"/>
</And>
<And>
<Class name="software.amazon.lambda.powertools.logging.internal.LambdaJsonLayout$LogEventWithAdditionalFields"/>
<Method name="getAdditionalFields"/>
</And>
<And>
<Class name="software.amazon.lambda.powertools.logging.internal.AbstractJacksonLayoutCopy$Builder"/>
<Method name="getAdditionalFields"/>
</And>
<And>
<Class name="software.amazon.lambda.powertools.logging.internal.AbstractJacksonLayoutCopy$LogEventWithAdditionalFields"/>
<Method name="getAdditionalFields"/>
</And>
<And>
<Class name="software.amazon.lambda.powertools.idempotency.Idempotency"/>
<Method name="getPersistenceStore"/>
</And>
<And>
<Class name="software.amazon.lambda.powertools.idempotency.Idempotency"/>
<Method name="getConfig"/>
</And>
<And>
<Class name="software.amazon.lambda.powertools.largemessages.LargeMessageConfig"/>
<Method name="getS3Client"/>
</And>
</Or>
</Match>
<Match>
<Bug pattern="EI_EXPOSE_REP2"/>
<Or>
<And>
<Class name="software.amazon.lambda.powertools.logging.internal.LambdaJsonLayout$LogEventWithAdditionalFields"/>
<Field name="logEvent"/>
</And>
<And>
<Class name="software.amazon.lambda.powertools.logging.internal.LambdaJsonLayout$LogEventWithAdditionalFields"/>
<Field name="additionalFields"/>
</And>
<And>
<Class name="software.amazon.lambda.powertools.logging.internal.AbstractJacksonLayoutCopy$Builder"/>
<Field name="additionalFields"/>
</And>
<And>
<Class name="software.amazon.lambda.powertools.logging.internal.AbstractJacksonLayoutCopy$LogEventWithAdditionalFields"/>
<Field name="additionalFields"/>
</And>
<And>
<Class name="software.amazon.lambda.powertools.sqs.internal.BatchContext"/>
<Field name="client"/>
</And>
<And>
<Class name="software.amazon.lambda.powertools.parameters.BaseProvider"/>
<Field name="cacheManager"/>
</And>
<And>
<Class name="software.amazon.lambda.powertools.parameters.transform.TransformationManager"/>
<Field name="transformer"/>
</And>
<And>
<Class name="software.amazon.lambda.powertools.idempotency.Idempotency$Config"/>
<Field name="store"/>
</And>
<And>
<Class name="software.amazon.lambda.powertools.idempotency.Idempotency$Config"/>
<Field name="config"/>
</And>
<And>
<Class name="software.amazon.lambda.powertools.idempotency.internal.IdempotencyHandler"/>
<Field name="pjp"/>
</And>
<And>
<Class name="software.amazon.lambda.powertools.idempotency.persistence.DynamoDBPersistenceStore$Builder"/>
<Field name="dynamoDbClient"/>
</And>
<And>
<Class name="software.amazon.lambda.powertools.utilities.EventDeserializer$EventPart"/>
<Field name="contentMap"/>
</And>
<And>
<Class name="software.amazon.lambda.powertools.utilities.EventDeserializer$EventPart"/>
<Field name="contentList"/>
</And>
<And>
<Class name="software.amazon.lambda.powertools.largemessages.LargeMessageConfig"/>
<Field name="s3Client"/>
</And>
</Or>
</Match>
<!--Functionally needed-->
<Match>
<Bug pattern="EI_EXPOSE_STATIC_REP2"/>
<Or>
<And>
<Class name="software.amazon.lambda.powertools.logging.LoggingUtils"/>
<Method name="defaultObjectMapper"/>
</And>
<And>
<Class name="software.amazon.lambda.powertools.tracing.TracingUtils"/>
<Method name="defaultObjectMapper"/>
</And>
<And>
<Class name="software.amazon.lambda.powertools.sqs.SqsUtils"/>
<Method name="overrideSqsClient"/>
</And>
<And>
<Class name="software.amazon.lambda.powertools.sqs.SqsUtils"/>
<Method name="overrideS3Client"/>
</And>
</Or>
</Match>
<Match>
<Bug pattern="MS_EXPOSE_REP"/>
<Or>
<And>
<Class name="software.amazon.lambda.powertools.logging.LoggingUtils"/>
<Method name="objectMapper"/>
</And>
<And>
<Class name="software.amazon.lambda.powertools.tracing.TracingUtils"/>
<Method name="objectMapper"/>
</And>
<And>
<Class name="software.amazon.lambda.powertools.sqs.SqsUtils"/>
<Method name="objectMapper"/>
</And>
<And>
<Class name="software.amazon.lambda.powertools.parameters.ParamManager"/>
<Method name="getCacheManager"/>
</And>
<And>
<Class name="software.amazon.lambda.powertools.sqs.SqsUtils"/>
<Method name="s3Client"/>
</And>
<And>
<Class name="software.amazon.lambda.powertools.parameters.ParamManager"/>
<Method name="getTransformationManager"/>
</And>
</Or>
</Match>
<!--False positive https://github.com/spotbugs/spotbugs/issues/1539-->
<Match>
<Bug pattern="DMI_RANDOM_USED_ONLY_ONCE"/>
<Class name="software.amazon.lambda.powertools.logging.internal.LambdaLoggingAspect"/>
<Method name="setLogLevelBasedOnSamplingRate"/>
</Match>
<Match>
<Bug pattern="DMI_THREAD_PASSED_WHERE_RUNNABLE_EXPECTED"/>
<Or>
<And>
<Class name="helloworld.App"/>
<Method name="threadOption1"/>
</And>
</Or>
</Match>
</FindBugsFilter>