Skip to content

Latest commit

 

History

History
24 lines (18 loc) · 862 Bytes

README.md

File metadata and controls

24 lines (18 loc) · 862 Bytes

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.