-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathspotbugs-exclude.xml
More file actions
42 lines (36 loc) · 1.72 KB
/
spotbugs-exclude.xml
File metadata and controls
42 lines (36 loc) · 1.72 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
<?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">
<!-- Exclude CRLF injection warnings for controlled logging scenarios
These are false positives as we use parameterized logging and don't
accept user input directly in log messages -->
<Match>
<Bug pattern="CRLF_INJECTION_LOGS"/>
</Match>
<!-- Exclude serialization warnings for internal classes not meant for serialization -->
<Match>
<Bug pattern="SE_COMPARATOR_SHOULD_BE_SERIALIZABLE"/>
</Match>
<!-- Allow using Exception in method signatures for library API flexibility -->
<Match>
<Bug pattern="THROWS_METHOD_THROWS_CLAUSE_BASIC_EXCEPTION"/>
</Match>
<!-- Allow RuntimeException in method signatures where appropriate -->
<Match>
<Bug pattern="THROWS_METHOD_THROWS_RUNTIMEEXCEPTION"/>
</Match>
<!-- Exposed internal representation is intentional in some cases
These are internal core classes that share mutable objects by design
for coordination between components -->
<Match>
<Bug pattern="EI_EXPOSE_REP2"/>
<Or>
<Class name="io.github.throttle.service.base.AbstractChunkableTask"/>
<Class name="io.github.throttle.service.factory.ThrottleServiceFactory$Builder"/>
<Class name="io.github.throttle.service.core.ExecutionCoordinator"/>
<Class name="io.github.throttle.service.core.TaskExecutor"/>
</Or>
</Match>
</FindBugsFilter>