Skip to content

Latest commit

 

History

History
50 lines (36 loc) · 1.65 KB

README.rst

File metadata and controls

50 lines (36 loc) · 1.65 KB
Root.Smell.ClassSmell Parent Index
Sibling aspects Complexity MethodSmell Naming

ClassSmell

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.

Subaspects

Example

* Too large classes
* Data clump
* Feature envy
etc ...

Importance

These classes should be refactored for better readability and maintainability of your source code.

How to fix this

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