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.
views:
759answers:
6I 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).
I use Pylint for Python which was nicely integrated into Komodo by Brandon Corfman over at http://bit.ly/1hBscE - if ActiveState's Komodo is your thing.
For Ruby, you're probably best served looking at this previous SO question:
which seems pretty thorough.
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.