SonarQube - DigitalExcellence/dex-backend GitHub Wiki
SonarQube
This guide will show you how to run SonarQube for the DeX backend & frontend.
Backend
Prerequisites:
- Docker is installed - Recommended: Docker Desktop Overview
- SonarQube is installed - Recommended: SonarQube - Get Started in Two Minutes Guide
- Java SDK is installed and accesible via the following command:
java -version
- Dotnet Core SDK is installed and accesible via the following command:
dotnet --version
Installation of SonarScanner
Install SonarScanner for MSBuild
I recommend the following method:
dotnet tool install --global dotnet-sonarscanner --version 4.8.0
Run SonarScanner
- Open your SonarQube instance and create a project named:
dex-backend - Open terminal in root of project
- Run the following commands
dotnet sonarscanner begin /k:dex-backend
dotnet build
dotnet sonarscanner end
- Navigate to your SonarQube panel (by default this is http://localhost:9000/)
- See the results
Frontend
Prerequisites:
- Docker is installed - Recommended: Docker Desktop Overview
- SonarQube is installed - Recommended: SonarQube - Get Started in Two Minutes Guide
Installation of SonarScanner
Run SonarScanner
- Open your SonarQube instance and create a project named:
dex-frontend - Open terminal in root of project
- Run the following command
sonar-scanner
- Navigate to your SonarQube panel (by default this is http://localhost:9000/)
- See the results