Looking for NDepend info on a particular method or type? Here's a simple CQL query that will return a few of the common metrics. Just enter a portion of what you're looking for in the NameLike criteria and off you go. The sample here will pull back Methods. If you're looking for Type information, replace METHODS with TYPES.
// Get metrics for a particular Method or Type
SELECT METHODS WHERE
(
NbLinesOfCode > 1
AND
(
CyclomaticComplexity > 1 OR
ILCyclomaticComplexity > 1
)
AND
ILNestingDepth > 1
)
AND
PercentageComment < 100
AND
NameLike "Foo"
0 comments:
Post a Comment