Metrics limits

Enterprise Edition only

Code review rules

Metrics are a way to describe different aspects of source code. You can use Project Analyzer's problem detection feature to set up warning limits so that you get notified when a metric exceeds the limit. This feature is restricted to a handful of metrics. To monitor other aspects of your code with metrics, use Project Metrics.

The following review rules are available. They are triggered when a metric value exceeds the limit you have set in Problem options:

Informational fan-in x fan-out exceeds limit. IFIO, INF_FANINOUT.

Informational complexity exceeds limit. IC1, INF_COMPLEXITY.

Cyclomatic complexity exceeds limit. CC, CYCL_COMPLEXITY.

Loops nested too deeply. DLOOP.

Conditional statements nested too deeply. DCOND.

Number of code lines exceeds limit. LOC.

Comment directive

The comment directive parameter for the rules on this page is METRICS. Metrics are also covered by the STYLE parameter.

See also

Problem detection
Code review rules

Project Analyzer Help