Class/module with too many instance variables
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'
Inspection options
Option | Type | Default |
---|---|---|
Number of instance variables | Number | 9 |
Inspection Details | |
---|---|
Available in: | Qodana for Ruby 2023.3, RubyMine 2023.3 |
Plugin: | Ruby, 233.SNAPSHOT |
Last modified: 13 July 2023