Skip to content

Extension for KtLint to get nice reports for gitlab code quality

License

Notifications You must be signed in to change notification settings

AlgirdasPundzius/ktlint-codequality

Repository files navigation

ktlint-codequality

Ktlint extension to report in gitlab code quality standard and get this nice tab in your merge requests. Gitlab Code quality tab

Installation

Base Ktlint is required.

Add ktlint 'pm.algirdas.ktlint:reporter:0.2.1' in your build.gradle

Project is available in jCenter

Usage

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.

About

Extension for KtLint to get nice reports for gitlab code quality

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages