107 lines
4.8 KiB
XML
107 lines
4.8 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<FindBugsFilter>
|
|
<Match>
|
|
<!-- That code is auto generated -->
|
|
<Package name="~com\.puppycrawl\.tools\.checkstyle\.grammars.*" />
|
|
</Match>
|
|
<Match>
|
|
<!-- We are not aware of encoding of files that user has, so using user encodin is ok -->
|
|
<Class name="com.puppycrawl.tools.checkstyle.checks.LineSeparatorOption" />
|
|
<Bug pattern="DM_DEFAULT_ENCODING" />
|
|
</Match>
|
|
<Match>
|
|
<!-- Look like catch Exception and throw BuidException is normal practice in ANT, so we follow their style -->
|
|
<!-- Example: https://git-wip-us.apache.org/repos/asf?p=ant.git;a=blob;f=src/main/org/apache/tools/ant/taskdefs/Checksum.java;h=7a94ca098baf241b175a6bab3dda092aed835ada;hb=HEAD#l574 -->
|
|
<Class name="com.puppycrawl.tools.checkstyle.CheckStyleTask" />
|
|
<Method name="createChecker" />
|
|
<Bug pattern="REC_CATCH_EXCEPTION" />
|
|
</Match>
|
|
<Match>
|
|
<!-- Confirmed, on any exception, keep running -->
|
|
<Class name="com.puppycrawl.tools.checkstyle.PropertyCacheFile" />
|
|
<Method name="getConfigHashCode" />
|
|
<Bug pattern="REC_CATCH_EXCEPTION" />
|
|
</Match>
|
|
<Match>
|
|
<!-- Deprecated code, code will be removed afer swithing to use JavaDoc AST tree -->
|
|
<Class name="com.puppycrawl.tools.checkstyle.checks.javadoc.JavadocUtils" />
|
|
<Bug pattern="REC_CATCH_EXCEPTION" />
|
|
</Match>
|
|
<Match>
|
|
<!-- till #911 -->
|
|
<Package name="~com\.puppycrawl\.tools\.checkstyle.*" />
|
|
<Bug pattern="EQ_COMPARETO_USE_OBJECT_EQUALS" />
|
|
</Match>
|
|
<Match>
|
|
<!-- till #910 -->
|
|
<Package name="~com\.puppycrawl\.tools\.checkstyle.*" />
|
|
<Bug pattern="EQ_DOESNT_OVERRIDE_EQUALS" />
|
|
</Match>
|
|
<Match>
|
|
<!-- till #909 -->
|
|
<Class name="com.puppycrawl.tools.checkstyle.api.AuditEvent" />
|
|
<Bug pattern="SE_TRANSIENT_FIELD_NOT_RESTORED" />
|
|
</Match>
|
|
<Match>
|
|
<!-- till #596 -->
|
|
<Class name="com.puppycrawl.tools.checkstyle.Main" />
|
|
<Bug pattern="NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE" />
|
|
</Match>
|
|
<Match>
|
|
<!-- till #766 -->
|
|
<Class name="com.puppycrawl.tools.checkstyle.checks.indentation.LineWrappingHandler" />
|
|
<Bug pattern="RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE" />
|
|
</Match>
|
|
<Match>
|
|
<!-- till #922 -->
|
|
<Class name="com.puppycrawl.tools.checkstyle.Checker" />
|
|
<Method name="setClassloader" />
|
|
<Bug pattern="NM_CONFUSING" />
|
|
</Match>
|
|
<Match>
|
|
<!-- till #596 -->
|
|
<Class name="com.puppycrawl.tools.checkstyle.Main" />
|
|
<Bug pattern="DM_EXIT" />
|
|
</Match>
|
|
<Match>
|
|
<!-- till #923 -->
|
|
<Class name="com.puppycrawl.tools.checkstyle.api.TokenTypes" />
|
|
<Bug pattern="DM_EXIT" />
|
|
</Match>
|
|
<Match>
|
|
<!-- till #896 -->
|
|
<Or>
|
|
<Class name="com.puppycrawl.tools.checkstyle.api.Scope" />
|
|
<Class name="com.puppycrawl.tools.checkstyle.api.SeverityLevel" />
|
|
<Class name="com.puppycrawl.tools.checkstyle.checks.AbstractOptionCheck" />
|
|
<Class name="com.puppycrawl.tools.checkstyle.checks.NewlineAtEndOfFileCheck" />
|
|
<Class name="com.puppycrawl.tools.checkstyle.checks.SuppressWarningsHolder" />
|
|
<Class name="com.puppycrawl.tools.checkstyle.checks.annotation.AnnotationUseStyleCheck" />
|
|
<Class name="com.puppycrawl.tools.checkstyle.checks.coding.HiddenFieldCheck" />
|
|
<Class name="com.puppycrawl.tools.checkstyle.checks.javadoc.JavadocStyleCheck" />
|
|
</Or>
|
|
<Bug pattern="DM_CONVERT_CASE" />
|
|
</Match>
|
|
<Match>
|
|
<!-- have never been a case for years, Eclipse does not show any other classes inherited from CommonASTWithHiddenTokens -->
|
|
<Class name="com.puppycrawl.tools.checkstyle.api.DetailAST" />
|
|
<Bug pattern="BC_UNCONFIRMED_CAST" />
|
|
</Match>
|
|
<Match>
|
|
<!-- false positive, beginTree is a kind of constructor for Checks -->
|
|
<Or>
|
|
<Class name="com.puppycrawl.tools.checkstyle.checks.DeclarationCollector" />
|
|
<Class name="com.puppycrawl.tools.checkstyle.checks.OuterTypeFilenameCheck" />
|
|
<Class name="com.puppycrawl.tools.checkstyle.checks.RegexpCheck" />
|
|
<!-- createJavadocNode is private and can not be launched without visitToken-->
|
|
<Class name="com.puppycrawl.tools.checkstyle.checks.javadoc.AbstractJavadocCheck" />
|
|
<!-- has only one public method and all nitialized inthat method-->
|
|
<Class name="com.puppycrawl.tools.checkstyle.checks.regexp.MultilineDetector" />
|
|
<!-- beginProcessing() is kind of c-tor -->
|
|
<Class name="com.puppycrawl.tools.checkstyle.checks.regexp.RegexpMultilineCheck" />
|
|
<Class name="com.puppycrawl.tools.checkstyle.checks.regexp.RegexpSinglelineCheck" />
|
|
</Or>
|
|
<Bug pattern="UWF_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR" />
|
|
</Match>
|
|
</FindBugsFilter>
|