Category guides · published
"Best open source static analysis tools": 21 listed, sorted by GitHub stars
Metrics as of , from the GitHub or GitLab API of each repository. Refreshed monthly.
The code quality and static analysis category covers linters, static analysers and mutation testing tools used for quality gates, following the definition in the FreeQATools category list. The sections below group the listed tools by the code they analyse, their configuration formats and their report formats. The table below is sorted by GitHub stars on the fetch date.
Grouped by the code they analyse
Ruff covers Python files, Jupyter Notebooks and pyproject.toml by default (docs). mypy checks Python programs that carry type hints (README). Flake8 runs PyFlakes, pycodestyle and the McCabe script through one command (README). Pylint analyses Python code without running it (Pylint). Bandit scans Python code for common security issues (README).
For Java, Checkstyle checks source code against a coding standard (Checkstyle). SpotBugs finds bugs in Java programs (docs). Infer covers Java, C, C++ and Objective-C (README). Cppcheck analyses C and C++ code (README).
Several tools each analyse one language ecosystem. ESLint analyses ECMAScript and JavaScript (README). PHPStan analyses PHP (README). RuboCop analyses Ruby (README). golangci-lint runs bundled linters for Go (golangci-lint).
Some tools target a file type rather than an application language. ShellCheck analyses scripts in the sh, bash, dash, ksh and BusyBox dialects (manual). Hadolint lints Dockerfiles and checks the shell code in RUN instructions through ShellCheck (README).
Semgrep CE lists community support for languages including C#, Go, Java, Python, Rust and Terraform (docs). The SonarQube Community Build has language pages for Java, JavaScript, Python, C#, Go and others (docs).
Mutation testing
Infection mutates source code and records, for each mutant, whether the covering tests fail (Infection). Stryker.NET describes mutation testing as temporarily inserting bugs into the source code (Stryker.NET). StrykerJS covers JavaScript and TypeScript projects (StrykerJS). Infection covers PHP projects tested with PHPUnit, PhpSpec, Codeception or Testo (guide). mutmut runs pytest against mutated Python code (mutmut).
Configuration and quality gate output
The documented configuration formats differ by tool. Checkstyle uses an XML file of modules and properties (docs). RuboCop reads .rubocop.yml (docs). PHPStan reads a NEON file such as phpstan.neon (docs). ESLint reads a JavaScript file, eslint.config.js (README).
Several tools list SARIF among their report formats. Bandit documents SARIF output (manual). Semgrep documents SARIF output (CLI reference). Ruff documents SARIF output (docs). SpotBugs documents SARIF 2.1.0 output (docs).
Several tools list JUnit XML among their report formats. golangci-lint documents JUnit XML output (CLI reference). mypy documents JUnit XML output (docs). PHPStan documents JUnit output (docs).
Some tools describe a pass or fail signal directly. ESLint exits with a non-zero code on error-level rule violations (ESLint). SonarQube Quality Gates apply a pass or fail check to new code in pull requests and pipelines (SonarQube). Stryker.NET documents a break threshold that fails the pipeline (docs).
How this list is sorted
The quoted title is a search query, not a verdict. FreeQATools does not rank tools by opinion. The list below is sorted by GitHub stars, descending, as fetched from the repository host API on the date shown with each value.
Stars count how many accounts have starred a repository. They say nothing about fit for a given project, so the documented facts under each tool are the part to compare.
Every tool here meets the inclusion rules: an OSI-approved license, a public repository, software testing or quality as its primary purpose and at least one release or tag. Each status badge follows the status rules on the methodology page.
Open-source code quality and static analysis tools by GitHub stars
| Ruff | 49,7311 | 2026-09-1610.16.8 | 2026-09-221 | MIT | Rust | active |
|---|---|---|---|---|---|---|
| ShellCheck | 40,0671 | 2025-08-041v0.11.0 | 2026-09-211 | GPL-3.0 | Haskell | active |
| ESLint | 27,5161 | 2026-09-181v10.11.0 | 2026-09-221 | MIT | JavaScript | active |
| mypy | 20,6481 | 2026-08-151v2.3.1 | 2026-09-221 | MIT | Python | active |
| golangci-lint | 19,3941 | 2026-08-271v2.13.2 | 2026-09-201 | GPL-3.0 | Go | active |
| Semgrep | 16,7251 | 2026-09-101v1.177.0 | 2026-09-221 | LGPL-2.1 | C | active |
| Infer | 15,7061 | 2026-05-121v1.3.0 | 2026-09-181 | MIT | OCaml | active |
| PHPStan | 14,1061 | 2026-09-1212.2.14 | 2026-09-221 | MIT | PHP | active |
| RuboCop | 12,9051 | 2026-09-101v1.91.0 | 2026-09-221 | MIT | Ruby | active |
| Hadolint | 12,4251 | 2026-07-311v2.15.1 | 2026-08-241 | GPL-3.0 | Haskell | active |
| SonarQube | 11,0101 | 2026-09-02126.9.0.129388 | 2026-09-211 | LGPL-3.0 | Java | active |
| Checkstyle | 9,5711 | 2026-08-301checkstyle-14.1.0 | 2026-09-221 | LGPL-2.1 | Java | active |
| Bandit | 8,2781 | 2026-02-2511.9.4 | 2026-09-211 | Apache-2.0 | Python | active |
| Cppcheck | 6,7551 | 2026-09-1912.22.0 | 2026-09-221 | GPL-3.0 | C++ | active |
| Pylint | 5,7251 | 2026-08-291v4.0.8 | 2026-09-221 | GPL-2.0 | Python | active |
| SpotBugs | 3,9461 | 2026-08-2014.10.4 | 2026-09-191 | LGPL-2.1 | Java | active |
| Flake8 | 3,8231 | 2025-06-2017.3.0 | 2026-08-171 | MIT | Python | active |
| StrykerJS | 3,1421 | 2026-08-141v10.0.0 | 2026-09-111 | Apache-2.0 | TypeScript | active |
| Infection | 2,2431 | 2026-09-0210.35.4 | 2026-09-221 | BSD-3-Clause | PHP | active |
| Stryker.NET | 2,0861 | 2026-09-111dotnet-stryker@5.0.0 | 2026-09-221 | Apache-2.0 | C# | active |
| mutmut | 1,4481 | 2026-09-1213.8.0 | 2026-09-121 | BSD-3-Clause | Python | active |
1 Fetched from the GitHub or GitLab API on . Hover a value for its own date.
Filters for language, license and status are on the code quality and static analysis category page.
Tools in this list
Each entry gives the tool's one-line summary from its README and the facts its documentation states for this category, each with its source. Facts that are not documented are left out here and marked on the comparison pages.
Ruff
Python linter and code formatter written in Rust that covers Flake8, Black and isort functions in one tool. README, read 2026-09-22
- Languages or files analysed
- Python files (*.py, *.pyi), Jupyter Notebooks (*.ipynb) and pyproject.toml source: Docs: Configuring Ruff
- Configuration format
- TOML settings in pyproject.toml, ruff.toml or .ruff.toml source: README
- CI integration
- GitHub Actions (ruff-action) and a GitLab CI/CD example with a code quality report source: Docs: Integrations
- Report formats
- concise, full, JSON, JSON Lines, JUnit, grouped, GitHub, GitLab, Pylint, rdjson, Azure, SARIF source: Docs: Configuring Ruff
- Install method
- PyPI package ruff via uv, pip or pipx; standalone installers source: README
ShellCheck
Static analysis tool that flags syntax, semantic and portability problems in bash and sh scripts. README, read 2026-09-22
- Languages or files analysed
- Shell scripts in the sh, bash, dash, ksh and BusyBox dialects source: Docs: shellcheck(1) manual
- Configuration format
- key=value directives in .shellcheckrc files and in script comments source: Docs: shellcheck(1) manual
- CI integration
- Pre-installed on Travis CI, CircleCI (ShellCheck Orb), GitHub (Linux), Codacy, Code Climate and other services source: README
- Report formats
- JSON, CheckStyle XML, GCC-compatible warnings, plain text source: README
- Install method
- OS package managers (apt, pacman, dnf, brew, choco, winget and others); Docker image koalaman/shellcheck; binaries source: README
ESLint
Pluggable linter that finds and reports patterns in JavaScript code using configurable rules. README, read 2026-09-22
- Languages or files analysed
- ECMAScript/JavaScript code; JSX parsing when enabled source: README
- Configuration format
- JavaScript config file (eslint.config.js) source: README
- CI integration
- Integrations page lists Mega-Linter, a community linters aggregator for CI that embeds ESLint source: Docs: Integrations
- Report formats
- html, json, json-with-metadata, stylish; third-party formatters source: Docs: Formatters Reference
- Install method
- npm (npm init @eslint/config@latest) source: README
mypy
Static type checker for Python that checks PEP 484 type hints without running the program. README, read 2026-09-22
- Languages or files analysed
- Python programs with type hints source: README
- Configuration format
- Config file: mypy.ini, .mypy.ini, pyproject.toml ([tool.mypy]) or setup.cfg ([mypy]) source: Docs: The mypy configuration file
- CI integration
- Docs describe running mypy in a CI system, with an example CI script source: Docs: Using mypy with an existing codebase
- Report formats
- JUnit XML; JSON output; HTML, XML, Cobertura XML and text type checking coverage reports source: Docs: The mypy command line
- Install method
- pip (python3 -m pip install -U mypy) source: README
golangci-lint
Go linters runner that executes bundled linters in parallel with caching and YAML configuration. README, read 2026-09-22
- Languages or files analysed
- Go code source: README
- Configuration format
- Config file in YAML, TOML or JSON (.golangci.yml, .golangci.yaml, .golangci.toml, .golangci.json) source: Docs: Configuration File
- CI integration
- GitHub Action; GitLab CI component; Buildkite plugin source: Docs: CI Installation
- Report formats
- text, JSON, tab, HTML, Checkstyle, Code Climate, JUnit XML, TeamCity, SARIF source: Docs: Command-Line Options
- Install method
- Binaries, Homebrew (brew install golangci-lint), MacPorts, Chocolatey, Scoop, Docker image golangci/golangci-lint source: Docs: Local Installation
Semgrep
Pattern-based static analysis CLI that scans code in more than 30 languages for bugs and rule violations. README, read 2026-09-22
- Languages or files analysed
- Community supported in Semgrep CE: C/C++, C#, Go, Java, JavaScript, TypeScript, Kotlin, Python, Ruby, Rust, PHP, Scala, Swift, Terraform source: Docs: Supported languages for Semgrep Community Edition (CE)
- Configuration format
- YAML rules with patterns written like source code source: Docs: Rule syntax
- CI integration
- Semgrep CE template configs for GitHub Actions, GitLab CI/CD, Jenkins, Bitbucket Pipelines, Buildkite, CircleCI, Azure Pipelines source: Docs: Semgrep Community Edition in CI
- Report formats
- Text, JSON, SARIF, JUnit XML, GitLab SAST, GitLab secrets, Emacs, Vim source: Docs: CLI reference
- Install method
- Homebrew (brew install semgrep), pip (python3 -m pip install semgrep), Docker image semgrep/semgrep source: README
Infer
Static analyzer for Java, C, C++ and Objective-C that reports null dereferences, leaks and race conditions. README, read 2026-09-22
- Languages or files analysed
- Java, C++, Objective-C and C source: README
- Configuration format
- .inferconfig file in JSON holding command-line options source: Docs: infer(1) manual
- CI integration
- CI flow guide: analyse modified files in reactive mode and compare reports with infer reportdiff source: Docs: steps for CI
- Report formats
- SARIF (--sarif) and PMD XML (--pmd-xml) output options source: Docs: infer(1) manual
- Install method
- Binary release tarballs, Docker image, or build from source source: Docs: Getting started with Infer
PHPStan
Static analysis tool that finds errors in PHP code without running it, with configurable rule levels. README, read 2026-09-22
- Languages or files analysed
- PHP code source: README
- Configuration format
- NEON config file (phpstan.neon, phpstan.neon.dist or phpstan.dist.neon) source: Docs: Config Reference
- CI integration
- Default table output detects GitHub Actions and TeamCity; github, gitlab and teamcity formats source: Docs: Output Format
- Report formats
- table, raw, Checkstyle, JSON, prettyJson, JUnit, GitHub, GitLab, TeamCity; custom formatters source: Docs: Output Format
- Install method
- Composer (composer require --dev phpstan/phpstan) or PHAR download source: Docs: Getting Started
RuboCop
Ruby linter and code formatter that enforces many Ruby Style Guide guidelines and fixes many problems automatically. README, read 2026-09-22
- Languages or files analysed
- Ruby code (targets Ruby 2.0 and later) source: README
- Configuration format
- YAML config file (.rubocop.yml) that enables, disables and configures cops source: Docs: Configuration
- CI integration
- JUnit formatter for CI systems such as Jenkins; github formatter for GitHub Actions annotations source: Docs: Formatters
- Report formats
- progress, clang, JSON, JUnit, TAP, SARIF, HTML, Markdown, GitHub Actions and others; custom formatters source: Docs: Formatters
- Install method
- RubyGems (gem install rubocop) or a Gemfile entry with Bundler source: README
Hadolint
Dockerfile linter that parses Dockerfiles into an AST, applies rules and checks RUN shell code with ShellCheck. README, read 2026-09-22
- Languages or files analysed
- Dockerfiles, including the Bash code inside RUN instructions (through ShellCheck) source: README
- Configuration format
- YAML config file (.hadolint.yaml) source: Docs: hadolint-action README
- CI integration
- Guides for Azure DevOps, Bitbucket Pipelines, CircleCI, Drone CI, GitHub Actions, GitLab CI, Jenkins, Travis CI source: Docs: Hadolint Integrations
- Report formats
- tty, JSON, Checkstyle, Code Climate, GitLab Code Climate, Codacy, SARIF (format input of the GitHub Action) source: Docs: hadolint-action README
- Install method
- Docker image hadolint/hadolint:latest-debian or ghcr.io/hadolint/hadolint:latest-debian source: Docs: Hadolint Integrations
SonarQube
Self-managed static analysis server that reports bugs, vulnerabilities and maintainability issues and enforces Quality Gates. README, read 2026-09-22
- Languages or files analysed
- Java, JavaScript, TypeScript, Python, C#, Go, PHP, Kotlin and other language pages; IaC files such as Docker, Kubernetes, Terraform source: Docs: Supported languages
- Configuration format
- sonar.* key/value properties set in the UI, scanner configuration files or scanner arguments source: Docs: Configuration overview
- CI integration
- Guides for GitLab CI/CD, GitHub Actions, Azure Pipelines, Bitbucket Pipelines and Jenkins source: Docs: CI integration overview
- Install method
- Docker image sonarqube (docker run ... sonarqube:latest); zip file source: Docs: Try out SonarQube Community Build
Checkstyle
Static analysis tool that checks Java source code against configurable coding-standard rules. README, read 2026-09-22
- Languages or files analysed
- Java source code source: Docs: Checkstyle home
- Configuration format
- XML configuration file of modules and properties source: Docs: Configuration
- CI integration
- Listed third-party plug-ins for GitHub Actions, Jenkins and Bamboo source: Docs: Checkstyle home
- Report formats
- Plain text, XML, SARIF source: Docs: Command line
- Install method
- JAR from GitHub releases or Maven Central source: Docs: Checkstyle home
Bandit
Security linter from PyCQA that scans Python source through its AST to find common security issues. README, read 2026-09-22
- Languages or files analysed
- Python files, parsed into an abstract syntax tree (AST) source: README
- Configuration format
- Python test plugins registered through the bandit.plugins entry point source: Docs: Test Plugins
- CI integration
- GitHub Actions code scanning workflow with PyCQA/bandit-action source: Docs: GitHub Actions Workflow for Bandit
- Report formats
- CSV, custom, HTML, JSON, SARIF, screen, text, XML, YAML (-f option) source: Docs: bandit man page
- Install method
- pip (pip install bandit) source: Docs: Getting Started
Cppcheck
Static analysis tool for C and C++ that looks for undefined behavior and dangerous constructs. README, read 2026-09-22
- Languages or files analysed
- C and C++ code source: README
- Configuration format
- Command-line options; imported GUI project files (.cppcheck), compile_commands.json or Visual Studio projects source: Docs: Cppcheck manual
- CI integration
- Manual section on adopting Cppcheck in CI with a baseline suppressions file source: Docs: Cppcheck manual
- Report formats
- Text (vs, gcc or custom templates), XML; HTML via cppcheck-htmlreport source: Docs: Cppcheck manual
- Install method
- Windows installer; packages for Debian (apt-get), Fedora (yum) and Mac (brew) source: Docs: Cppcheck home
Pylint
Static code analyser for Python that infers values to report errors, style violations, code smells and refactoring hints. README, read 2026-09-22
- Languages or files analysed
- Python code (latest version supports Python 3.10.0 and above) source: README
- Configuration format
- TOML or rc configuration file (--generate-toml-config, --generate-rcfile); command-line options source: Docs: Configuration
- CI integration
- GitHub Actions message output (--output-format=github) source: Docs: Messages control and output
- Report formats
- text, parseable, colorized, json2, json, msvs, github source: Docs: Messages control and output
- Install method
- pip (pip install pylint) source: README
SpotBugs
Static analysis program that finds bugs in Java code, continuing the FindBugs project. README, read 2026-09-22
- Languages or files analysed
- Java programs source: Docs: Introduction
- Configuration format
- Command-line options; XML filter files to include or exclude bug instances source: Docs: Running SpotBugs
- Report formats
- XML, HTML (XSLT stylesheets), SARIF 2.1.0 source: Docs: Running SpotBugs
- Install method
- Binary distribution in tgz or zip format source: Docs: Installing
Flake8
Python code checker that runs PyFlakes, pycodestyle and McCabe complexity checks through one command. README, read 2026-09-22
- Languages or files analysed
- Python code, through PyFlakes, pycodestyle and the McCabe script source: README
- Configuration format
- INI-style configuration in setup.cfg, tox.ini or .flake8; command-line options source: Docs: Configuring Flake8
- Report formats
- default and pylint formatters; custom format strings; installable formatter plugins source: Docs: Full listing of options
- Install method
- pip (python -m pip install flake8) source: Docs: Quickstart
StrykerJS
Mutation testing tool for JavaScript and TypeScript projects with runner plugins for Jest, Mocha, Vitest and others. README, read 2026-09-22
- Languages or files analysed
- JavaScript projects, including TypeScript, React, Angular, VueJS, Svelte and NodeJS source: Docs: Introduction
- Configuration format
- JavaScript or JSON config file (stryker.config.json, stryker.config.js, stryker.config.mjs) source: Docs: Config file
- CI integration
- Dashboard reporter reads project and version from Travis, CircleCI and GitHub Actions environments source: Docs: Dashboard
- Report formats
- html, json, progress, clear-text, dots, dashboard, event-recorder; custom reporter plugins source: Docs: Configuration
- Install method
- npm (npm init stryker@latest) source: Docs: Getting started
Infection
Mutation testing framework for PHP that mutates code through its AST and runs PHPUnit, PhpSpec, Codeception or Testo tests. README, read 2026-09-22
- Languages or files analysed
- PHP 8.3+ projects tested with PHPUnit, PhpSpec, Codeception or Testo source: Docs: Introduction
- Configuration format
- JSON5 config file (infection.json5); JSON also supported source: Docs: Usage
- CI integration
- GitHub Actions annotations (github logger); GitLab code quality report artifact source: Docs: Usage
- Report formats
- Text, HTML, summary, JSON, summary JSON, per-mutator Markdown, GitHub annotations, GitLab code quality, Stryker dashboard source: Docs: Usage
- Install method
- PHAR download, Phive or Composer (composer global require infection/infection) source: Docs: Installation
Stryker.NET
Mutation testing tool for .NET Core and .NET Framework projects, run as a dotnet global tool. README, read 2026-09-22
- Languages or files analysed
- .NET Core and .NET Framework projects source: README
- Configuration format
- JSON or YAML config file (stryker-config.json); command-line options source: Docs: Configuration
- CI integration
- Pipeline guide with an Azure DevOps example and a break threshold to fail the pipeline source: Docs: Installing Stryker in pipelines
- Report formats
- HTML, progress, dashboard, cleartext, cleartext tree, dots, JSON, GitLab Code Quality, Markdown summary source: Docs: Reporters
- Install method
- dotnet tool (dotnet tool install -g dotnet-stryker) source: README
mutmut
Mutation testing system for Python that runs pytest against mutated code and offers a terminal UI for results. README, read 2026-09-22
- Languages or files analysed
- Python code source: README
- Configuration format
- [mutmut] section in setup.cfg or [tool.mutmut] in pyproject.toml source: README
- Report formats
- Shields endpoint JSON badge (mutmut badge) from export-cicd-stats output source: README
- Install method
- pip (pip install mutmut) source: README