Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
Root.Smell.ClassSmell.ClassSize.ClassLength Parent Index
Sibling aspects ClassConstants ClassInstanceVariables ClassMethods

ClassLength

Number of lines of code in class' definition.

Tastes

Taste Meaning Values
max_class_length Represents the max number of lines for a class's definition. 900, 999

* bold denotes default value

Subaspects

This aspect does not have any sub aspects.

Example

Importance

Too large classes are difficult to read and maintain, and can easily introduce bugs or duplication in our code base.

How to fix this

Usually splitting up those classes into other classes solves the problem.