⚙️ A curated list of static analysis (SAST) tools and linters for all programming languages, config files, build tools, and more. The focus is on tools which im
This repository lists **static analysis tools** for all programming languages, build tools, config files and more. The focus is on tools which improve code quality such as linters and formatters.
The official website, [analysis-tools.dev](https://analysis-tools.dev/) is based on this repository and adds rankings, user comments, and additional resources like videos for each tool.
## Sponsors
This project would not be possible without the generous support of our sponsors.
If you also want to support this project, head over to our [GitHub Sponsors page](https://github.com/sponsors/analysis-tools-dev).
## Meaning of symbols
- :copyright: stands for proprietary software. All other tools are open source.
- :information_source: indicates that the community does not recommend the tool for new projects. The icon links to the discussion issue.
- :warning: means that the tool was not updated for more than one year, or its repository was archived.
[Pull requests are very welcome!](CONTRIBUTING.md)
Also check out the sister project, [awesome-dynamic-analysis](https://github.com/mre/awesome-dynamic-analysis).
## Table of Contents
#### [Programming Languages](#programming-languages-1)
| | | |
|---|---|---|
| [ABAP](#abap) | [Erlang](#erlang) | [PL/SQL](#plsql) |
| [Ada](#ada) | [F#](#fsharp) | [Perl](#perl) |
| [Assembly](#asm) | [Fortran](#fortran) | [Python](#python) |
| [Awk](#awk) | [Go](#go) | [R](#r) |
| [C](#c) | [Groovy](#groovy) | [Rego](#rego) |
| [C#](#csharp) | [Haskell](#haskell) | [Ruby](#ruby) |
| [C++](#cpp) | [Haxe](#haxe) | [Rust](#rust) |
| [Clojure](#clojure) | [Java](#java) | [SQL](#sql) |
| [CoffeeScript](#coffeescript) | [JavaScript](#javascript) | [Scala](#scala) |
| [ColdFusion](#coldfusion) | [Julia](#julia) | [Shell](#shell) |
| [Crystal](#crystal) | [Kotlin](#kotlin) | [Swift](#swift) |
| [Dart](#dart) | [Lua](#lua) | [Tcl](#tcl) |
| [Delphi](#delphi) | [MATLAB](#matlab) | [TypeScript](#typescript) |
| [Dlang](#dlang) | [Nim](#nim) | [Verilog/SystemVerilog](#verilog) |
| [Elixir](#elixir) | [Ocaml](#ocaml) | [Vim Script](#vim-script) |
| [Elm](#elm) | [PHP](#php) | [WebAssembly](#wasm) |
#### [Multiple Languages](#multiple-languages-1)
#### [Other](#other-1)
Show Other
| | | |
|---|---|---|
| [.env](#dotenv) | [Embedded Ruby (a.k.a. ERB, eRuby)](#erb) | [Protocol Buffers](#protobuf) |
| [AI-generated code](#ai-generated-code) | [Gherkin](#gherkin) | [Puppet](#puppet) |
| [Ansible](#ansible) | [HTML](#html) | [Rails](#rails) |
| [Archive](#archive) | [JSON](#json) | [Security/SAST](#security) |
| [Azure Resource Manager](#arm) | [Kubernetes](#kubernetes) | [Smart Contracts](#smart-contracts) |
| [Binaries](#binary) | [LaTeX](#latex) | [Support](#support) |
| [Build tools](#buildtool) | [Laravel](#laravel) | [Template-Languages](#template) |
| [CSS/SASS/SCSS](#css) | [Makefiles](#make) | [Terraform](#terraform) |
| [Config Files](#configfile) | [Markdown](#markdown) | [Translation](#translation) |
| [Configuration Management](#configmanagement) | [Metalinter](#meta) | [Uses LLM/model](#uses-llm) |
| [Containers](#container) | [Mobile](#mobile) | [Vue.js](#vue) |
| [Continuous Integration](#ci) | [Nix](#nix) | [Writing](#writing) |
| [Deno](#deno) | [Node.js](#nodejs) | [XML](#xml) |
| [Dockerfile](#dockerfile) | [Packages](#package) | [YAML](#yaml) |
| [Embedded](#embedded) | [Prometheus](#prometheus) | [git](#git) |
---
## Programming Languages
ABAP
- [abaplint](https://abaplint.org) — Linter for ABAP, written in TypeScript.
- [abapOpenChecks](https://docs.abapopenchecks.org) — Enhances the SAP Code Inspector with new and customizable checks.
Ada
- [Polyspace for Ada](https://www.mathworks.com/products/polyspace-ada.html) :copyright: — 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.
- [SPARK](https://www.adacore.com/about-spark) :copyright: — Static analysis and formal verification toolset for Ada.
Assembly
- **STOKE** :warning: — 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.
Awk
- [gawk --lint](https://www.gnu.org/software/gawk/manual/html_node/Options.html) — Warns about constructs that are dubious or nonportable to other awk implementations.
C
- [Astrée](https://www.absint.com/astree/index.htm) :copyright: — Astrée automatically proves the absence of runtime errors and invalid concurrent behavior in C/C++ applications. It is sound for floating-point computations, very fast, and exceptionally precise. The analyzer also checks for MISRA/CERT/CWE/Adaptive Autosar coding rules and supports qualification for ISO 26262, DO-178C level A, and other safety standards. Jenkins and Eclipse plugins are available.
- [CBMC](http://www.cprover.org/cbmc) — Bounded model-checker for C programs, user-defined assertions, standard assertions, several coverage metric analyses.
- [clang-tidy](https://clang.llvm.org/extra/clang-tidy) — Clang-based C++ linter tool with the (limited) ability to fix issues, too.
- [clazy](https://github.com/KDE/clazy) — Qt-oriented static code analyzer based on the Clang framework. clazy is a compiler plugin which allows clang to understand Qt semantics. You get more than 50 Qt related compiler warnings, ranging from unneeded memory allocations to misusage of API, including fix-its for automatic refactoring.
- **CMetrics** :warning: — Measures size and complexity for C files.
- [codechecker](https://codechecker.readthedocs.io/en/latest) — A defect database and viewer extension for the Clang Static Analyzer with web GUI.
- [CPAchecker](https://cpachecker.sosy-lab.org) — A tool for configurable software verification of C programs. The name CPAchecker was chosen to reflect that the tool is based on the CPA concepts and is used for checking software programs.
- [cppcheck](https://cppcheck.sourceforge.io) — Static analysis of C/C++ code.
- [CppDepend](https://www.cppdepend.com) :copyright: — Measure, query and visualize your code and avoid unexpected issues, technical debt and complexity.
- [cpplint](https://github.com/cpplint/cpplint) — Automated C++ checker that follows Google's style guide.
- **cqmetrics** :warning: — Quality metrics for C code.
- [CScout](https://www.spinellis.gr/cscout) — Complexity and quality metrics for C and C preprocessor code.
- **ENRE-cpp** :warning: — ENRE (ENtity Relationship Extractor) is a tool for extraction of code entity dependencies or relationships from source code. ENRE-cpp is a ENtity Relationship Extractor for C/C++ based on @eclipse/CDT. (Under development)
- [ESBMC](http://esbmc.org) — ESBMC is an open source, permissively licensed, context-bounded model checker based on satisfiability modulo theories for the verification of single- and multi-threaded C/C++ programs.
- [flawfinder](http://dwheeler.com/flawfinder/) — Finds possible security weaknesses.
- **flint++** :warning: — Cross-platform, zero-dependency port of flint, a lint program for C++ developed and used at Facebook.
- [Frama-C](https://www.frama-c.com) — A sound and extensible static analyzer for C code.
- [GCC](https://gcc.gnu.org/onlinedocs/gcc/Static-Analyzer-Options.html) — The GCC compiler has static analysis capabilities since version 10. This option is only available if GCC was configured with analyzer support enabled. It can also output its diagnostics to a JSON file in the SARIF format (from v13).
- [Goblint](https://goblint.in.tum.de) — A static analyzer for the analysis of multi-threaded C programs. Its primary focus is the detection of data races, but it also reports other runtime errors, such as buffer overflows and null-pointer dereferences.
- [Helix QAC](https://www.perforce.com/products/helix-qac) :copyright: — Enterprise-grade static analysis for embedded software. Supports MISRA, CERT, and AUTOSAR coding standards.
- **IKOS** :warning: — A sound static analyzer for C/C++ code based on LLVM.
- [KLEE](http://klee.github.io/) — A dynamic symbolic execution engine built on top of the LLVM compiler infrastructure. It can auto-generate test cases for programs such that the test cases exercise as much of the program as possible.
- [LDRA](https://ldra.com) :copyright: — A tool suite including static analysis (TBVISION) to various standards including MISRA C & C++, JSF++ AV, CWE, CERT C, CERT C++ & Custom Rules.
- **MATE** :warning: — A suite of tools for interactive program analysis with a focus on hunting for bugs in C and C++ code. MATE unifies application-specific and low-level vulnerability analysis using code property graphs (CPGs), enabling the discovery of highly application-specific vulnerabilities that depend on both implementation details and the high-level semantics of target C/C++ programs.
- [PC-lint](https://pclintplus.com/) :copyright: — Static analysis for C/C++. Runs natively under Windows/Linux/MacOS. Analyzes code for virtually any platform, supporting C11/C18 and C++17.
- [Phasar](https://phasar.org) — A LLVM-based static analysis framework which comes with a taint and type state analysis.
- [Polyspace Bug Finder](https://www.mathworks.com/products/polyspace-bug-finder.html) :copyright: — Identifies run-time errors, concurrency issues, security vulnerabilities, and other defects in C and C++ embedded software.
- [Polyspace Code Prover](https://www.mathworks.com/products/polyspace-code-prover.html) :copyright: — 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.
- [scan-build](https://clang-analyzer.llvm.org/scan-build.html) — Frontend to drive the Clang Static Analyzer built into Clang via a regular build.
- [splint](http://splint.org) — Annotation-assisted static program checker.
- [SVF](https://svf-tools.github.io/SVF) — A static tool that enables scalable and precise interprocedural dependence analysis for C and C++ programs.
- [TrustInSoft Analyzer](https://trust-in-soft.com) :copyright: — Exhaustive detection of coding errors and their associated security vulnerabilities. This encompasses a sound undefined behavior detection (buffer overflows, out-of-bounds array accesses, null-pointer dereferences, use-after-free, divide-by-zeros, uninitialized memory accesses, signed overflows, invalid pointer arithmetic, etc.), data flow and control flow verification as well as full functional verification of formal specifications. All versions of C up to C18 and C++ up to C++20 are supported. TrustInSoft Analyzer will acquire ISO 26262 qualification in Q2'2023 (TCL3). A MISRA C checker is also bundled.
- **vera++** :warning: — Vera++ is a programmable tool for verification, analysis and transformation of C++ source code.
- **weggli** :warning: — A fast and robust semantic search tool for C and C++ codebases. It is designed to help security researchers identify interesting functionality in large codebases.
C#
- [.NET Analyzers](h