openapi-generator/spotbugs-exclude.xml
Jim Schubert c0f7b47292
[ci][test] Modifications to static analysis contribution via Tomasbjerre (#5116)
* Spotbugs, PMD and Checkstyle #33

* Reducing Spotbugs effort to min #33

 * Also using project.parent.basedir and avoiding relative paths in pom files.
 * Filtering out samples.

* Move PMD/Spotbugs to static-analysis profile

This moves the static-analysis checks to a standalone profile. Core
contributors may run static analysis with:

```
mvn -Pstatic-analysis install
```

The analysis is separated from default functionality to reduce impact to
community contributions. SpotBugs/PMD may add a non-trivial amount of
time to builds on some machines.

Co-authored-by: Tomas Bjerre <tomas.bjerre85@gmail.com>
2020-01-26 12:45:41 -05:00

34 lines
795 B
XML

<FindBugsFilter>
<Match>
<Bug pattern="RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE" />
</Match>
<Match>
<Bug pattern="URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD" />
</Match>
<Match>
<Bug pattern="RV_RETURN_VALUE_IGNORED_BAD_PRACTICE" />
</Match>
<Match>
<Bug pattern="URF_UNREAD_FIELD" />
<Or>
<And>
<Class name="io.undertow.server.protocol.ajp.AjpRequestParseState" />
<Field name="dataSize" />
</And>
</Or>
</Match>
<!-- For source/class naming, see https://spotbugs.readthedocs.io/en/stable/filter.html#java-element-name-matching -->
<Match>
<!-- Ignore all source files with samples in path name -->
<Source name="~.*\samples\.*"/>
</Match>
<Match>
<!-- Ignore all bugs in any test classes -->
<Class name="~.*\.*Test" />
</Match>
</FindBugsFilter>