[tor-commits] [onionoo/master] Also apply checkstyle to test sources.

karsten at torproject.org karsten at torproject.org
Tue Nov 15 20:16:12 UTC 2016


commit de259636356aff94759c911a815cceb5fcafc28e
Author: iwakeh <iwakeh at torproject.org>
Date:   Tue Nov 15 11:38:57 2016 +0100

    Also apply checkstyle to test sources.
---
 build.xml | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/build.xml b/build.xml
index 1105c53..935b1b1 100644
--- a/build.xml
+++ b/build.xml
@@ -174,10 +174,12 @@
   <taskdef resource="com/puppycrawl/tools/checkstyle/ant/checkstyle-ant-task.properties">
     <classpath refid="checkstyle.classpath" />
   </taskdef>
-  <target name="checks" depends="compile">
+  <target name="checks" depends="compile,compile-tests">
     <checkstyle config="${testresources}/metrics_checks.xml">
       <fileset dir="${javasources}"
                includes="**/*.java" />
+      <fileset dir="${testsources}"
+               includes="**/*.java" />
       <classpath>
         <path refid="classpath" />
         <path refid="checkstyle.classpath" />





More information about the tor-commits mailing list