VB6静态代码分析工具
现在我们正在维护一些用 VB6 编写的旧项目,我们计划为其实现持续集成服务器。我们还想实现一些代码分析来跟踪可维护性,至少不会变得更糟。基本上只有一个要求 - 该工具应该是命令行,这样我们就可以从持续集成服务器调用它,并且它应该与 VB6 项目一起使用。我将非常感谢任何有关尝试工具的建议。
谢谢你,马克西姆
Right now we are maintaining some old project written in VB6 we are planning to implement continuous integration server for it. We would like to implement some code analysis as well to track that maintanability at least not getting worse. Basically there is only one requirement - the tool should be command line so we can call it from continuous integration server and it should work with VB6 projects. I will really appreciate any recommendations regards tools to try.
Thank you, Maksym
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
您可以查看SourceMonitor,因为它表示它可以为 VB6 生成指标,并且可以从命令行。
我自己只将它用于 C++。
You could look at SourceMonitor as this says that it can produce metrics for VB6, and can be made to work from the command line.
I've only used it for C++ myself.
您是否看过这个有关工具的问题中的建议分析VB6源代码?
我不知道这些工具是否可以从命令行运行。
Have you looked at the recommendations in this question about tools for analysing VB6 source code?
I don't know whether any of these tools can be run from the command-line.
Visual Basic 6 的代码顾问程序是一个插件,用于检查代码以确保其符合预定的编码标准。
编码标准基于 Microsoft 开发的最佳实践,以生成健壮且易于维护的代码。
http://www.microsoft.com/en-us/download /details.aspx?id=1222
The Code Advisor for Visual Basic 6 is an add-in used to review your code to ensure that it meets predetermined coding standards.
The coding standards are based on best practices developed by Microsoft to produce robust and easy-to-maintain code.
http://www.microsoft.com/en-us/download/details.aspx?id=1222
您可以使用VBDepend进行VB6和VBA代码,基于CQL的静态分析工具,以下是它的一些功能
:构建、60 个代码指标、管理复杂性和依赖性
但是 VBDepend 没有规则来检查项目中的重复/重复代码。这是我一直在寻找的最重要的规则。
You can use VBDepend for VB6 and VBA code, static analysis tool based on CQL, here is some of its functionality:
Compare Builds, 60 code metrics, manage Complexity and Dependencies
However VBDepend does not have a rule to check for duplicate/repeated code in the project. This was the most important rule that I was looking for.
我们的 SD 源代码搜索引擎 是一款跨大型代码库进行快速搜索的工具。
它通过将文本分解为语言原子,对所有这些原子建立索引,然后使用索引执行查询来指导搜索来进行表达。 SCSE 有一个特定于 VB6 的前端(以及多种其他语言的前端)。
作为索引过程的副作用,它会生成指标:SLOC、评论数量、循环复杂度、Halstead 度量、最深嵌套条件等。这些指标将发送到 XML 文件,该文件可以按照您喜欢的任何方式进行格式化/询问。
索引过程是一个命令行步骤,因此您可以将其集成到脚本中。
我们还有一个用于 VB6 的克隆检测器,它可以找到准确的和几乎丢失的重复代码块大型系统的源代码。
Our SD Source Code Search Engine is a tool for lightning-fast search across large code bases.
It words by breaking the text into language atoms, indexing all those atoms, and then executing queries using the indexes to guide the search. The SCSE has a VB6-specific front end (as well as front ends for a wide variety of other languages).
As a side effect of the indexing process, it produces metrics: SLOC, number of comments, Cyclomatic Complexity, Halstead measures, deepest-nested conditionals, etc. These metrics are emitted to an XML file that can be formatted/interrogated any way you like.
The indexing process is a command-line step, so you can integrate it into your scripts.
We also have a clone detector for VB6 that finds exact and near-miss duplicate blocks of code across large systems of source code.