This is a list of notable tools for static program analysis (program analysis is a synonym for code analysis).
Static code analysis tools
Languages
- CODESYS Static Analysis integrated add-on for CODESYS (application code realized e.g. in ST, FBD, LD)
- ESLint JavaScript syntax checker and formatter.
- Google's Closure Compiler JavaScript optimizer that rewrites code to be faster and smaller, and checks use of native JavaScript functions.
- CodeScene Behavioral analysis of code.
- Fluid Attacks
- JSHint A community driven fork of JSLint.
- JSLint JavaScript syntax checker and validator.
- Semgrep A static analysis tool that helps expressing code standards and surfacing bugs early. A CI service and a rule library is also available.
- Clang The free Clang project includes a static analyzer. As of version 3.2, this analyzer is included in Xcode.
- Infer Developed by an engineering team at Facebook with open-source contributors. Targets null pointers, leaks, API usage and other lint checks. Available as open source on github.
Opa
- Opa includes its own static analyzer. As the language is intended for web application development, the strongly statically typed compiler checks the validity of high-level types for web data, and prevents by default many vulnerabilities such as XSS attacks and database code injections.
- Lintian Checks Debian software packages for common inconsistencies and errors.
- Rpmlint Checks for common problems in rpm packages.
- A tool to help enforce common Perl best practices. Most best practices are based on Damian Conway's Perl Best Practices book.
- PerlTidy Program that acts as a syntax checker and tester/enforcer for coding practices in Perl.
- Padre An IDE for Perl that also provides static code analysis to check for common beginner errors.
- PyCharm Cross-platform Python IDE with code inspections available for analyzing code on-the-fly in the editor and bulk analysis of the whole project.
- PyDev Eclipse-based Python IDE with code analysis available on-the-fly in the editor or at save time.
- Pylint Static code analyzer. Quite stringent; includes many stylistic warnings as well.
- Fluid Attacks
- Semgrep Static code analyzer that helps expressing code standards and surfacing bugs early. A CI service and a rule library is also available.
- Visual Expert A SQLServer code analysis tool that reports on programming issues and helps understand and maintain complex code (Impact Analysis, source code documentation, call trees, CRUD matrix, etc.).
Tools with duplicate code detection
Formal methods tools
Tools that use sound, i.e. over-approximating a rigorous model, formal methods approach to static analysis (e.g., using static program assertions). Sound methods contain no false negatives for bug-free programs, at least with regards to the idealized mathematical model they are based on (there is no "unconditional" soundness). Note that there is no guarantee they will report all bugs for buggy programs, they will report at least one.
See also
References
External links
- The Web Application Security Consortium's Static Code Analysis Tool List
- SAMATE-Source Code Security Analyzers
- SATE Static Analysis Tool Exposition
- "A Comparison of Bug Finding Tools for Java", by Nick Rutar, Christian Almazan, and Jeff Foster, University of Maryland. Compares Bandera, ESC/Java 2, FindBugs, JLint, and PMD.
- "Mini-review of Java Bug Finders", by Rick Jelliffe, O'Reilly Media.
- "Static Code Analyzer"