Maven Checkstyle not working -


i have following modules set in checkstyle.xml under treewalker module

<module name="nestedifdepth">   <property name="max" value="3" /> </module> <module name="nestedtrydepth">   <property name="max" value="3" /> </module> 

but if write more 3 nested if statements not throw checkstyle error during maven install

the checkstyle plugin configured in pom follows:

<plugin>   <groupid>org.apache.maven.plugins</groupid>   <artifactid>maven-checkstyle-plugin</artifactid>   <version>2.8</version> </plugin> 

when using maven checkstyle plugin custom checks, plugin needs configured location of custom checkstyle checker configuration:

<plugin>   <groupid>org.apache.maven.plugins</groupid>   <artifactid>maven-checkstyle-plugin</artifactid>   <version>2.8</version>   <configuration>     <configlocation>[filename custom checkstyle config file]</configlocation>   </configuration> </plugin> 

Comments

Popular posts from this blog

python - Operations inside variables -

Generic Map Parameter java -

arrays - What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it? -