Static code analysis tools
What are static code analysis tools?
Static code analysis tools read source code without running it and report bugs, security flaws, style problems and risky patterns. They range from linters built into your editor to security scanners that trace data across a whole code base. Most teams run several static code analysis tools: one or two for correctness and style, and one for security.
Linters and type checkers
These run in seconds, usually in the editor and in CI, and catch everyday bugs and style problems.
- Clippy for Rust.
- ESLint for JavaScript, and for TypeScript through typescript-eslint.
- golangci-lint and staticcheck for Go. golangci-lint runs many Go linters in one pass.
- mypy and Pyright type checkers for Python.
- RuboCop for Ruby.
- Ruff and Pylint for Python.
Code quality platforms
- PMD rule-based analysis, mainly for Java and Apex, with support for other languages.
- SonarQube Sonar's platform for bugs, maintainability issues and security issues across many languages, self-hosted as SonarQube Server or hosted as SonarQube Cloud.
- SpotBugs bug patterns in Java bytecode.
Security scanners (SAST)
- Bandit a security linter for Python.
- Brakeman security analysis for Ruby on Rails applications.
- CodeQL GitHub's engine, which turns code into a database you query; it powers GitHub code scanning.
- Find Security Bugs a SpotBugs plugin for security audits of Java web applications.
- gosec security checks for Go.
- pokayoke a GitHub App that reviews every push and pull request, runs exploits to prove what it can and marks each finding proven or not.
- Semgrep a rule-based scanner for many languages with an open-source engine.
Commercial suites such as Checkmarx, Snyk Code and Veracode cover many languages in one product.
How to choose
Start with the linter your language community already uses; it is free and catches the most everyday bugs. Then add a security scanner that covers your languages and reports in the pull request. Judge it on your own code: run it on a repository with a bug you already know about, and look at what it finds, how much noise comes with it, and how long a developer needs to confirm each finding.
Lists on this page are alphabetical, not ranked. pokayoke is made by the same company that publishes this page.