Is there a static analysis tool for Python, Ruby, Sql, Cobol, Perl, and PL/SQL? [closed]

喜你入骨 提交于 2019-11-29 03:21:38

问题


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.


回答1:


Perl has Perl::Critic (and perlcritic.com)




回答2:


I use PyChecker and pylint as Python code checkers. However it seems that they get buggy when you use some modules (e.g., socket or pygame, IIRC).




回答3:


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.




回答4:


Sonar has a PL/SQL plugin that is based on Toad CodeXpert code analyzer.




回答5:


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.




回答6:


I use Pylint for Python which was nicely integrated into Komodo by Brandon Corfman (if ActiveState's Komodo is your thing).



来源:https://stackoverflow.com/questions/956104/is-there-a-static-analysis-tool-for-python-ruby-sql-cobol-perl-and-pl-sql

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!