visual studio 2010 - Where is the extension/extensibility point for vs2010 code metrics? -


I want to expand the 2010 static code analysis matrix (mostly fix it so that maximizes the rollup amount instead) attribute points Where is it? Is this MEF component somewhere?

I'm not sure there is any extensibility point for the VS1010 matrix.

Alternatively, you can choose an option for NDAPD which comes with the limit and is defined as easy to write as small:

  Warning count & gt; M to 0. In the application method where m.NbLinesOfCode & gt; 30 || M.CyclomaticComplexity & gt; 10 Select New {m, m.NbLinesOfCode, m.CyclomaticComplexity}  

You can also see the trending like the default CQLinq code rule:

  / / & Lt; Name & gt; Avoid making complex methods even more complex (source cc) & lt; / Name & gt; // To visualize the changes in the code, right-click a match method and choose: // - Compare older and newer versions of the source file - Reflective warning count to older and newer versions & gt; 0 in meters in JustMyCode Where the method! MISAFRAFT & amp; Amp; M.I. Project in Bathbills () & amp; amp; M.CodeWasChanged () Let the old CCC = M. The old version (). CyclomaticComplexity where oldCC & gt; 6 & amp; Amp; M.CyclomaticComplexity & gt; Select Oldcc new {m, oldCC, newcc = m.CyclomaticComplexity, oldLoc = m.lderVersion (). NbLinesOfCode, newLoc = m.NbLinesOfCode,}  

You can also create proposed code metrics, to define your own code metric:

  / / & Lt; Name & gt; Crap method code metric & lt; / Name & gt; // Change Risk Analyzer and Predictor (i.e. CRAP) Code Metric // This code helps in minimizing complex and untetched code. // references: http://www.artima.com/weblogs/viewpost.jsp?thread=215899 // Formula: Crap (M) = Comp (M) ^ 2 * (1 - Cov (M) / 100) ^ 3+ comp (m) warning count & gt; 0 just by Mx in M Methods // do not match very few methods where m.NbLinesOfCode & gt; 10 cc = m. Classic Complexity The Uncov = (100 - M Percent Coupon) / 100 F CRAP = (CC * CC * uncov * uncov * uncov) + CC Where CRAP! = Null & amp; Nonsense & gt; Descending 30 orderbay cap, mnl Select Lines Offcode Descending New {M, Cop, CC, Installed Unproven * 100, MNL Lineoffcode}  

Comments

Popular posts from this blog

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -