Static Code Analysis –Best Tools

PMD

Static code analyzer that uses sets of rules to identify problems within the software.
It detects things like duplicate code, dead code (unused variables, parameters or methods), method complexity (unnecessary ifs, etc.). It works mainly with the Java language, although, with less support, it also has rule sets for JavaScript, xsl and ecmascript.
Official page: http://pmd.sourceforge.net/
The license is: BSD

Check Style

Static code analysis tool used to verify that the analyzed code complies with a series of style rules. Example, it parses the code according to the “Sun Code Conventions” standard (see headers, package imports, Javadoc, etc.).
Official page: http://checkstyle.sourceforge.net/
Works for Java.
The license is: GNU Lesser General Public License Version 2.1

DREAM

A free and open software tool that allows you to manage the quality of the source code.
By installing it, we will be able to collect, analyze, and view metrics from the source code.
Sonar is basically the amalgamation of the following Checkstyle and PMD tools, plus others like Findbugs, Clover, and Coverage.
It also makes a history of all the metrics of the project.
Allows you to view reports with summaries of the metrics.
Official website: http://www.sonarsource.org
Works mainly for Java.
Although it supports, thanks to the extensive plugin library (some paid), the following languages: ABAP, C, Cobol, C #, Delphi / Pascal, Flex / ActionScript, Groovy, JavaScript, Natural, PHP, PL / SQL, Visual Basic 6, Web and XML. The license is: LGPL.

Google CodePro Analytix

It offers an environment for code evaluation, metrics, dependency analysis, code coverage, unit test generation, etc. Look at the exceptions, potential refactorings (I’ll leave you a refactoring post), JavaDoc conventions, metrics, etc. Available as an Eclipse plugin.
Official page: http://code.google.com/intl/es-ES/javadevtools/codepro/doc/index.html It
works for Java, specifically in Eclipse.
The tool is free.

Simian

Tool to detect duplicate code (which is the greatest enemy of maintainability) in developments made with the languages: Java, C #, C, C ++, COBOL, Ruby, JSP, ASP, HTML, XML and Visual Basic.
Official website: http://www.redhillconsulting.com.au/products/simian/
The license is free if its use is intended for OpenSource projects.

Optimyth Software

It offers the static code analysis functionality of your commercial product checKing in the cloud.
It can be tried for free and the prices are competitive.
http://www.checkinginthecloud.com

Codescan.io

offering more services, how can DevOps teams retain efficiency and productivity in more complex orgs? Using a static code analysis solution, CodeScan is able to cater to all those needs and more!

You May Also Like

More From Author