Inspectopedia Help

Overly long method

Reports methods that are too long.

Methods that are too long may be confusing, and are a good sign that refactoring is necessary.

Use the Maximum statements per method field to specify the maximum acceptable number of non-comment source statements a method might have.

Inspection options

Here you can find the description of settings available for the Overly long method inspection, and the reference of their default values.

Maximum statements per method


Inspection Details

By default bundled with:

IntelliJ IDEA 2024.1, Qodana for JVM 2024.1,

Can be installed with plugin:

Groovy, 241.16690

Last modified: 29 April 2024