Skip to content

Gendarme.Rules.Maintainability.AvoidDeepInheritanceTreeRule(git)

Sebastien Pouliot edited this page Mar 2, 2011 · 1 revision

AvoidDeepInheritanceTreeRule

Assembly: Gendarme.Rules.Maintainability
Version: git

Description

This rule will fire if a type has (by default) more than four base classes defined within the assembly set being analyzed. Optionally it will also count base classes defined outside the assembly set being analyzed.

Examples

Notes

  • This rule is available since Gendarme 2.0

Configuration

Some elements of this rule can be customized to better fit your needs.

CountExternalDepth

If true the rule will count base classes defined outside the assemblies being analyzed.

MaximumDepth

Classes with more base classes than this will result in a defect.

Source code

You can browse the latest source code of this rule on github.com

Clone this wiki locally