summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorHerbert Reiter <46045854+damoasda@users.noreply.github.com>2020-12-14 23:07:44 +0100
committerHerbert Reiter <46045854+damoasda@users.noreply.github.com>2020-12-14 23:07:44 +0100
commit3e56e1bd64b781556cf3042419e9b754ef62c471 (patch)
treefefbd2b4c7b5c3ced8f5d8d3910b8ade9ec9f950 /config
parent63306ee95c7c4b6d0af232f7fba0e456bebc52df (diff)
downloadAntennaPod-3e56e1bd64b781556cf3042419e9b754ef62c471.zip
Add Checkstyle rule to check for unused imports
Diffstat (limited to 'config')
-rw-r--r--config/checkstyle/checkstyle-new-code.xml1
-rw-r--r--config/checkstyle/checkstyle.xml1
2 files changed, 2 insertions, 0 deletions
diff --git a/config/checkstyle/checkstyle-new-code.xml b/config/checkstyle/checkstyle-new-code.xml
index cb2129a60..3bb35f2cc 100644
--- a/config/checkstyle/checkstyle-new-code.xml
+++ b/config/checkstyle/checkstyle-new-code.xml
@@ -34,6 +34,7 @@
<property name="ignorePattern" value="^package.*|^import.*|a href|href|http://|https://|ftp://"/>
</module>
<module name="AvoidStarImport"/>
+ <module name="UnusedImports"/>
<module name="OneTopLevelClass"/>
<module name="NoLineWrap"/>
<module name="EmptyBlock">
diff --git a/config/checkstyle/checkstyle.xml b/config/checkstyle/checkstyle.xml
index d36c1585a..e23962381 100644
--- a/config/checkstyle/checkstyle.xml
+++ b/config/checkstyle/checkstyle.xml
@@ -26,6 +26,7 @@
<property name="allowNonPrintableEscapes" value="true"/>
</module>
<module name="AvoidStarImport"/>
+ <module name="UnusedImports"/>
<module name="OneTopLevelClass"/>
<module name="NoLineWrap"/>
<module name="EmptyBlock">