Program to annotate quality issues on your pull request.
The implementation tries to be variable within the two dimensions of:
- Code-Hoster (bitbucket, gitlab, github)
- Quality-Tool (Sonarqube, Klocwork)
Bitbucket | Gitlab | Github | |
---|---|---|---|
Sonarqube | ❌ | ❌ | ✅ |
??? | ❌ | ❌ | ❌ |
Since it is a commandline application it can also be integrated in various ci-systems. Please refer to the sample ci configs:
- ❌ Jenkins
- ❌ Gitlab-CI
- ❌ Github-Actions
Download the program from releases. Put the application.yml from the release page
into $HOME/.config/qualityannotate.yml
.
Then run ./qualityannotate sonarqube github
You can run your application in dev mode that enables live coding using:
./gradlew quarkusDev --quarkus-args="sonarqube github"
If you want to use intellij, there is a bug with the quarkus-args, so use the jvm-args
-Dquarkus.args="sonarqube github"
for the quarkusDev
job.
Codestyle is setup using ./gradlew spotlessApply
.
Intellij requires the eclipse code-formatter plugin.
Configs are ./config/code-formatter/eclipse.importorder
and ./config/code-formatter/eclipse.xml
.
pip install pre-commit
pre-commit install
pre-commit install --hook-type commit-msg
# create a native executable
./gradlew build -Dquarkus.package.type=native
# create a native executable using a docker container
./gradlew build -Dquarkus.package.type=native -Dquarkus.native.container-build=true
# create an uber jar
./gradlew build -Dquarkus.package.type=uber-jar