Inspectopedia
 
2024.3

Class/module with too many instance variables

Warning
New
Last modified: 03 December 2024

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

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

Inspired by 'Reek Code Smells'