This project is read-only.

CodeMetrics activity / Improvements proposal

Oct 20, 2011 at 2:26 PM

Hi,

 

We've pushed a new patch (ID:10595) with the following "improvements" to the existing CodeMetrics activity.

  1. New FilesToIgnore property
  2. 4 new properties for managing thresholds by level (Assembly, Namespace, Type and Member)

We'd like to know if this is something that could be integrated to the next release.  If it makes sense for you.

 

Thanks,

Phil

The following is the patch's description

###############

There's now a FilesToIgnore property. It helps to support the following story.

- We need to compute metrics for assemblies named like this "Company.Namespace.Project.*.dll" except for those "Company.Namespace.Project.*.Tests.dll" and "Company.Namespace.Project.*.Generated.dll"

Also, in this patch, there's 4 new properties to be able to set thresholds by each level (Assembly, Namespace, Type and Member). Before the thresholds were global. While it might work for the Maintainability Index metric, the Cyclomatic Complexity metric's thresholds might probably does not be the same at each level.
Each of those new properties has the following format "9999;9999;9999;9999" where each integer represents the thresholds for the Maintainability Index (MI) [Error], MI [Warning], Cyclo. Complexity (CC) [Error] and CC [Warning].
A value of "40;60;10;5" at the Member level means the thresholds for the members will be:
MI [Error]: 40
MI [Warning]: 60
CC [Error]: 10
CC [Warning]: 5

Those new 4 properties are optional and the global thresholds would be used when these specifics are missing.

###############

Oct 20, 2011 at 10:24 PM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.
Oct 20, 2011 at 10:25 PM

Hi

Thanks for the patch. Can you attach your changed files to the new workitem.

Thanks!

Mike