Start a local Sonar server with:
docker compose -f src/main/docker/sonar.yml up -d
Then, run a Sonar analysis:
For Maven
./mvnw clean verify sonar:sonar
or
For Gradle
./gradlew clean build sonar --info"
You can see the result at http://localhost:9001/