Skip to content

Gendarme.Rules.Performance.AvoidLargeNumberOfLocalVariablesRule(2.10)

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

AvoidLargeNumberOfLocalVariablesRule

Assembly: Gendarme.Rules.Performance
Version: 2.10

Description

This rule warns when the number of local variables exceed a maximum value (default is 64). Having a large amount of local variables makes it hard to generate code that performs well and, likely, makes the code harder to understand.

Examples

Notes

  • This rule is available since Gendarme 2.0

Configuration

Some elements of this rule can be customized to better fit your needs.

MaximumVariables

The maximum number of local variables which methods may have without a defect being reported.

Clone this wiki locally