Cppcheck is a static analysis tool for C and C++ code.
Best Linters in 2026
Cppcheck leads this chart of 33 (7.4/10, free plan). JSHint is next (7.4/10, free plan), and Flake8 is the next highest-placed with a free plan (7.3/10). Linters check code against rules, so compare language coverage and the platforms where you can run them. If you plan to work from a Xiaomi, Redmi or POCO phone or tablet, check for Android support before choosing. Also compare autofix, custom and security rules, plus IDE and CI support.
Finds JavaScript syntax errors, type-conversion problems, and variable leaks.
Flake8 is a free, open-source Python command-line tool for checking code style and quality on Linux.
- 4
PMD
Extensible analyzer for many languages that finds flaws, code smells, and copy-paste code.
Free planLinuxmacOSSelf-hostedWindows6.8Free plan - 5

Ruff
Ruff is a free Python linter and code formatter written in Rust.
Free planWebLinuxmacOSSelf-hosted6.6Free plan - 6
SwiftLint
SwiftLint is a free, open-source tool for checking Swift code against style conventions.
Free planLinuxmacOSWindows6.6Free plan - 7

Biome
Biome is a toolchain for maintaining the health of web projects.
Free planWebExtensionLinuxmacOS6.4Free plan - 8
Hadolint
Checks Dockerfiles for errors and best practices, including Bash in RUN commands.
Free planWebLinuxmacOSWindows6.4Free plan - 9

ShellCheck
ShellCheck is a free static analysis tool for Bash and sh scripts.
Free planWebExtensionLinuxmacOS6.4Free plan - 10

SQLFluff
SQLFluff is an open source SQL linter designed with ELT applications in mind.
Free planAPILinuxmacOSSelf-hosted6.4Free plan - 11
actionlint
actionlint is a static checker for GitHub Actions workflow files.
Free planWebLinuxmacOSSelf-hosted6.3Free plan - 12

Astral
Astral makes open-source developer tools for Python, including Ruff, a linter, and uv, a package and project manager.
Free planLinuxmacOSWindows6.2Free plan - 13
clang-tidy
clang-tidy is a free, open-source Clang-based linter for C++ that diagnoses programming errors, style violations, interface misuse, and bugs…
Free planLinux6.2Free plan - 14
Oxc
Rust collection for JavaScript tools, including linting, formatting, parsing, and more.
Free planLinuxmacOSWindows6.2Free plan - 15
Reek
Reek is a free, open-source tool for examining Ruby classes, modules, and methods for code smells.
Free planLinux6.2Free plan - 16
Checkstyle
Checkstyle is a free tool for checking Java source code against configurable coding rules.
Free planLinuxmacOSWindows6.1Free plan - 17
Luacheck
Lua analyzer that detects undefined globals, unused values, unreachable code, and more.
Free planLinuxmacOSSelf-hostedWindows6.1Free plan - 18
PHPMD
PHPMD is a free tool for inspecting PHP source code for potential bugs, inefficient or overly complex code, and unused parameters, methods, or properties.
Free planLinuxmacOSSelf-hostedWindows6.1Free plan - 19
cpplint
cpplint is a free command-line tool for developers checking C and C++ source files for style issues against Google’s C++ style guide.
Free planLinuxmacOSWindows6.0Free plan - 20

detekt
detekt is a free static analyzer for Kotlin that helps identify code smells across Android, JVM, JS, Native, and Multiplatform projects.
Free planLinuxmacOSWindows6.0Free plan - 21

golangci-lint
golangci-lint is a free, open-source runner for Go linters, with installations documented for Linux, macOS, and Windows and a Docker option.
Free planLinuxmacOSSelf-hostedWindows6.0Free plan - 22
HLint
HLint is a free tool that flags possible improvements in Haskell source code, such as alternative functions, simplifications and redundant code.
Free planLinuxmacOSWindows6.0Free plan - 23
pycodestyle
pycodestyle is a free Python checker that evaluates selected conventions from PEP 8.
Free planLinuxmacOSWindows6.0Free plan - 24

RuboCop
Free planLinuxSelf-hosted6.0Free plan - 25
Staticcheck
Staticcheck is a free Go linter that applies static analysis to detect bugs and performance issues, recommend simpler code, and enforce style rules.
Free planLinuxmacOSWindows6.0Free plan
Choosing well
Which platforms does it need to run on?
Choose a tool that matches your development setup. Linux, macOS and Windows are represented across this category.
Self-hosted, web and API options are also available, so check the platform details for the tool you are considering. For Android use, confirm support separately.
Which code checks should I compare?
Compare the languages supported, then look at autofix and custom-rule options.
Security rules, IDE support and CI support show how a linter can fit into your coding workflow.
Can I start with a free plan?
A free plan is part of the pricing comparison, while paid-from details show when expanded access begins.
Cppcheck lists a 21-day trial as well as its free plan, so check trial terms when they matter to you.
Do I need an open-source linter?
Check the licensing label if you need source access or want to change the code. JSHint, SwiftLint and actionlint are marked open source.
Other tools can still offer free plans, so compare licensing separately from price.
Questions people ask
Which linter platforms should I check for Android development?
Check Android support separately, then confirm whether the linter runs on Linux, macOS, Windows, the web, through an API or in a self-hosted setup.
What linter features should I compare?
Compare supported languages, autofix, custom rules, security rules, IDE support and CI support.
Do these linters have free plans?
Free-plan availability is part of the comparison. Check the individual tool for its paid-from details and any trial terms.
Which linters are open source?
JSHint, SwiftLint and actionlint are marked open source in this selection.
Does Cppcheck offer a trial?
Cppcheck lists a free plan and a 21-day trial.
