I am doing some Static Code Analysis (SCA) on my Grails application.
I have to check 'Depth of conditional nesting', but I am not able to find any Grails plugins do that.
In CheckStyle (for Java projects (code)) there is NestedForDepth, NestedIfDepth and NestedTryDepth. But I am not able to found these in any of Grails SCA plugins.
How can I do this?
Maybe the GMetrics plugin can help you. It is based on the GMetrics groovy library.
I think you can't measure 'Depth of conditional nesting' directly with GMetrics. However, you can measure the cyclomatic complexity of methods (which somehow correlates with the 'Depth of conditional nesting').