Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
NDepend LCOM, LOC, Cyclomatic complexity queries
// <Name>LCOM</Name>
from t in JustMyCode.Types where t.LCOM > 0
orderby t.LCOM descending
select new { t, t.LCOM }
// <Name>LOC</Name>
from a in JustMyCode.Assemblies
select new { a, a.NbLinesOfCode, a.NbILInstructions }
// <Name>Cyclomatic complexity</Name>
from m in JustMyCode.Methods
where m.CyclomaticComplexity > 0
orderby m.CyclomaticComplexity descending
select new { m, m.ParentType.Name, m.CyclomaticComplexity }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.