Ktlint extension to report in gitlab code quality standard and get this nice tab in your merge requests.
Base Ktlint is required.
Add ktlint 'pm.algirdas.ktlint:reporter:0.2.1'
in your build.gradle
Project is available in jCenter
Use gitlab-quality
reporter for ktlint args "--reporter=gitlab-quality,output=${buildDir}/ktquality.json"
Have a job in your gitlab .yml for reports similar to this
ktlint:
script:
- ./gradlew ktlint
artifacts:
reports:
codequality: app/build/ktquality.json```
After that just enjoy your nice reports in future merge requests.