[tor-commits] [collector/master] Make checkstyle complain about unused imports.

karsten at torproject.org karsten at torproject.org
Mon Oct 24 13:06:09 UTC 2016


commit 53235328ae2407e176921265217a932479c0d463
Author: iwakeh <iwakeh at torproject.org>
Date:   Tue Oct 18 15:04:58 2016 +0200

    Make checkstyle complain about unused imports.
---
 src/test/resources/metrics_checks.xml | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/test/resources/metrics_checks.xml b/src/test/resources/metrics_checks.xml
index 2df2f2a..918e6c5 100644
--- a/src/test/resources/metrics_checks.xml
+++ b/src/test/resources/metrics_checks.xml
@@ -16,6 +16,8 @@
 
      - Enabled suppression of warnings using annotations.
 
+     - Added a check for unused imports [UnusedImports].
+
     Checkstyle is very configurable. Be sure to read the documentation at
     http://checkstyle.sf.net (or in your downloaded distribution).
 
@@ -61,6 +63,7 @@
             <property name="tokens" value="LITERAL_TRY, LITERAL_FINALLY, LITERAL_IF, LITERAL_ELSE, LITERAL_SWITCH"/>
         </module>
         <module name="NeedBraces"/>
+        <module name="UnusedImports"/>
         <module name="LeftCurly">
             <property name="maxLineLength" value="100"/>
         </module>





More information about the tor-commits mailing list