-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy pathspotbugs-filter.xml
More file actions
70 lines (62 loc) · 2.46 KB
/
spotbugs-filter.xml
File metadata and controls
70 lines (62 loc) · 2.46 KB
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
<?xml version="1.0" encoding="UTF-8" ?>
<!--
~ Copyright 2025. New Relic Corporation. All rights reserved.
~ SPDX-License-Identifier: Apache-2.0
-->
<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>
<!--
This is not final so that it can be reassigned in tests to inject a mock Agent.
-->
<Bug pattern="MS_SHOULD_BE_FINAL"/>
<Class name="com.newrelic.logging.logback13.NewRelicAsyncAppender"/>
</Match>
<Match>
<!--
We have to implement all methods of the LayoutBase<ILoggingEvent>.
-->
<Bug pattern="EI_EXPOSE_REP2" />
<Class name="com.newrelic.logging.logback13.NewRelicJsonLayout"/>
</Match>
<Match>
<!--
We have to implement all methods of the LayoutBase<ILoggingEvent>.
-->
<Bug pattern="EI_EXPOSE_REP" />
<Class name="com.newrelic.logging.logback13.NewRelicJsonLayout"/>
<Method name="getContext" />
</Match>
<Match>
<!--
This method calls getCallerData() and is required to populate the stack trace in the log event,
even if the return value is ignored.
-->
<Bug pattern="RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT" />
<Class name="com.newrelic.logging.logback13.NewRelicAsyncAppender"/>
<Method name="preprocess" />
</Match>
<Match>
<!--
This method calls getCallerData() and is required to populate the stack trace in the log event,
even if the return value is ignored.
-->
<Bug pattern="EI_EXPOSE_REP2" />
<Class name="com.newrelic.logging.logback13.CustomLoggingEventWrapper"/>
</Match>
<Match>
<!--
Using ByteArrayOutputStream is being used to write the JSON output, and run test assertions.
-->
<bug pattern="DM_DFAULT_ENCODING" />
<Class name="com.newrelic.logging.logback13.NewRelicLogback13Tests"/>
</Match>
<Match>
<!--
We have to write to a static because otherwise this value is set based on a classload.
-->
<Bug pattern="ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD"/>
<Class name="com.newrelic.logging.logback13.NewRelicLogback11Tests"/>
</Match>
</FindBugsFilter>