SonarQube is an open-source static analysis platform for continuous code quality inspection — bugs, vulnerabilities, and maintainability issues across multiple languages. This guide installs it on Ubuntu 24.04 with PostgreSQL, sets up SonarScanner CLI, runs SonarQube as a systemd service, and scans both an example project and your own.
Prerequisites: an Ubuntu 24.04 instance, non-root sudo user.
Set Up PostgreSQL
$ sudo apt install -y postgresql-common postgresql -y
$ sudo systemctl enable postgresql






