Inspectopedia Help

Class/module with too many methods

Reports classes/modules with too many methods. This usually means they are trying to 'do too much', and may need to be refactored into multiple smaller components.

Use the Number of methods field to specify the maximum number of methods a class/module is allowed to have.

Use the Ignore test classes checkbox to ignore test classes.

Inspired by 'Reek Code Smells'

Inspection options

Option

Type

Default

Number of methods

Number

25

Ignore test classes

Checkbox

true

Inspection Details

Available in:

Qodana for Ruby 2023.3, RubyMine 2023.3

Plugin:

Ruby, 233.SNAPSHOT

Last modified: 13 July 2023