Self-host a code quality scanning server that automatically checks every pull request for bugs and security issues before merging
Configure Quality Gate rules so that builds fail automatically when new code introduces critical vulnerabilities
Build from source to customize or extend SonarQube's backend analysis capabilities
Integrate SonarQube into a CI/CD pipeline to enforce code standards across an engineering team
Requires Java 17, npm, and Gradle to build from source, the UI is in a separate repository and is downloaded automatically during the build.
SonarQube is a tool that scans source code to find bugs, security vulnerabilities, and style problems before software goes into production. Developers connect it to their codebase and it continuously checks the health of the code as the project evolves. One of its central concepts is a Quality Gate: a set of rules that must pass before new code can be considered acceptable. If new changes introduce issues, the Quality Gate flags them, which gives teams a consistent way to stop problems from accumulating over time. The project is built and maintained by SonarSource, the commercial company behind SonarQube. The GitHub repository holds the server-side backend, written in Java. The user interface lives in a separate repository called sonarqube-webapp. When you build this backend from source, it downloads the UI automatically as a prebuilt package, so most contributors working on backend features do not need to touch the frontend at all. Those who do need to change the UI must clone the webapp repository separately and point a build variable at their local copy. Building from source requires Java 17, npm, and Git. The build system is Gradle. Running the standard build command compiles the code, runs tests, and packages a zip archive. Unzipping that archive gives you a runnable server that starts with a shell script on Linux and macOS or a batch file on Windows. The project accepts some outside contributions but with clear limits. SonarSource states in the README that it is not actively looking for feature contributions because aligning outside work with its internal roadmap is difficult. Minor fixes and cosmetic changes are welcome, but larger proposals should be discussed in the community forum first. Bug reports and feature requests go through that forum as well, not through GitHub issues. SonarQube is licensed under the GNU Lesser General Public License version 3. SonarSource also offers a paid commercial edition with additional capabilities, though the README does not describe those in detail.
← sonarsource on gitmyhub — every repo by this author, as a profile.
Verify against the repo before relying on details.