I have the following modules set in my checkstyle.xml under the TreeWalker module
<module name="NestedIfDepth">
<property name="max" value="3" />
</module>
<module name="NestedTryDepth">
<property name="max" value="3" />
</module>
But if i say write more than 3 nested IF statements it does not throw a checkstyle error during my maven install
The Checkstyle plugin is configured in the POM as follows:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<version>2.8</version>
</plugin>