CodeClimateReporter
Generates a Code Climate JSON report - the format GitLab's Code Quality widget consumes to annotate merge requests.
Point a GitLab CI codequality report artifact at aalekh-codeclimate.json and every architecture violation shows up as a Code Quality finding on the MR diff, no plugin or token needed:
aalekh:
script: ./gradlew aalekhCheck
artifacts:
reports:
codequality: build/reports/aalekh/aalekh-codeclimate.jsonContent copied to clipboard
It is the GitLab counterpart to the SARIF report Aalekh already writes for GitHub. Pure string transform - no Gradle, no I/O.
Functions
Link copied to clipboard
Serialises result's violations as a Code Climate issue array.