-
Notifications
You must be signed in to change notification settings - Fork 4
Gendarme.Rules.Maintainability.AvoidLackOfCohesionOfMethodsRule(git)
Assembly: Gendarme.Rules.Maintainability
Version: git
This rule checks every type for lack of cohesion between the fields and the methods. Low cohesion is often a sign that a type is doing too many, different and unrelated things. The cohesion score is given for each defect (higher is better). Automatic properties (e.g. available in C# 3) are considered as fields since their 'backing field' cannot be directly used and the getter/setter is only used to update a single field.
- This rule is available since Gendarme 2.0
Some elements of this rule can be customized to better fit your needs.
Defects with cohesion values greater than this will be reported at low severity.
Defects with cohesion values greater than (but less than LowSeverityLowerLimit) this will be reported at medium severity.
The minimum number of fields a class must have to be checked.
The minimum number of methods a class must have to be checked.
Cohesion values lower than this will result in a defect.
You can browse the latest source code of this rule on github.com
Note that this page was autogenerated (3/17/2011 1:55:44 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!