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.ClassInstanceVariables Parent Index
Sibling aspects ClassConstants ClassLength ClassMethods

ClassInstanceVariables

Number of instance variables in a class.

Tastes

Taste Meaning Values
max_instance_variables Represents the max number of instance variables for a class 3

* bold denotes default value

Subaspects

This aspect does not have any sub aspects.

Example

Importance

Refactoring these classes spares developers from the need to remember a large number of attributes.

How to fix this

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