0

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?

halfer
  • 19,824
  • 17
  • 99
  • 186
Sun
  • 3,444
  • 7
  • 53
  • 83

1 Answers1

0

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').

micha
  • 47,774
  • 16
  • 73
  • 80