# Issues with severity Critical

Trend Metric Trend Metrics / Issues

A Critical issue shouldn't move to production (it can for business imperatives) but must be fixed during the next iterations. Severity is inferred from the issue annual interest and thresholds in Project Properties > Issue and Debt.

CQLinq source

This trend metric is written in CQLinq, C# LINQ over the NDepend code model. It ships with every new NDepend project: you can read it, adapt it, or use it as a starting point for your own custom rules.

// <TrendMetric Name="# Issues with severity Critical" Unit="issues"/>
from issue in Issues 
where issue.Severity == Severity.Critical
select new { issue, issue.Debt, issue.AnnualInterest, issue.Severity }

//<Desc>
// A **Critical** issue shouldn't move to production (it can for business
// imperatives) but must be fixed during the next iterations.
// Severity is inferred from the issue *annual interest* and thresholds in
// Project Properties > Issue and Debt.
//</Desc>

Trend Metrics / Issues: all 11 items