<Type Name="AvoidLackOfCohesionOfMethodsRule" FullName="Gendarme.Rules.Maintainability.AvoidLackOfCohesionOfMethodsRule">
  <TypeSignature Language="C#" Value="public class AvoidLackOfCohesionOfMethodsRule : Gendarme.Framework.Rule, Gendarme.Framework.ITypeRule" />
  <TypeSignature Language="ILAsm" Value=".class public auto ansi beforefieldinit AvoidLackOfCohesionOfMethodsRule extends Gendarme.Framework.Rule implements class Gendarme.Framework.IRule, class Gendarme.Framework.ITypeRule" />
  <AssemblyInfo>
    <AssemblyName>Gendarme.Rules.Maintainability</AssemblyName>
    <AssemblyVersion>2.11.0.0</AssemblyVersion>
  </AssemblyInfo>
  <Base>
    <BaseTypeName>Gendarme.Framework.Rule</BaseTypeName>
  </Base>
  <Interfaces>
    <Interface>
      <InterfaceName>Gendarme.Framework.ITypeRule</InterfaceName>
    </Interface>
  </Interfaces>
  <Attributes>
    <Attribute>
      <AttributeName>Gendarme.Framework.Problem("The methods in this class lack cohesion (a higher score is better). This leads to code which is harder to understand and maintain.")</AttributeName>
    </Attribute>
    <Attribute>
      <AttributeName>Gendarme.Framework.Solution("You can apply the Extract Class or Extract Subclass refactoring.")</AttributeName>
    </Attribute>
  </Attributes>
  <Docs>
    <summary>
            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.
            </summary>
    <remarks>This rule is available since Gendarme 2.0</remarks>
  </Docs>
  <Members>
    <Member MemberName=".ctor">
      <MemberSignature Language="C#" Value="public AvoidLackOfCohesionOfMethodsRule ();" />
      <MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor() cil managed" />
      <MemberType>Constructor</MemberType>
      <AssemblyInfo>
        <AssemblyVersion>2.11.0.0</AssemblyVersion>
      </AssemblyInfo>
      <Parameters />
      <Docs>
        <summary>To be added.</summary>
        <remarks>To be added.</remarks>
      </Docs>
    </Member>
    <Member MemberName="CheckType">
      <MemberSignature Language="C#" Value="public Gendarme.Framework.RuleResult CheckType (Mono.Cecil.TypeDefinition type);" />
      <MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance valuetype Gendarme.Framework.RuleResult CheckType(class Mono.Cecil.TypeDefinition type) cil managed" />
      <MemberType>Method</MemberType>
      <AssemblyInfo>
        <AssemblyVersion>2.11.0.0</AssemblyVersion>
      </AssemblyInfo>
      <ReturnValue>
        <ReturnType>Gendarme.Framework.RuleResult</ReturnType>
      </ReturnValue>
      <Parameters>
        <Parameter Name="type" Type="Mono.Cecil.TypeDefinition" />
      </Parameters>
      <Docs>
        <param name="type">To be added.</param>
        <summary>To be added.</summary>
        <returns>To be added.</returns>
        <remarks>To be added.</remarks>
      </Docs>
    </Member>
    <Member MemberName="GetCohesivenessForType">
      <MemberSignature Language="C#" Value="public double GetCohesivenessForType (Mono.Cecil.TypeDefinition type);" />
      <MemberSignature Language="ILAsm" Value=".method public hidebysig instance float64 GetCohesivenessForType(class Mono.Cecil.TypeDefinition type) cil managed" />
      <MemberType>Method</MemberType>
      <AssemblyInfo>
        <AssemblyVersion>2.11.0.0</AssemblyVersion>
      </AssemblyInfo>
      <ReturnValue>
        <ReturnType>System.Double</ReturnType>
      </ReturnValue>
      <Parameters>
        <Parameter Name="type" Type="Mono.Cecil.TypeDefinition" />
      </Parameters>
      <Docs>
        <param name="type">To be added.</param>
        <summary>To be added.</summary>
        <returns>To be added.</returns>
        <remarks>To be added.</remarks>
      </Docs>
    </Member>
    <Member MemberName="LowSeverityLowerLimit">
      <MemberSignature Language="C#" Value="public double LowSeverityLowerLimit { get; set; }" />
      <MemberSignature Language="ILAsm" Value=".property instance float64 LowSeverityLowerLimit" />
      <MemberType>Property</MemberType>
      <AssemblyInfo>
        <AssemblyVersion>2.11.0.0</AssemblyVersion>
      </AssemblyInfo>
      <Attributes>
        <Attribute>
          <AttributeName>System.ComponentModel.DefaultValue(0.4)</AttributeName>
        </Attribute>
        <Attribute>
          <AttributeName>System.ComponentModel.Description("Defects with cohesion values greater than this will be reported at low severity.")</AttributeName>
        </Attribute>
      </Attributes>
      <ReturnValue>
        <ReturnType>System.Double</ReturnType>
      </ReturnValue>
      <Docs>
        <summary>Defects with cohesion values greater than this will be reported at low severity.</summary>
        <value>To be added.</value>
        <remarks>Defaults to 0.4.</remarks>
      </Docs>
    </Member>
    <Member MemberName="MediumSeverityLowerLimit">
      <MemberSignature Language="C#" Value="public double MediumSeverityLowerLimit { get; set; }" />
      <MemberSignature Language="ILAsm" Value=".property instance float64 MediumSeverityLowerLimit" />
      <MemberType>Property</MemberType>
      <AssemblyInfo>
        <AssemblyVersion>2.11.0.0</AssemblyVersion>
      </AssemblyInfo>
      <Attributes>
        <Attribute>
          <AttributeName>System.ComponentModel.DefaultValue(0.2)</AttributeName>
        </Attribute>
        <Attribute>
          <AttributeName>System.ComponentModel.Description("Defects with cohesion values greater than (but less than LowSeverityLowerLimit) this will be reported at medium severity.")</AttributeName>
        </Attribute>
      </Attributes>
      <ReturnValue>
        <ReturnType>System.Double</ReturnType>
      </ReturnValue>
      <Docs>
        <summary>Defects with cohesion values greater than (but less than LowSeverityLowerLimit) this will be reported at medium severity.</summary>
        <value>To be added.</value>
        <remarks>Defaults to 0.2.</remarks>
      </Docs>
    </Member>
    <Member MemberName="MinimumFieldCount">
      <MemberSignature Language="C#" Value="public int MinimumFieldCount { get; set; }" />
      <MemberSignature Language="ILAsm" Value=".property instance int32 MinimumFieldCount" />
      <MemberType>Property</MemberType>
      <AssemblyInfo>
        <AssemblyVersion>2.11.0.0</AssemblyVersion>
      </AssemblyInfo>
      <Attributes>
        <Attribute>
          <AttributeName>System.ComponentModel.DefaultValue(1)</AttributeName>
        </Attribute>
        <Attribute>
          <AttributeName>System.ComponentModel.Description("The minimum number of fields a class must have to be checked.")</AttributeName>
        </Attribute>
      </Attributes>
      <ReturnValue>
        <ReturnType>System.Int32</ReturnType>
      </ReturnValue>
      <Docs>
        <summary>The minimum number of fields a class must have to be checked.</summary>
        <value>To be added.</value>
        <remarks>Defaults to 1.</remarks>
      </Docs>
    </Member>
    <Member MemberName="MinimumMethodCount">
      <MemberSignature Language="C#" Value="public int MinimumMethodCount { get; set; }" />
      <MemberSignature Language="ILAsm" Value=".property instance int32 MinimumMethodCount" />
      <MemberType>Property</MemberType>
      <AssemblyInfo>
        <AssemblyVersion>2.11.0.0</AssemblyVersion>
      </AssemblyInfo>
      <Attributes>
        <Attribute>
          <AttributeName>System.ComponentModel.DefaultValue(2)</AttributeName>
        </Attribute>
        <Attribute>
          <AttributeName>System.ComponentModel.Description("The minimum number of methods a class must have to be checked.")</AttributeName>
        </Attribute>
      </Attributes>
      <ReturnValue>
        <ReturnType>System.Int32</ReturnType>
      </ReturnValue>
      <Docs>
        <summary>The minimum number of methods a class must have to be checked.</summary>
        <value>To be added.</value>
        <remarks>Defaults to 2.</remarks>
      </Docs>
    </Member>
    <Member MemberName="SuccessLowerLimit">
      <MemberSignature Language="C#" Value="public double SuccessLowerLimit { get; set; }" />
      <MemberSignature Language="ILAsm" Value=".property instance float64 SuccessLowerLimit" />
      <MemberType>Property</MemberType>
      <AssemblyInfo>
        <AssemblyVersion>2.11.0.0</AssemblyVersion>
      </AssemblyInfo>
      <Attributes>
        <Attribute>
          <AttributeName>System.ComponentModel.DefaultValue(0.5)</AttributeName>
        </Attribute>
        <Attribute>
          <AttributeName>System.ComponentModel.Description("Cohesion values lower than this will result in a defect.")</AttributeName>
        </Attribute>
      </Attributes>
      <ReturnValue>
        <ReturnType>System.Double</ReturnType>
      </ReturnValue>
      <Docs>
        <summary>Cohesion values lower than this will result in a defect.</summary>
        <value>To be added.</value>
        <remarks>Defaults to 0.5.</remarks>
      </Docs>
    </Member>
  </Members>
</Type>
