- Docker
- JDK 8
Build the Docker image of SonarQube with a few plugins:
docker build -t sonarqube:s4248-npe .
Run a SonarQube container:
docker run --rm -p 9000:9000 --name sonarqube sonarqube:s4248-npe
Once SonarQube is up:
- Open http://localhost:9000/sessions/new?return_to=%2Fprofiles
- Log in as
admin
/admin
- Skip the tutorial
- Create a new "Test" quality profile, then set it as the default quality profile
- Go to http://localhost:9000/coding_rules?open=squid%3AS4248&q=S4248 and activate the S4248 rule on the quality profile
./gradlew sonarqube --stacktrace
docker stop sonarqube
Licensed under the LGPL 3.