Back to Intellij Community

GroovyOverlyNestedMethod

plugins/groovy/groovy-psi/resources/inspectionDescriptions/GroovyOverlyNestedMethod.html

2025.3-rc-2275 B
Original Source

Reports methods whose bodies are too deeply nested.

Methods with too much statement nesting may be confusing, and are a good sign that refactoring may be necessary.

Use the Maximum nesting depth field to specify the maximum acceptable nesting depth a method might have.