Separate checkstyle-suppressions file is not required

By: md_5 <git@md-5.net>
This commit is contained in:
Bukkit/Spigot 2023-12-17 10:26:44 +11:00
parent 172c526a4b
commit b1ba1b1b8d
3 changed files with 5 additions and 10 deletions

View File

@ -1,9 +0,0 @@
<?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>

View File

@ -26,6 +26,11 @@
<module name="SuppressionSingleFilter">
<property name="message" value="'(implNote|implSpec|apiNote)'\."/>
</module>
<!-- Don't check for missing package-info in tests -->
<module name="SuppressionSingleFilter">
<property name="checks" value="JavadocPackage"/>
<property name="files" value=".*[\\/]src[\\/]test[\\/].*\.java$"/>
</module>
<module name="TreeWalker">
<!-- See https://checkstyle.org/config_javadoc.html -->

View File

@ -233,7 +233,6 @@
</executions>
<configuration>
<configLocation>checkstyle.xml</configLocation>
<suppressionsLocation>checkstyle-suppressions.xml</suppressionsLocation>
<includeTestSourceDirectory>true</includeTestSourceDirectory>
</configuration>
<dependencies>