Inspectopedia Help

Class variable usage

Reports the use of class variables. Class variables form a part of the global runtime state and make it easy to create hidden dependencies accidentally. This can make the system error-prone, and it is recommended to avoid using class variables.

Inspired by 'Reek Code Smells'

Inspection Details

Available in:

Qodana for Ruby 2023.3, RubyMine 2023.3


Ruby, 233.SNAPSHOT

Last modified: 13 July 2023