Inspectopedia Help

Overly complex method

Reports methods that have too high a cyclomatic complexity.

Cyclomatic complexity is basically a measurement of the number of branching points in a method. Methods with too high a cyclomatic complexity may be confusing and difficult to test.

Use the Method complexity limit field to specify the maximum acceptable cyclomatic complexity a method might have.

Inspection options

Option

Type

Default

Method complexity limit

Number

10

Inspection Details

Available in:

IntelliJ IDEA 2023.3, Qodana for JVM 2023.3

Plugin:

Groovy, 233.SNAPSHOT

Last modified: 13 July 2023