HHH-13685 Move Suppression*CommentFilter to its new place in checkstyle config
See https://stackoverflow.com/a/55266521/6692043
This commit is contained in:
parent
9722cf0fd6
commit
b301162660
|
@ -147,25 +147,6 @@
|
||||||
<property name="severity" value="warning" />
|
<property name="severity" value="warning" />
|
||||||
</module>
|
</module>
|
||||||
|
|
||||||
</module>
|
|
||||||
|
|
||||||
<module name="JavadocPackage">
|
|
||||||
<property name="allowLegacy" value="true" />
|
|
||||||
<property name="severity" value="warning" />
|
|
||||||
</module>
|
|
||||||
|
|
||||||
|
|
||||||
<!--
|
|
||||||
Used to collect "todo" comments into a single location
|
|
||||||
-->
|
|
||||||
<module name="TreeWalker">
|
|
||||||
<module name="TodoComment">
|
|
||||||
<property name="format" value="[Tt][Oo][Dd][Oo]"/>
|
|
||||||
<property name="severity" value="info" />
|
|
||||||
</module>
|
|
||||||
</module>
|
|
||||||
|
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
Source code comment-based suppressions
|
Source code comment-based suppressions
|
||||||
-->
|
-->
|
||||||
|
@ -185,3 +166,21 @@
|
||||||
<property name="influenceFormat" value="1"/>
|
<property name="influenceFormat" value="1"/>
|
||||||
</module>
|
</module>
|
||||||
</module>
|
</module>
|
||||||
|
|
||||||
|
<module name="JavadocPackage">
|
||||||
|
<property name="allowLegacy" value="true" />
|
||||||
|
<property name="severity" value="warning" />
|
||||||
|
</module>
|
||||||
|
|
||||||
|
|
||||||
|
<!--
|
||||||
|
Used to collect "todo" comments into a single location
|
||||||
|
-->
|
||||||
|
<module name="TreeWalker">
|
||||||
|
<module name="TodoComment">
|
||||||
|
<property name="format" value="[Tt][Oo][Dd][Oo]"/>
|
||||||
|
<property name="severity" value="info" />
|
||||||
|
</module>
|
||||||
|
</module>
|
||||||
|
|
||||||
|
</module>
|
||||||
|
|
|
@ -61,23 +61,6 @@
|
||||||
<property name="illegalPkgs" value="java.awt, sun, org.slf4j"/>
|
<property name="illegalPkgs" value="java.awt, sun, org.slf4j"/>
|
||||||
</module>
|
</module>
|
||||||
|
|
||||||
</module>
|
|
||||||
|
|
||||||
<!-- We are not using NewLineAtEndOfFile because the new line chars change
|
|
||||||
on different operating systems and that rule allows only one type. This rule
|
|
||||||
is not actually checking for new lines, but it will work if we check that
|
|
||||||
there are not white spaces at the end of a line with another rule. -->
|
|
||||||
<module name="RegexpMultiline">
|
|
||||||
<property name="format" value="\S\z" />
|
|
||||||
<property name="message" value="Missing new line at the end of file" />
|
|
||||||
</module>
|
|
||||||
|
|
||||||
<module name="RegexpMultiline">
|
|
||||||
<property name="format" value="\S(r?\n){5,}\z" />
|
|
||||||
<property name="message" value="Files should end with no more than 5 (empty) new lines" />
|
|
||||||
</module>
|
|
||||||
|
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
Source code comment-based suppressions
|
Source code comment-based suppressions
|
||||||
-->
|
-->
|
||||||
|
@ -97,3 +80,19 @@
|
||||||
<property name="influenceFormat" value="1"/>
|
<property name="influenceFormat" value="1"/>
|
||||||
</module>
|
</module>
|
||||||
</module>
|
</module>
|
||||||
|
|
||||||
|
<!-- We are not using NewLineAtEndOfFile because the new line chars change
|
||||||
|
on different operating systems and that rule allows only one type. This rule
|
||||||
|
is not actually checking for new lines, but it will work if we check that
|
||||||
|
there are not white spaces at the end of a line with another rule. -->
|
||||||
|
<module name="RegexpMultiline">
|
||||||
|
<property name="format" value="\S\z" />
|
||||||
|
<property name="message" value="Missing new line at the end of file" />
|
||||||
|
</module>
|
||||||
|
|
||||||
|
<module name="RegexpMultiline">
|
||||||
|
<property name="format" value="\S(r?\n){5,}\z" />
|
||||||
|
<property name="message" value="Files should end with no more than 5 (empty) new lines" />
|
||||||
|
</module>
|
||||||
|
|
||||||
|
</module>
|
||||||
|
|
Loading…
Reference in New Issue