SonarQube
SonarQube is a static analysis and code quality platform that supports many programming languages. It has a free edition, and its maintainer also sells a paid edition or commercial license. It runs on Linux, macOS, and Windows.
Updated
- Pricing
- Free / Commercial
- License
- LGPL-3.0-or-later (source); Sonar Source-Available License v1.0 (bundled analyzers)
- Platforms
- Linux, macOS, Windows
- Category
- Application Security Tools
What Is SonarQube?
SonarQube is a static analysis and code quality platform that supports many programming languages. It scans source code for bugs, code smells, and security vulnerabilities and produces reports with severity ratings and remediation guidance. The open-source Community Build is free, and commercial SonarQube Server and SonarQube Cloud editions add more features.
Use Cases
Use SonarQube to run continuous SAST and code-quality gates in CI/CD for polyglot applications.
Strengths and Limitations
Strengths
- +Covers many languages and frameworks in a single server or container deployment.
- +Includes a web interface for tracking issue status and resolution over time.
- +Integrates with build systems, SCM tools, and IDE plugins.
Limitations
- -Advanced security rules and enterprise features require a paid license.
- -Findings judged incorrect must be marked as false positives in the issue workflow.
Defensive Use
Use SonarQube to catch insecure code patterns and code-quality regressions before they are merged into production branches.
SonarQube Alternatives
3 tools| Tool | License | Platforms | Pricing |
|---|---|---|---|
| Bandit Security linter from PyCQA that processes Python ASTs to find common vulnerability patterns and insecure library usages. | Apache-2.0 | Linux, macOS, Windows | Open Source |
| CodeQL Semantic code analysis engine that compiles source code into queryable databases to discover vulnerabilities with QL queries. | MIT (queries); proprietary CLI | Linux, macOS, Windows | Free / Commercial |
| Semgrep Fast static analysis engine for codebases and CI/CD pipelines, matching semantic code patterns to find security vulnerabilities. | LGPL-2.1-only | Linux, macOS, Windows | Free / Commercial |
Frequently Asked Questions
What is SonarQube?→
SonarQube is a static analysis and code quality platform that supports many programming languages. It scans source code for bugs, code smells, and security vulnerabilities and produces reports with severity ratings and remediation guidance. The open-source Community Build is free, and commercial SonarQube Server and SonarQube Cloud editions add more features.
What is SonarQube used for?→
Use SonarQube to run continuous SAST and code-quality gates in CI/CD for polyglot applications.
What are the strengths of SonarQube?→
- +Covers many languages and frameworks in a single server or container deployment.
- +Includes a web interface for tracking issue status and resolution over time.
- +Integrates with build systems, SCM tools, and IDE plugins.
What are the limitations of SonarQube?→
- +Advanced security rules and enterprise features require a paid license.
- +Findings judged incorrect must be marked as false positives in the issue workflow.
How is SonarQube used defensively?→
Use SonarQube to catch insecure code patterns and code-quality regressions before they are merged into production branches.