Hudson/Jenkins 源代码指标?
Hudson/Jenkins 是否有任何有用的源代码指标插件?
我正在寻找带有图形的代码总行数、测试总数、类等。
有这样的事情存在吗?
Are there any useful plugins for source code metrics for Hudson/Jenkins?
I'm looking for total lines of code, total number of tests, classes, etc. with graphing.
Does anything like this exist?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
你使用Java吗?如果是这样,SONAR 肯定是您的首选。它本身可以做很多事情,并且还包含所有主要的 Java 分析工具,例如:
开箱即用,您将获得以下方面的指标:
它允许您从高级分析遍历到与其相关的源代码。如果您使用 Maven 进行构建,那会更容易...
有一个 Hudson 插件。而且它是免费的。
Are you using Java? If so, SONAR should certainly be your first port of call. It does a lot on it's own and also wraps up all the major Java analysis tools, such as:
Out of the box, you'll get metrics on:
It allows you to traverse from the high level analysis through to the source code it relates to. It will be easier if you're using Maven for your build though...
There is a Hudson plugin. And it's free.
尝试 CCCC (http://sourceforge.net/projects/cccc/)。它进行代码计数、模块计数(类)等,并且该插件还为您绘制图表。 (针对 C、C++)
顺便问一下,您正在查看什么语言?
Try CCCC (http://sourceforge.net/projects/cccc/). It does code counting, module counting (classes), etc., and the plugin also graphs it for you. (for C, C++)
Incidently, what language are you looking at?
还有 CLOC(计算代码行数),它会告诉您每种语言有多少行,尽管我似乎找不到它的链接。
There's also CLOC (Count lines of Code) which will tell you how many lines of each language you have, although I can't seem to find a link for it.
您没有指定所使用的语言,但 Redsolo 精彩的博客文章使用 Hudson 构建 .NET 项目指南 向您展示如何使用 FxCop 和 NUnit哈德森给你一些你正在寻找的东西。使用的Violations插件也支持Simian, CPD、PMD 和 PyLint。
You don't specify which language you are using, but Redsolo's awesome blog post Guide to building .NET projects using Hudson shows you how to use FxCop and NUnit on Hudson to give some of what you are looking for. The Violations plugin used also supports Simian, CPD, PMD and PyLint.