views:

56

answers:

1

I'd like to extend the 2010 static code analysis metrics (mostly fix it so the rollup is max instead of sum). Where is the extensibility point? Is it an MEF component somewhere?

A: 

I am not sure there are any extensibility point for VS 2010 metrics.

Alternatively, you can opt for NDepend that comes with 82 code metrics and defining threshold is as easy as writing a short CQL rule like:

WARN IF Count > 0 IN SELECT METHODS WHERE 
NbLinesOfCode > 30 OR CyclomaticComplexity > 10
Patrick Smacchia - NDepend dev