Created
July 31, 2013 20:36
-
-
Save yetanotherchris/6125916 to your computer and use it in GitHub Desktop.
NDepend LCOM, LOC, Cyclomatic complexity queries
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// <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