SonarQube is an analysis tool code that allows you to automatically check the quality of the code based on the specified rules and standards. It's powerful a tool that can be used both for individual projects and for projects with a large volume code.
Installing SonarQube on Ubuntu is pretty straightforward. At first Java must be installed if it is not already installed. Next, you need to download SonarQube from the official website, unpack it and set up the database. After that, you need to edit the SonarQube settings file, so that it uses the database correctly. Finally, you can start SonarQube and access web application interface through a web browser.
Using SonarQube can help improve your code quality and detect possible problems before they appear in production. Also SonarQube can be used for automatic code validation in the continuous integration and delivery (CI/CD) process.
sudo apt update
sudo apt install default jdk
sudo tar xzf sonarqube-<version>.zip -C /opt
Replace <version>
with the version you want
you have uploaded.
/opt/sonarqube/conf/sonar.properties
and change the database settings
on their own.
sudo /opt/sonarqube/bin/linux-x86-64/sonar.sh start
SonarQube will run on port 9000. You can get
access the SonarQube interface by navigating in a web browser to http://your_address:9000
.
sonar-project.properties
to
root directory of your project (https://docs.sonarqube.org/latest/analysis/analysis-parameters/).
sonar-scanner
in the root directory
your project.
http://your_address:9000
.
menuclose
Спасибо! Заявка отправлена. Свяжемся с вами в течении часа!