Template project to demonstrate the following code quality actions in java projects:
- Checkstyle format checks
- SpotBugs code analysis
- SonarScanner / SonarQube static code analysis and code coverage
Configured to fail on findings (for Checkstyle + SpotBugs). For SonarScanner you will be able to see the results in the SonarQube dashboard.
To perform SonarScanner actions, you must have running instance present locally. To start a local instance, run:
docker-compose up -d
./mvnw clean verify
./mvnw clean checkstyle:check
./mvnw clean spotbugs:check
./mvnw clean sonar:sonar
Browse http://localhost:9000 to see results of analysis.
see: https://checkstyle.sourceforge.io/config.html
see: https://spotbugs.readthedocs.io/en/latest/maven.html
see: https://docs.sonarqube.org/latest/analyzing-source-code/scanners/sonarscanner-for-maven/
see: https://docs.sonarqube.org/latest/
see: https://plugins.jetbrains.com/plugin/1065-checkstyle-idea