代码存储库签入的热图

发布于 2025-01-06 02:30:33 字数 105 浏览 1 评论 0原文

是否有一个好的工具可以查看代码存储库并找到每次签入更改最多的地方?

它对于查找错误或重构代码的位置可能很有用。

目前我使用 SVN,但会考虑任何其他解决方案。谢谢!

Is there a good tool for looking through a code repository and finding the places that have the most changes per checkin?

It may be useful for finding bugs, or places to refactor code.

Currently I use SVN, but any other solutions would be considered. Thanks!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

病毒体 2025-01-13 02:30:33

我认为 StatSVN 会满足您的需求。

功能的顶级列表:

代码行的时间轴
每个开发人员的代码行
按时钟时间划分的活动
作者活动
每个模块的作者活动
作者最近提交的内容包含 ViewVc 的链接
每个目录的统计信息
文件计数
平均文件大小
最大的文件
修订次数最多的文件
目录大小
存储库标签 每个版本的 LOC 数量。
包含文件计数和代码行数的存储库树
LOC 和 Churn LOC 的演变以及每天的变化量
仓库映射过去 30 天仓库的动态分层视图

具体来说,绘制了 LOC 与流失情况的图表:
http://statsvn.org/statsvn/churn.html

还有一个“热图”这使您可以深入了解代码中最常更改的位置,我相信这是您的#1 请求:
http://statsvn.org/statsvn/repomap.html

我链接到的示例是虽然不是最好的,但我们已经使用过这个工具,它非常优雅且功能强大。

I think StatSVN will meet your needs.

A top-level list of the features:

Timeline for the lines of code
Lines of code for each developer
Activity by Clock time
Authors Activity
Author activity per Module
Author Most Recent Commits with links to ViewVc
Stats per directory
File count
Average file size
Largest files
Files with most revisions
Directory Sizes
Repository Tags Number of LOC per version.
Repository tree with file count and lines of code
LOC and Churn the evolution of LOC and the amount of change per day
Repo Map the dynamic hierarchical view of your repo for the last 30 days

Specifically, there is LOC graphed versus churn:
http://statsvn.org/statsvn/churn.html

And there is a "heat map" which allows you to drill down into the places in the code most often changed, which I believe was your #1 request:
http://statsvn.org/statsvn/repomap.html

The samples I've linked to aren't the greatest, but we've used the tool and it is extremely elegant and powerful.

苍风燃霜 2025-01-13 02:30:33

坏消息是没有这样的工具。好消息是您可以自己编写它并做出宝贵的贡献。

无论如何,有类似的工具,例如 CheckstyleCheckstylePMDJDepend 部分执行该任务的源代码分析。尽管这些工具仅适用于使用 Java 编程的情况,但也有其他语言的替代品(Resharper、YASCA、PHP_CodeSniffer 等)。这些工具可用于查找更改最频繁的地方的可能性很小,但肯定有助于提高代码质量(似乎代码质量问题是提出问题的首要问题)。

Bad news is that there is no such tool. Good news is that you can write it by yourself and make your valuable contribution.

Anyway, there are similar tools, such as Checkstyle, PMD, JDepend that partly perform the task of source code analysis. Even though those tools could be applied only if you program in Java, but there are alternatives for other languages too (Resharper, YASCA, PHP_CodeSniffer, etc). Low chances these tools could be used for finding places with most frequent changes, but will definitely help to improve code quality (it seems that code quality concern is the primary for asking your question).

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文