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.Complexity Parent Index
Sibling aspects ClassSmell MethodSmell Naming

Complexity

Complexity of a code based on different complexity metrics.

Subaspects

Example

* McCabe's complexity
* Halstead complexity
* Elshof complexity
* Data complexity
etc...

Here is an example of complex code:
https://github.com/sympy/sympy/blob/master/sympy/solvers/solvers.py

Importance

Complex programs are difficult to read and maintain. Reducing a code's complexity improves its organization.

How to fix this

Implementing simple methods, avoiding too many branches, avoiding too much multilevel inheritance etc... can fix this.