-
Notifications
You must be signed in to change notification settings - Fork 4
Gendarme.Rules.Maintainability.AvoidComplexMethodsRule(2.10)
Assembly: Gendarme.Rules.Maintainability
Version: 2.10
This rule computes the cyclomatic complexity (CC) for every method and reports any method with a CC over 25 (this limit is configurable). Large CC value often indicate complex code that is hard to understand and maintain. It's likely that breaking the method into several methods will help readability. This rule won't report any defects on code generated by the compiler or by tools.
- This rule is available since Gendarme 2.0
Some elements of this rule can be customized to better fit your needs.
Methods with cyclomatic complexity less than this (but higher than MediumThreshold) will be reported as high severity.
Methods with cyclomatic complexity less than this will be reported as low severity.
Methods with cyclomatic complexity less than this (but higher than LowThreshold) will be reported as medium severity.
The cyclomatic complexity at which defects begin to be reported.
Note that this page was autogenerated (3/17/2011 9:31:58 PM) based on the xmldoc
comments inside the rules source code and cannot be edited from this wiki.
Please report any documentation errors, typos or suggestions to the
Gendarme Mailing List. Thanks!