Print

Print


Author: [log in to unmask]
Date: Wed Mar  9 12:54:51 2016
New Revision: 4280

Log:
Add checkstyle config including checking for unused and redundant imports; exclude users module from all checks.

Modified:
    java/trunk/parent/pom.xml

Modified: java/trunk/parent/pom.xml
 =============================================================================
--- java/trunk/parent/pom.xml	(original)
+++ java/trunk/parent/pom.xml	Wed Mar  9 12:54:51 2016
@@ -483,14 +483,25 @@
                 <artifactId>maven-checkstyle-plugin</artifactId>
                 <version>2.17</version>
                 <configuration>
+                    <excludes>org/hps/users/**/*</excludes>
                     <logViolationsToConsole>true</logViolationsToConsole>
                     <consoleOutput>true</consoleOutput>
                     <includeResources>true</includeResources>
                     <includeTestResources>true</includeTestResources>
                     <checkstyleRules>
-                        <module name="Checker">a
+                        <module name="Checker">
                             <module name="FileTabCharacter">
-                                <property name="fileExtensions" value="java,xml,lcsim"/>
+                                <property name="fileExtensions" value="java,xml,lcsim,prop,properties"/>
+                            </module>
+                            <module name="TreeWalker">
+                                <module name="UnusedImports">
+                                    <property name="processJavadoc" value="false"/>
+                                </module>
+                                <module name="RedundantImport"/>
+                                <!--                                
+                                <module name="EmptyBlock"/>
+                                <module name="EmptyStatement"/>
+                                -->
                             </module>
                         </module>
                     </checkstyleRules>