Root.Smell.ClassSmell |
Parent | Index |
Sibling aspects | Complexity | MethodSmell | Naming |
This aspect detects code smells or bad smells related to classes' definitions in your codebase.
Class-level code smells indicate poorly defined classes (including too large classes or God object, data clump feature envy etc...) in your source code.
* Too large classes
* Data clump
* Feature envy
etc ...
These classes should be refactored for better readability and maintainability of your source code.
When a class is wearing too many (functional) hats (too large classes), you should probably think about splitting it up:
- Extract class
- Extract subclass
- Extract interface