Width of Inheritance Tree too large for class
CachéQuality release
Id
M0003
Rule type
Severity
Major
Major
SQALE characteristic
- Reusability
- Reusability Compliance
Remediation function
Constant/issue
Remediation cost
2d
This check computes the Width of Inheritance Tree, that is the number of leaves in the dependency tree.
For instance, for a class named MyClass, let's suppose that we have:
- MyClass inherits classes Class1 and Class2;
- Class1 inherits classes Base1 and Base2.
Then the width of inheritance tree of MyClass is 3.