Skip to content

Program to annotate quality issues on your pull request.

Notifications You must be signed in to change notification settings

balrok/qualityannotate

Repository files navigation

Quality-Annotate

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

Installing

Download the program from releases. Put the application.yml from the release page into $HOME/.config/qualityannotate.yml. Then run ./qualityannotate sonarqube github

Developing

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

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.

Pre-Commit hook

pip install pre-commit
pre-commit install
pre-commit install --hook-type commit-msg

Creating a native executable / uber jar

# 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

About

Program to annotate quality issues on your pull request.

Resources

Stars

Watchers

Forks

Languages