# Namespaces

Trend Metric Trend Metrics / Code Size

Counts all application namespaces, showing per namespace the all technical-debt and issues (of the namespace and its child types and members).

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="# Namespaces" Unit="Namespaces" />
from n in Application.Namespaces
select new {
   n,
   Debt = n.AllDebt(),
   Issues = n.AllIssues(),
   n.NbLinesOfCode
}

//<Desc>
// Counts all application namespaces, showing per namespace the **all**
// technical-debt and issues (of the namespace and its child types and
// members).
//</Desc>

Trend Metrics / Code Size: all 22 items