Linux工具显示SLOC和SLOC修改、添加、删除

发布于 2024-07-14 19:40:39 字数 191 浏览 6 评论 0原文

我目前正在使用 SLOCCOUNT 工具来获取代码库的源代码行 (SLOC)。

但是,它不支持比较两个版本的代码库,然后报告:

  • 代码行 (LOC) 修改
  • LOC 删除
  • LOC 添加

任何人都可以建议一个基于 Linux(最好是免费)的工具来执行此操作吗?

I am currently using the SLOCCOUNT tool for gaining source lines of code (SLOC) for a codebase.

However, it doesnt support comparing two versions of the codebase and then report:

  • Lines of code (LOC) modified
  • LOC removed
  • LOC added

Can anyone suggest a linux based (preferably free) tool to do this?

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

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

发布评论

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

评论(3

偏爱自由 2024-07-21 19:40:39

我使用 CODECOUNT 来区分基线。 这会比较不同代码库之间的更改、删除和添加。 它由南加州大学免费提供。

他们只提供源代码。 然而,它是使用 g++ 在 cygwin 中从 zip 文件中干净地构建出来的。 他们还声称支持 Visual Studio,但我还没有尝试过。

I've used CODECOUNT for differencing baselines. This compares changes, deletions and additions between different code bases. It's provided free of charge by the University of Southern California.

They only provide source code. However, it built cleanly out of the zip file in cygwin using g++. They also claim support for Visual Studio, but I have not tried it.

牵强ㄟ 2024-07-21 19:40:39

我相信 diffstat 实用程序可以做到这一点。

I beleive diffstat utility does that.

丢了幸福的猪 2024-07-21 19:40:39

听起来像 SLOCCountSLOC Compare 可以向您显示一段时间内的趋势,但这并不是您正在寻找的。

It sounds like SLOCCount and SLOC Compare can show you the trend over time, but it isn't exactly what you are looking for.

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