Width of Inheritance Tree too large for class
- Reusability Compliance
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.
Maximum allowed width of inheritance tree