commit 53235328ae2407e176921265217a932479c0d463
Author: iwakeh <[email protected]>
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>



_______________________________________________
tor-commits mailing list
[email protected]
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits

Reply via email to