开发者

Free Code Metrics Tool for .NET (should be callable directly from NAnt via Console) [closed]

开发者 https://www.devze.com 2023-01-19 06:54 出处:网络
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. 开发者_开发问答

Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.

Closed 8 years ago.

Improve this question

I am looking for a free code metrics tool for .NET (mainly C# language). I have searched the web, but haven't found anything that matches my requirements.

Requirements:

  1. LOC and CC metrics (mainly)
  2. NAnt intregration is possible
  3. No configuration file needed (provide the source files and config parameter via console arguments)
  4. HTML output (or XML if GUI exists to view the file)

So road so far:

  1. NDepend (Commercial)
  2. Source Monitor (No good integration)
  3. Code Metrics Plugin for Reflector (No console, any way to use it?)

If you use one of these tools (except NDepend; Commercial) I would like to hear your nant integration.


Regarding SourceMonitor I don't agree with You. We have integrated SourceMonitor in our Continuous Integration Environment and call it through NAnt via command line. Passing the arguments by a configuration file is easy when You use a template and NAnt's <filterchain> function. The output is XML which we transform through XSLT into a user friendly report.

Find more Information on Richard Banks' blog. Some of the examples are CruiseControl.NET realated but I'm sure You can cherry pick the stuff relevant to You.


If you have Visual studio... you can use the new metrics.exe


You can check out CSMS from Zenoware. Just opened up as freeware with the parsing source on GitHub. here is the link. It does export the metrics as csv and xml.


Has a lot of nice options and is free http://www.campwoodsw.com/sourcemonitor.html

0

精彩评论

暂无评论...
验证码 换一张
取 消