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 questionI 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:
- LOC and CC metrics (mainly)
- NAnt intregration is possible
- No configuration file needed (provide the source files and config parameter via console arguments)
- HTML output (or XML if GUI exists to view the file)
So road so far:
- NDepend (Commercial)
- Source Monitor (No good integration)
- 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
精彩评论