Introducing Antlr4 for cpsPath parsing
[cps.git] / spotbugs / src / main / resources / spotbugs-exclude.xml
1 <FindBugsFilter>
2   <Match>
3     <!-- Ignore generated code from Antlr4 -->
4     <Package name="org.onap.cps.cpspath.parser.antlr4" />
5   </Match>
6   <Match>
7     <Or>
8       <!-- Anonymous inner classes are very common. -->
9       <Bug pattern="SIC_INNER_SHOULD_BE_STATIC_ANON" />
10
11       <!-- We use static slf4j Logger (this rule is from KengoTODA/findbugs-slf4j jp.skypencil.findbugs.slf4:bug-pattern) -->
12       <Bug pattern="SLF4J_LOGGER_SHOULD_BE_NON_STATIC" />
13
14       <!-- Guava 25.1+ uses the Checker Framework's @Nullable which SpotBugs doesn't handle correctly, even though it's
15            supposed to; see https://github.com/spotbugs/spotbugs/issues/743 -->
16       <Bug pattern="NP_NONNULL_PARAM_VIOLATION" />
17       <Bug pattern="NP_NULL_PARAM_DEREF" />
18       <Bug pattern="NP_PARAMETER_MUST_BE_NONNULL_BUT_MARKED_AS_NULLABLE" />
19       <Bug pattern="RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE" />
20
21       <!-- https://github.com/spotbugs/spotbugs/issues/511. Strict reading of Object.equals() contract means that
22            evenever equals() behaviour is defined, all implementations need to adhere to it. The only reason
23            to override the method (assuming correct API design, of course) is to provide a more efficient
24            implementation. This rule would be forcing a @SuppressFBWarnings on perfectly compliant classes. -->
25       <Bug pattern="EQ_DOESNT_OVERRIDE_EQUALS"/>
26
27       <!-- https://github.com/spotbugs/spotbugs/issues/756. spotbugs does not grok Java 11's try-with-resources -->
28       <Bug pattern="RCN_REDUNDANT_NULLCHECK_WOULD_HAVE_BEEN_A_NPE"/>
29     </Or>
30   </Match>
31 </FindBugsFilter>