Add more suppressions rules to checkstyle and findbugs.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1436903 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
858899c92f
commit
2f58e684dc
|
@ -6,4 +6,10 @@
|
|||
<suppress checks="FallThrough" files="Flat3Map.java" />
|
||||
<suppress checks="MissingSwitchDefault" files="Flat3Map.java" />
|
||||
|
||||
<!-- Ignore missing javadoc for Get/Put interfaces, they refer to java.util.Map -->
|
||||
<suppress checks="JavadocMethod" files="Get.java" />
|
||||
<suppress checks="JavadocMethod" files="Put.java" />
|
||||
|
||||
<!-- Ignore missing javadoc param for unsupported method -->
|
||||
<suppress checks="JavadocMethod" files="FilterListIterator.java" lines="116,166" />
|
||||
</suppressions>
|
||||
|
|
|
@ -19,6 +19,10 @@
|
|||
<property name="localeLanguage" value="en" />
|
||||
<property name="severity" value="warning" />
|
||||
|
||||
<module name="SuppressionFilter">
|
||||
<property name="file" value="${checkstyle.suppressions.file}"/>
|
||||
</module>
|
||||
|
||||
<module name="JavadocPackage">
|
||||
<property name="allowLegacy" value="true" />
|
||||
</module>
|
||||
|
|
|
@ -30,10 +30,13 @@
|
|||
<Bug pattern="NP_BOOLEAN_RETURN_NULL" />
|
||||
</Match>
|
||||
|
||||
<!-- Flat3Map and its inner classes use intentional switch fall-through. The missing
|
||||
default clause is safe and omitted for better readibility. -->
|
||||
<!-- Flat3Map and its inner classes use intentional switch fall-through. The missing -->
|
||||
<!-- default clause is safe and omitted for better readability. -->
|
||||
<Match>
|
||||
<Class name="~org.apache.commons.collections.map.Flat3Map.*" />
|
||||
<Or>
|
||||
<Class name="~.*\.Flat3Map$" />
|
||||
<Class name="~.*\.Flat3Map\$\w+Iterator$" />
|
||||
</Or>
|
||||
<Or>
|
||||
<Bug pattern="SF_SWITCH_FALLTHROUGH" />
|
||||
<Bug pattern="SF_SWITCH_NO_DEFAULT" />
|
||||
|
|
Loading…
Reference in New Issue