public
Description: Code smell detector for Ruby
Home | Edit | New

Class Variable

Class variables form part of the global runtime state, and as such make it easy for one part of the system to accidentally or inadvertently depend on another part of the system. So the system becomes more prone to problems where changing something over here breaks something over there. In particular, class variables can make it hard to set up tests (because the context of the test includes all global state).

Configuration

Class Variable supports only the Basic Smell Options. The file config/defaults.reek (shipped with the Reek gem) lists the default configuration settings for this smell detector.

Last edited by kevinrutherford, Wed Sep 23 03:51:42 -0700 2009
Home | Edit | New
Versions: