﻿<?xml version="1.0" encoding="utf-8"?><Type Name="AvoidComplexMethodsRule" FullName="Gendarme.Rules.Maintainability.AvoidComplexMethodsRule"><TypeSignature Language="C#" Value="public class AvoidComplexMethodsRule : Gendarme.Framework.Rule, Gendarme.Framework.IMethodRule" /><TypeSignature Language="ILAsm" Value=".class public auto ansi beforefieldinit AvoidComplexMethodsRule extends Gendarme.Framework.Rule implements class Gendarme.Framework.IMethodRule, class Gendarme.Framework.IRule" /><AssemblyInfo><AssemblyName>Gendarme.Rules.Maintainability</AssemblyName><AssemblyVersion>4.2.0.0</AssemblyVersion></AssemblyInfo><Base><BaseTypeName>Gendarme.Framework.Rule</BaseTypeName></Base><Interfaces><Interface><InterfaceName>Gendarme.Framework.IMethodRule</InterfaceName></Interface></Interfaces><Attributes><Attribute><AttributeName>Gendarme.Framework.EngineDependency(typeof(Gendarme.Framework.Engines.OpCodeEngine))</AttributeName></Attribute><Attribute><AttributeName>Gendarme.Framework.FxCopCompatibility("Microsoft.Maintainability", "CA1502:AvoidExcessiveComplexity")</AttributeName></Attribute><Attribute><AttributeName>Gendarme.Framework.Problem("Methods with a large cyclomatic complexity are hard to understand and maintain.")</AttributeName></Attribute><Attribute><AttributeName>Gendarme.Framework.Solution("Simplify the method using refactors like Extract Method.")</AttributeName></Attribute></Attributes><Docs><summary>
             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.
             </summary><remarks>This rule is available since Gendarme 2.0</remarks></Docs><Members><Member MemberName=".ctor"><MemberSignature Language="C#" Value="public AvoidComplexMethodsRule ();" /><MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor() cil managed" /><MemberType>Constructor</MemberType><AssemblyInfo><AssemblyVersion>4.2.0.0</AssemblyVersion></AssemblyInfo><Parameters /><Docs><summary>To be added.</summary><remarks>To be added.</remarks></Docs></Member><Member MemberName="CheckMethod"><MemberSignature Language="C#" Value="public Gendarme.Framework.RuleResult CheckMethod (Mono.Cecil.MethodDefinition method);" /><MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance valuetype Gendarme.Framework.RuleResult CheckMethod(class Mono.Cecil.MethodDefinition method) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>4.2.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>Gendarme.Framework.RuleResult</ReturnType></ReturnValue><Parameters><Parameter Name="method" Type="Mono.Cecil.MethodDefinition" /></Parameters><Docs><param name="method">To be added.</param><summary>To be added.</summary><returns>To be added.</returns><remarks>To be added.</remarks></Docs></Member><Member MemberName="GetCyclomaticComplexity"><MemberSignature Language="C#" Value="public static int GetCyclomaticComplexity (Mono.Cecil.MethodDefinition method);" /><MemberSignature Language="ILAsm" Value=".method public static hidebysig int32 GetCyclomaticComplexity(class Mono.Cecil.MethodDefinition method) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>4.2.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Int32</ReturnType></ReturnValue><Parameters><Parameter Name="method" Type="Mono.Cecil.MethodDefinition" /></Parameters><Docs><param name="method">To be added.</param><summary>To be added.</summary><returns>To be added.</returns><remarks>To be added.</remarks></Docs></Member><Member MemberName="GetCyclomaticComplexitySeverity"><MemberSignature Language="C#" Value="public Gendarme.Framework.Severity GetCyclomaticComplexitySeverity (int cc);" /><MemberSignature Language="ILAsm" Value=".method public hidebysig instance valuetype Gendarme.Framework.Severity GetCyclomaticComplexitySeverity(int32 cc) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>4.2.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>Gendarme.Framework.Severity</ReturnType></ReturnValue><Parameters><Parameter Name="cc" Type="System.Int32" /></Parameters><Docs><param name="cc">To be added.</param><summary>To be added.</summary><returns>To be added.</returns><remarks>To be added.</remarks></Docs></Member><Member MemberName="HighThreshold"><MemberSignature Language="C#" Value="public int HighThreshold { get; set; }" /><MemberSignature Language="ILAsm" Value=".property instance int32 HighThreshold" /><MemberType>Property</MemberType><AssemblyInfo><AssemblyVersion>4.2.0.0</AssemblyVersion></AssemblyInfo><Attributes><Attribute><AttributeName>System.ComponentModel.DefaultValue(0)</AttributeName></Attribute><Attribute><AttributeName>System.ComponentModel.Description("Methods with cyclomatic complexity less than this will be reported as high severity.")</AttributeName></Attribute></Attributes><ReturnValue><ReturnType>System.Int32</ReturnType></ReturnValue><Docs><summary>Methods with cyclomatic complexity less than this (but higher than MediumThreshold) will be reported as high severity.</summary><value>To be added.</value><remarks>Methods with cyclomatic complexity greater than this will be reported as critical severity.
             If left as zero then the rule will initialize it to 4*SuccessThreshold.</remarks></Docs></Member><Member MemberName="Initialize"><MemberSignature Language="C#" Value="public override void Initialize (Gendarme.Framework.IRunner runner);" /><MemberSignature Language="ILAsm" Value=".method public hidebysig virtual instance void Initialize(class Gendarme.Framework.IRunner runner) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>4.2.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Void</ReturnType></ReturnValue><Parameters><Parameter Name="runner" Type="Gendarme.Framework.IRunner" /></Parameters><Docs><param name="runner">To be added.</param><summary>To be added.</summary><remarks>To be added.</remarks></Docs></Member><Member MemberName="LowThreshold"><MemberSignature Language="C#" Value="public int LowThreshold { get; set; }" /><MemberSignature Language="ILAsm" Value=".property instance int32 LowThreshold" /><MemberType>Property</MemberType><AssemblyInfo><AssemblyVersion>4.2.0.0</AssemblyVersion></AssemblyInfo><Attributes><Attribute><AttributeName>System.ComponentModel.DefaultValue(0)</AttributeName></Attribute><Attribute><AttributeName>System.ComponentModel.Description("Methods with cyclomatic complexity less than this will be reported as low severity.")</AttributeName></Attribute></Attributes><ReturnValue><ReturnType>System.Int32</ReturnType></ReturnValue><Docs><summary>Methods with cyclomatic complexity less than this will be reported as low severity.</summary><value>To be added.</value><remarks>If left as zero then the rule will initialize it to 2*SuccessThreshold.</remarks></Docs></Member><Member MemberName="MediumThreshold"><MemberSignature Language="C#" Value="public int MediumThreshold { get; set; }" /><MemberSignature Language="ILAsm" Value=".property instance int32 MediumThreshold" /><MemberType>Property</MemberType><AssemblyInfo><AssemblyVersion>4.2.0.0</AssemblyVersion></AssemblyInfo><Attributes><Attribute><AttributeName>System.ComponentModel.DefaultValue(0)</AttributeName></Attribute><Attribute><AttributeName>System.ComponentModel.Description("Methods with cyclomatic complexity less than this will be reported as medium severity.")</AttributeName></Attribute></Attributes><ReturnValue><ReturnType>System.Int32</ReturnType></ReturnValue><Docs><summary>Methods with cyclomatic complexity less than this (but higher than LowThreshold) will be reported as medium severity.</summary><value>To be added.</value><remarks>If left as zero then the rule will initialize it to 3*SuccessThreshold.</remarks></Docs></Member><Member MemberName="SuccessThreshold"><MemberSignature Language="C#" Value="public int SuccessThreshold { get; set; }" /><MemberSignature Language="ILAsm" Value=".property instance int32 SuccessThreshold" /><MemberType>Property</MemberType><AssemblyInfo><AssemblyVersion>4.2.0.0</AssemblyVersion></AssemblyInfo><Attributes><Attribute><AttributeName>System.ComponentModel.DefaultValue(25)</AttributeName></Attribute><Attribute><AttributeName>System.ComponentModel.Description("The cyclomatic complexity at which defects are reported.")</AttributeName></Attribute></Attributes><ReturnValue><ReturnType>System.Int32</ReturnType></ReturnValue><Docs><summary>The cyclomatic complexity at which defects begin to be reported.</summary><value>To be added.</value><remarks>This defaults to 25 and larger values will mean fewer reported defects.</remarks></Docs></Member></Members></Type>