Inspectopedia Help

Overly nested method

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.

Inspection options

Option

Type

Default

Maximum nesting depth

Number

5

Inspection Details

Available in:

IntelliJ IDEA 2023.3, Qodana for JVM 2023.3

Plugin:

Groovy, 233.SNAPSHOT

Last modified: 13 July 2023