# Lines of Comments

Trend Metric Trend Metrics / Code Size

Number of comment lines in application source files. Extracted from C# source only so far; VB.NET support is planned.

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="# Lines of Comments" Unit="Lines" />
// Application code only: test code (the TestCode view) is not counted
Application.Assemblies.Sum(a => a.NbLinesOfComment)

//<Desc>
// Number of comment lines in application source files. Extracted from C#
// source only so far; VB.NET support is planned.
//</Desc>

Trend Metrics / Code Size: all 22 items