PartyBus CI remediate Sonarqube
Remediate PartyBus CI Sonarqube findings for the Plugin code
Run linting locally
docker run -it --rm -v $(pwd):/app registry1.dso.mil/ironbank/opensource/gradle/gradle-jdk11:7.4.2 bash
cd /app
gradle lintGradle
locally build only
docker run -it --rm -v $(pwd):/app registry1.dso.mil/ironbank/opensource/gradle/gradle-jdk11:7.4.2 bash
cd /app
gradle clean --build-cache assemble
locally run tests only
docker run -it --rm -v $(pwd):/app registry1.dso.mil/ironbank/opensource/gradle/gradle-jdk11:7.4.2 bash
cd /app
gradle test
run sonarqube scan
sonar-scanner \
-Dsonar.projectKey=keycloak-plugin \
-Dsonar.sources=src/main/ \
-Dsonar.host.url=https://sonarqube.bigbang.dev \
-Dsonar.login=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx \
-Dsonar.java.binaries=build/classes/
Edited by kevin.wilder