Add Checkstyle check for unused imports

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot
2023-12-17 10:26:49 +11:00
parent 90ab7d39e5
commit 8c7156ce51
19 changed files with 2 additions and 46 deletions

View File

@@ -23,7 +23,7 @@
<!-- See http://checkstyle.sourceforge.net/config_filters.html -->
<module name="SuppressionSingleFilter">
<property name="checks" value="UnusedImports"/>
<property name="files" value=".*[/\\]net[/\\]minecraft[/\\]server[/\\].*"/>
<property name="files" value=".*[/\\]net[/\\]minecraft[/\\].*"/>
</module>
<module name="TreeWalker">
@@ -58,7 +58,7 @@
<property name="sortStaticImportsAlphabetically" value="true"/>
</module>
<module name="RedundantImport"/>
<!--<module name="UnusedImports"/>-->
<module name="UnusedImports"/>
<!-- See https://checkstyle.org/config_whitespace.html -->
<module name="GenericWhitespace"/>