mirror of
https://hub.spigotmc.org/stash/scm/spigot/bukkit.git
synced 2025-04-13 09:41:09 +00:00
#730: Added a checkstyle rule to check for missing package declarations.
Added a suppression to ignore the test sources.
This commit is contained in:
parent
97157b12b0
commit
abbc5c550d
3 changed files with 13 additions and 0 deletions
9
checkstyle-suppressions.xml
Normal file
9
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."/>
|
||||
</module>
|
||||
|
||||
<!-- See https://checkstyle.sourceforge.io/config_javadoc.html#JavadocPackage-->
|
||||
<module name="JavadocPackage"/>
|
||||
|
||||
<module name="TreeWalker">
|
||||
<!-- See https://checkstyle.org/config_javadoc.html -->
|
||||
<module name="AtclauseOrder"/>
|
||||
|
|
1
pom.xml
1
pom.xml
|
@ -217,6 +217,7 @@
|
|||
</executions>
|
||||
<configuration>
|
||||
<configLocation>checkstyle.xml</configLocation>
|
||||
<suppressionsLocation>checkstyle-suppressions.xml</suppressionsLocation>
|
||||
<includeTestSourceDirectory>true</includeTestSourceDirectory>
|
||||
</configuration>
|
||||
<dependencies>
|
||||
|
|
Loading…
Add table
Reference in a new issue