# Lines of JustMyCode Covered
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 JustMyCode Covered" Unit="LoC" />
JustMyCode.Methods.Sum(m => m.NbLinesOfCodeCovered)
// JustMyCode explanations: https://www.ndepend.com/docs/cqlinq-syntax#NotMyCode
Open in the interactive Rules Explorer · All default rules
Trend Metrics / Coverage: all 12 items
- Percentage Code Coverage
- # Lines of Code Covered
- # Lines of Code Not Covered
- # Tests
- # Lines of Code Uncoverable
- # Lines of Code in Types 100% Covered
- # Lines of Code in Methods 100% Covered
- Max C.R.A.P Score
- Average C.R.A.P Score
- Percentage JustMyCode Coverage
- # Lines of JustMyCode Covered
- # Lines of JustMyCode Not Covered