mirror of
https://github.com/valitydev/openapi-generator.git
synced 2024-11-06 10:35:25 +00:00
c0f7b47292
* 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>
34 lines
795 B
XML
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> |