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
Post a Comment