Add Checkstyle rule to check for unused imports

This commit is contained in:
Herbert Reiter 2020-12-14 23:07:44 +01:00
parent 63306ee95c
commit 3e56e1bd64
2 changed files with 2 additions and 0 deletions

View File

@ -34,6 +34,7 @@
<property name="ignorePattern" value="^package.*|^import.*|a href|href|http://|https://|ftp://"/> <property name="ignorePattern" value="^package.*|^import.*|a href|href|http://|https://|ftp://"/>
</module> </module>
<module name="AvoidStarImport"/> <module name="AvoidStarImport"/>
<module name="UnusedImports"/>
<module name="OneTopLevelClass"/> <module name="OneTopLevelClass"/>
<module name="NoLineWrap"/> <module name="NoLineWrap"/>
<module name="EmptyBlock"> <module name="EmptyBlock">

View File

@ -26,6 +26,7 @@
<property name="allowNonPrintableEscapes" value="true"/> <property name="allowNonPrintableEscapes" value="true"/>
</module> </module>
<module name="AvoidStarImport"/> <module name="AvoidStarImport"/>
<module name="UnusedImports"/>
<module name="OneTopLevelClass"/> <module name="OneTopLevelClass"/>
<module name="NoLineWrap"/> <module name="NoLineWrap"/>
<module name="EmptyBlock"> <module name="EmptyBlock">