Skip to content

Gendarme.Rules.Maintainability.AvoidDeepInheritanceTreeRule(2.10)

Sebastien Pouliot edited this page Jan 22, 2011 · 2 revisions

AvoidDeepInheritanceTreeRule

Assembly: Gendarme.Rules.Maintainability
Version: 2.10

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.

Clone this wiki locally