This is a collection of static analysis tools and code quality checkers for all programming languages.
Static program analysis is the analysis of computer software that is performed without actually executing programs (analysis performed on executing programs is known as dynamic analysis). — Definition by Wikipedia
[OSS] stands for Open-Source-Software.
[PROPRIETARY] stands for proprietary software.
Pull requests are very welcome!
- Codepeer [OSS] - detects run-time and logic errors
- Polyspace for Ada [PROPRIETARY] - provide code verification that proves the absence of overflow, divide-by-zero, out-of-bounds array access, and certain other run-time errors in source code.
- Understand [PROPRIETARY] - IDE that provides code analysis, standards testing, metrics, graphing, dependency analysis and more for Ada and VHDL.
- CMetrics [OSS] - Measures size and complexity for C files
- cqmetrics [OSS] - quality metrics for C code
- clang-tidy [OSS] - clang static analyser
- Corrode [OSS] - Semi-automatic translation from C to Rust. Could reveal bugs in the original implementation by showing Rust compiler warnings and errors.
- cppcheck [OSS] - static analysis of C/C++ code
- flawfinder [OSS] - finds possible security weaknesses
- flint++ [OSS] - cross-platform, zero-dependency port of flint, a lint program for C++ developed and used at Facebook.
- oclint [OSS] - static analysis of C/C++ code
- Polyspace Bug Finder [PROPRIETARY] - identifies run-time errors, concurrency issues, security vulnerabilities, and other defects in C and C++ embedded software.
- Polyspace Code Prover [PROPRIETARY] - provide code verification that proves the absence of overflow, divide-by-zero, out-of-bounds array access, and certain other run-time errors in C and C++ source code.
- splint [OSS] - static analysis of C/C++ code
- tis-interpreter [OSS] - An interpreter for finding subtle bugs in programs written in standard C
- vera++ [OSS] - Vera++ is a programmable tool for verification, analysis and transformation of C++ source code.
- Code Analysis Rule Collection [OSS] - Contains a set of diagnostics, code fixes and refactorings built on the Microsoft .NET Compiler Platform "Roslyn".
- code-cracker [OSS] - An analyzer library for C# and VB that uses Roslyn to produce refactorings, code analysis, and other niceties.
- CSharpEssentials [OSS] - C# Essentials is a collection of Roslyn diagnostic analyzers, code fixes and refactorings that make it easy to work with C# 6 language features.
- Designite [PROPRIETARY] - Designite is a software design quality assessment tool. It supports detection of implementation and design smells, computation of various code quality metrics, and trend analysis.
- Gendarme [OSS] - Gendarme inspects programs and libraries that contain code in ECMA CIL format (Mono and .NET) and looks for common problems with the code, problems that compiler do not typically check or have not historically checked.
- NDepend [PROPRIETARY] - Measure, query and visualize your code and avoid unexpected issues, technical debt and complexity in your project.
- .NET Analyzers [OSS] - An organization for the development of analyzers (diagnostics and code fixes) using the .NET Compiler Platform.
- Roslyn Security Guard [OSS] - Project that focus on the identification of potential vulnerabilities such as SQL injection, cross-site scripting (XSS), CSRF, cryptography weaknesses, hardcoded passwords and many more.
- SonarLint for Visual Studio [OSS] - SonarLint is a Visual Studio 2015 extension that provides on-the-fly feedback to developers on new bugs and quality issues injected into .NET code.
- Refactoring Essentials [OSS] - The premier free Visual Studio 2015 extension for C# and VB.NET refactorings, including code best practice analyzers to improve your projects.
- ReSharper [PROPRIETARY] - Extends Visual Studio with on-the-fly code inspections for C#, VB.NET, ASP.NET, JavaScript, TypeScript and other technologies.
- VSDiagnostics [OSS] - A collection of static analyzers based on Roslyn that integrate with VS.
- Wintellect.Analyzers [OSS] - .NET Compiler Platform ("Roslyn") diagnostic analyzers and code fixes written by Wintellect.
- credo [OSS] - A static code analysis tool with a focus on code consistency and teaching.
- Dogma [OSS] - A code style enforcer for Elixir
- elvis [OSS] - Erlang Style Reviewer
- dingo-hunter [OSS] - Static analyser for finding deadlocks in Go
- flen [OSS] - Get info on length of functions in a Go package
- go/ast [OSS] - Package ast declares the types used to represent syntax trees for Go packages.
- gocyclo [OSS] - Calculate cyclomatic complexities of functions in Go source code
- golint [OSS] - Prints out coding style mistakes in Go source code.
- go-staticcheck [OSS] - go vet on steroids, similar to ReSharper for C#
- Go Meta Linter [OSS] - Concurrently run Go lint tools and normalise their output
- go vet [OSS] - Examines Go source code and reports suspicious constructs
- ineffassign [OSS] - Detect ineffectual assignments in Go code
- safesql [OSS] - Static analysis tool for Golang that protects against SQL injections
- CodeNarc [OSS] - a static analysis tool for Groovy source code, enabling monitoring and enforcement of many coding standards and best practices
- HLint [OSS] - HLint is a tool for suggesting possible improvements to Haskell code.
- Haxe Checkstyle [OSS] - A static analysis tool to help developers write Haxe code that adheres to a coding standard.
- Checker Framework [OSS] - Pluggable type-checking for Java http://checkerframework.org/
- checkstyle [OSS] - checking Java source code for adherence to a Code Standard or set of validation rules (best practices)
- ckjm [OSS] - calculates Chidamber and Kemerer object-oriented metrics by processing the bytecode of compiled Java files
- Error-prone [OSS] - Catch common Java mistakes as compile-time errors
- fb-contrib [OSS] - A plugin for FindBugs with additional bug detectors
- Findbugs [OSS] - FindBugs is a program to find bugs in Java programs. It looks for patterns are likely to be errors.
- Find Security Bugs [OSS] - IDE/SonarQube plugin for security audits of Java web applications.
- HuntBugs [OSS] - Bytecode static analyzer tool based on Procyon Compiler Tools aimed to supersede FindBugs.
- OWASP Dependency Check [OSS] - Checks dependencies for known, publicly disclosed, vulnerabilities.
- aether [OSS] - Lint, analyze, normalize, transform, sandbox, run, step through, and visualize user JavaScript, in node or the browser.
- ClosureLinter [OSS] - ensures that all of your project's JavaScript code follows the guidelines in the Google JavaScript Style Guide. It can also automatically fix many common errors
- coffeelint [OSS] - A style checker that helps keep CoffeeScript code clean and consistent.
- complexity-report [OSS] - Software complexity analysis for JavaScript projects
- escomplex [OSS] - Software complexity analysis of JavaScript-family abstract syntax trees.
- eslint [OSS] - A fully pluggable tool for identifying and reporting on patterns in JavaScript
- Esprima [OSS] - ECMAScript parsing infrastructure for multipurpose analysis
- quality [OSS] - zero configuration code and module linting
- jshint [OSS] - detect errors and potential problems in JavaScript code and enforce your team's coding conventions
- JSLint [PROPRIETARY] - The JavaScript Code Quality Tool
- plato [OSS] - Visualize JavaScript source complexity
- standard [OSS] - An npm module that checks for Javascript Styleguide issues
- yardstick [OSS] - Javascript code metrics
- XO [OSS] - Enforce strict code style. Never discuss code style on a pull request again!
- luacheck [OSS] - A tool for linting and static analysis of Lua code.
- Perl::Critic [OSS] - Critique Perl source code for best-practices.
- DesignPatternDetector [OSS] - detection of design patterns in PHP code
- dephpend [OSS] - Dependency analysis tool
- deptrac [OSS] - Enforce rules for dependencies between software layers.
- exakat [OSS] - An automated code reviewing engine for PHP
- GrumPHP [OSS] - checks code on every commit
- Parse [OSS] - A Static Security Scanner
- phan [OSS] - a modern static analyzer from etsy
- php7cc [OSS] - PHP 7 Compatibility Checker
- php7mar [OSS] - assist developers in porting their code quickly to PHP 7
- phpcpd [OSS] - Copy/Paste Detector (CPD) for PHP code.
- PHP_CodeSniffer [OSS] - detects violations of a defined set of coding standards
- phpdcd [OSS] - Dead Code Detector (DCD) for PHP code.
- PhpDependencyAnalysis [OSS] - builds a dependency graph for a project
- phpdoc-to-typehint [OSS] - Add scalar type hints and return types to existing PHP projects using PHPDoc annotations
- Php Inspections (EA Extended) [OSS] - A Static Code Analyzer for PHP.
- phpsa [OSS] - Static analysis tool for PHP.
- PHPMD [OSS] - finds possible bugs in your code
- PhpMetrics [OSS] - calculates code complexity metrics
- PHPStan [OSS] - PHP Static Analysis Tool - discover bugs in your code without running it!
- PHPQA [OSS] - A tool for running QA tools (phploc, phpcpd, phpcs, pdepend, phpmd, phpmetrics)
- phpqa [OSS] - PHPQA all-in-one Analyzer CLI tool
- PHP Refactoring Browser [OSS] - Refactoring helper
- PHP-Token-Reflection [OSS] - Library emulating the PHP internal reflection
- PHP-Parser [OSS] - A PHP parser written in PHP
- Psalm [OSS] - Static analysis tool for finding errors in PHP applications
- RIPS [OSS] - A static source code analyser for vulnerabilities in PHP scripts
- Tuli [OSS] - A static analysis engine
- twig-lint [OSS] - twig-lint is a lint tool for your twig files.
- bandit [OSS] - a tool to find common security issues in Python code
- jedi [OSS] - autocompletion/static analysis library for Python
- linty fresh [OSS] - parse lint errors and report them to Github as comments on a pull request
- mccabe [OSS] - check McCabe complexity
- mypy [OSS] - an experimental optional static type checker for Python that aims to combine the benefits of dynamic (or "duck") typing and static typing
- py-find-injection [OSS] - find SQL injection vulnerabilities in Python code
- pycodestyle [OSS] - (formerly
pep8
) check Python code against some of the style conventions in PEP 8 - pydocstyle [OSS] - check compliance with Python docstring conventions
- pyflakes [OSS] - check Python source files for errors
- pylint [OSS] - looks for programming errors, helps enforcing a coding standard and sniffs for some code smells. It additionally includes
pyreverse
(an UML diagram generator) andsymilar
(a similarities checker). Optional extensions are also included. - pyroma [OSS] - rate how well a Python project complies with the best practices of the Python packaging ecosystem, and list issues that could be improved
- vulture [OSS] - find unused classes, functions and variables in Python code
- xenon [OSS] - monitor code complexity using
radon
Wrappers:
- ciocheck [OSS] - linter, formatter and test suite helper. As a linter, it is a wrapper around
pep8
,pydocstyle
,flake8
, andpylint
. - flake8 [OSS] - a wrapper around
pyflakes
,pycodestyle
andmccabe
- prospector [OSS] - a wrapper around
pylint
,pep8
,mccabe
and others
- lintr [PROPRIETARY] - Static Code Analysis for R
- brakeman [OSS] - A static analysis security vulnerability scanner for Ruby on Rails applications
- cane [OSS] - Code quality threshold checking as part of your build
- dawnscanner [OSS] - a static analysis security scanner for ruby written web applications. It supports Sinatra, Padrino and Ruby on Rails frameworks.
- flay [OSS] - Flay analyzes code for structural similarities.
- flog [OSS] - Flog reports the most tortured code in an easy to read pain report. The higher the score, the more pain the code is in.
- laser [OSS] - Static analysis and style linter for Ruby code.
- Mondrian [OSS] - a set of static analysis and refactoring tools for more abstraction
- pelusa [OSS] - Static analysis Lint-type tool to improve your OO Ruby code
- quality [OSS] - Runs quality checks on your code using community tools, and makes sure your numbers don't get any worse over time.
- reek [OSS] - Code smell detector for Ruby
- rubocop [OSS] - A Ruby static code analyzer, based on the community Ruby style guide.
- rubycritic [OSS] - A Ruby code quality reporter
- ruby-lint [OSS] - Static code analysis for Ruby
- SandyMeter [OSS] - Static analysis tool for checking Ruby code for Sandi Metz' rules.
- clippy [OSS] - a code linter to catch common mistakes and improve your Rust code
- electrolysis [OSS] - A tool for formally verifying Rust programs by transpiling them into definitions in the Lean theorem prover.
- herbie [OSS] - Adds warnings or errors to your crate when using a numerically unstable floating point expression.
- linter-rust [OSS] - Linting your Rust-files in Atom, using rustc and cargo
- rustfix [OSS] - read and apply the suggestions made by rustc (and third-party lints, like those offered by clippy).
- linter [OSS] - Linter is a Scala static analysis compiler plugin which adds compile-time checks for various possible bugs, inefficiencies, and style problems.
- Scalastyle [OSS] - Scalastyle examines your Scala code and indicates potential problems with it.
- scapegoat [OSS] - Scala compiler plugin for static code analysis
- WartRemover [OSS] - a flexible Scala code linting tool.
- shellcheck [OSS] - ShellCheck, a static analysis tool that gives warnings and suggestions for bash/sh shell scripts
- sqlint [OSS] - Simple SQL linter
- SwiftLint [OSS] - A tool to enforce Swift style and conventions
- Tailor [OSS] - A static analysis and lint tool for source code written in Apple's Swift programming language.
- Codelyzer [OSS] - A set of tslint rules for static code analysis of Angular 2 TypeScript projects.
- AppChecker [PROPRIETARY] - Static analysis for C/C++/C#, PHP and Java
- ApplicationInspector [PROPRIETARY] - Combined SAST, DAST, IAST security scanner for C#, PHP, Java, SQL languages
- Axivion Bauhaus Suite [PROPRIETARY] - Tracks down error-prone code locations, style violations, cloned or dead code, cyclic dependencies and more for C/C++, C#/.NET, Java and Ada 83/Ada 95
- coala [OSS] - Language independent framework for creating code analysis - supports over 60 languages by default
- Undebt [OSS] - Language-independent tool for massive, automatic, programmable refactoring based on simple pattern definitions
- codeburner [OSS] - Provides a unified interface to sort and act on the issues it finds
- Coverity Save [PROPRIETARY] - Static analysis for C/C++, Java and C#
- Hound CI [OSS] - Comments on style violations in GitHub pull requests. Supports Coffeescript, Go, HAML, JavaScript, Ruby, SCSS and Swift.
- imhotep [OSS] - Comment on commits coming into your repository and check for syntactic errors and general lint warnings.
- Infer [OSS] - A static analyzer for Java, C and Objective-C
- Klocwork [PROPRIETARY] - Quality and Security Static analysis for C/C++, Java and C#
- oclint [OSS] - A static source code analysis tool to improve quality and reduce defects for C, C++ and Objective-C
- pfff [OSS] - Facebook's tools for code analysis, visualizations, or style-preserving source transformation for many languages
- PMD [OSS] - A source code analyzer for Java, Javascript, PLSQL, XML, XSL and others
- pre-commit [OSS] - A framework for managing and maintaining multi-language pre-commit hooks.
- PVS-Studio [PROPRIETARY] - static analysis of C/C++ and C# code
- shipshape [OSS] - Static program analysis platform that allows custom analyzers to plug in through a common interface
- SonarQube [OSS] - SonarQube is an open platform to manage code quality.
- STOKE [OSS] - a programming-language agnostic stochastic optimizer for the x86_64 instruction set. It uses random search to explore the extremely high-dimensional space of all possible program transformations
- WALA [OSS] - static analysis capabilities for Java bytecode and related languages and for JavaScript
- XCode [PROPRIETARY/OSS] - XCode provides a pretty decend UI for Clang's static code analyzer (C/C++, Obj-C)
- checkmake [OSS] - Linter / Analyzer for Makefiles
- codechecker [OSS] - a defect database and viewer extension for the Clang Static Analyzer
- clair [OSS] - Vulnerability Static Analysis for Containers
- collector [OSS] - Run arbitrary scripts inside containers, and gather useful information
- Docker Label Inspector [OSS] - Lint and validate Dockerfile labels
- Haskell Dockerfile Linter [OSS] - A smarter Dockerfile linter that helps you build best practice Docker images
Puppet Lint [OSS] - Check that your Puppet manifests conform to the style guide.
- CSScomb [OSS] - a coding style formatter for CSS. Supports own configurations to make style sheets beautiful and consistent
- CSSLint [OSS] - Does basic syntax checking and finds problematic patterns or signs of inefficiency
- CSS Stats [OSS] - Potentially interesting stats on stylesheets
- Parker [OSS] - Stylesheet analysis tool
- scsslint [OSS] - Linter for SCSS files
- Specificity Graph [OSS] - CSS Specificity Graph Generator
- Stylelint [OSS] - Linter for SCSS/CSS files
- HTMLHint [OSS] - A Static Code Analysis Tool for HTML
- HTML Inspector [OSS] - HTML Inspector is a code quality tool to help you and your team write better markup.
- portlint [OSS] - A verifier for FreeBSD and DragonFlyBSD port directories
- qark [OSS] - Tool to look for several security related Android application vulnerabilities
- lintian [OSS] - Static analysis tool for Debian packages
- Bithound [PROPRIETARY] - Code Analysis beyond Lint, specifically for Node.js.
- Codacy [PROPRIETARY] - Code Analysis to ship Better Code, Faster.
- Code Climate [PROPRIETARY] - The open and extensible static analysis platform, for everyone.
- ConQAT [OSS] - a toolkit for rapid development and execution of software quality analyses.
- Functor Prevent [PROPRIETARY] - Static code analysis for C code.
- kiuwan [PROPRIETARY] - Software Analytics in the Cloud supporting more than 22 programming languages.
- Landscape [PROPRIETARY] - Static code analysis for Python
- Nitpick CI [PROPRIETARY] - Automated PHP code review
- Node Security Platform [PROPRIETARY] - Continuous Security monitoring for your node apps (free for Open Source Projects)
- QuantifiedCode [PROPRIETARY] - Automated code review & repair
- Scrutinizer [PROPRIETARY] - A proprietery code quality checker that can be integrated with GitHub
- SensioLabs Insight [PROPRIETARY] - Detect security risks, find bugs and provide actionable metrics for PHP projects
- SideCI[PROPRIETARY] - An automated code reviewing tool. Improving developers' productivity.
- Snyk [PROPRIETARY] - Vulnerability scanner for dependencies of node.js apps (free for Open Source Projects)
- Teamscale [PROPRIETARY] - analyze, monitor, and improve the quality of your code.
- Upsource [PROPRIETARY] - Code review tool with static code analysis and code-aware navigation for Java, PHP, JavaScript and Kotlin.
- Tools for C/C++ - A list of static analysis tools for C/C++
- go-tools - A collection of tools and libraries for working with Go code, including linters and static analysis
- linters - An introduction to static code analysis
- php-static-analysis-tools - A reviewed list of useful PHP static analysis tools
- Wikipedia - A list of tools for static code analysis.
To the extent possible under law, Matthias Endler has waived all copyright and related or neighboring rights to this work.
Title image Designed by Freepik.