Inspectopedia
 
2024.3

Class variable usage

Warning
New
Last modified: 03 December 2024

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'