是否有针对 Python、Ruby、Sql、Cobol、Perl 和 PL/SQL 的静态分析工具?
我正在寻找一个针对 Python、Ruby、Sql、Cobol、Perl、PL/SQL、SQL 的静态分析工具,类似于查找错误和检查样式。 我正在寻找计算行数、识别开发过程中的错误以及执行编码标准。
I am looking for a static analysis tool for Python, Ruby, Sql, Cobol, Perl, PL/SQL, SQL similar to find bugs and check style. I am looking for calculating the line count, identify bugs during the development, and enforcing coding standard.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(6)
Perl 有 Perl::Critic (和 perlcritic.com)
Perl has Perl::Critic (and perlcritic.com)
我使用 PyChecker 和 pylint 作为 Python 代码检查器。 然而,当您使用某些模块(例如,
socket
或pygame
、IIRC)时,它们似乎会出现错误。I use PyChecker and pylint as Python code checkers. However it seems that they get buggy when you use some modules (e.g.,
socket
orpygame
, IIRC).对于 Ruby,您可能最好查看之前的 SO 问题:
https://stackoverflow.com/questions/286564/can-anyone-推荐-a-ruby-source-code-analyzer-something-like-pylint
这看起来相当彻底。
For Ruby, you're probably best served looking at this previous SO question:
https://stackoverflow.com/questions/286564/can-anyone-recommend-a-ruby-source-code-analyzer-something-like-pylint
which seems pretty thorough.
Sonar 有一个基于 Toad CodeXpert 代码分析器的 PL/SQL 插件。
Sonar has a PL/SQL plugin that is based on Toad CodeXpert code analyzer.
请参阅 Semantic 的各种静态分析工具
设计。
这些涵盖了 Java、C# 和 COBOL 的标准指标。 还有一些工具可以检测多种语言的重复代码(克隆),包括 Python、Java、PL/SQL(从您的列表中)。
最后,COBOL(带有可选的 Eclipse 插件)有一个样式检查器(编码标准检查),它提供重构支持来修复一些样式错误。
See various static analysis tools from Semantic
Designs.
These cover standard metrics for Java, C# and COBOL. There are also tools to detect duplicate code (clones) for many languages, including Python, Java, PL/SQL (from your list).
Finally, there is a style checker (coding standards checks) for COBOL (with optional Eclipse plugin) that offers refactoring support to fix some of the style errors.
我使用 Pylint for Python,它很好地 集成到 Komodo 中Brandon Corfman(如果您喜欢 ActiveState 的 Komodo)。
I use Pylint for Python which was nicely integrated into Komodo by Brandon Corfman (if ActiveState's Komodo is your thing).