mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-29 04:17:44 +01:00
#730: Added a checkstyle rule to check for missing package declarations.
Added a suppression to ignore the test sources. By: blablubbabc <lukas@wirsindwir.de>
This commit is contained in:
parent
9d127bc843
commit
0f857065bd
9
paper-api/checkstyle-suppressions.xml
Normal file
9
paper-api/checkstyle-suppressions.xml
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
<?xml version="1.0"?>
|
||||||
|
<!DOCTYPE suppressions PUBLIC
|
||||||
|
"-//Checkstyle//DTD SuppressionFilter Configuration 1.2//EN"
|
||||||
|
"https://checkstyle.org/dtds/suppressions_1_2.dtd">
|
||||||
|
|
||||||
|
<suppressions>
|
||||||
|
<!-- Don't check for missing package declarations in tests-->
|
||||||
|
<suppress checks="JavadocPackage" files=".*[\\/]src[\\/]test[\\/].*\.java$"/>
|
||||||
|
</suppressions>
|
@ -20,6 +20,9 @@
|
|||||||
<property name="message" value="Line has trailing spaces."/>
|
<property name="message" value="Line has trailing spaces."/>
|
||||||
</module>
|
</module>
|
||||||
|
|
||||||
|
<!-- See https://checkstyle.sourceforge.io/config_javadoc.html#JavadocPackage-->
|
||||||
|
<module name="JavadocPackage"/>
|
||||||
|
|
||||||
<module name="TreeWalker">
|
<module name="TreeWalker">
|
||||||
<!-- See https://checkstyle.org/config_javadoc.html -->
|
<!-- See https://checkstyle.org/config_javadoc.html -->
|
||||||
<module name="AtclauseOrder"/>
|
<module name="AtclauseOrder"/>
|
||||||
|
@ -217,6 +217,7 @@
|
|||||||
</executions>
|
</executions>
|
||||||
<configuration>
|
<configuration>
|
||||||
<configLocation>checkstyle.xml</configLocation>
|
<configLocation>checkstyle.xml</configLocation>
|
||||||
|
<suppressionsLocation>checkstyle-suppressions.xml</suppressionsLocation>
|
||||||
<includeTestSourceDirectory>true</includeTestSourceDirectory>
|
<includeTestSourceDirectory>true</includeTestSourceDirectory>
|
||||||
</configuration>
|
</configuration>
|
||||||
<dependencies>
|
<dependencies>
|
||||||
|
Loading…
Reference in New Issue
Block a user