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
42f3948ce5
commit
bb93bc839f
|
@ -147,25 +147,6 @@
|
|||
<property name="severity" value="warning" />
|
||||
</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
|
||||
-->
|
||||
|
@ -184,4 +165,22 @@
|
|||
<property name="checkFormat" value="EmptyStatement"/>
|
||||
<property name="influenceFormat" value="1"/>
|
||||
</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"/>
|
||||
</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
|
||||
-->
|
||||
|
@ -96,4 +79,20 @@
|
|||
<property name="checkFormat" value="EmptyStatement"/>
|
||||
<property name="influenceFormat" value="1"/>
|
||||
</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