https://github.com/musichin/ktlint-github-reporter
ktlint GitHub reporter
https://github.com/musichin/ktlint-github-reporter
github-actions github-commands kotlin ktlint
Last synced: 10 months ago
JSON representation
ktlint GitHub reporter
- Host: GitHub
- URL: https://github.com/musichin/ktlint-github-reporter
- Owner: musichin
- License: mit
- Created: 2021-09-09T22:11:53.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2025-07-26T10:25:37.000Z (11 months ago)
- Last Synced: 2025-07-26T15:42:29.339Z (11 months ago)
- Topics: github-actions, github-commands, kotlin, ktlint
- Language: Kotlin
- Homepage:
- Size: 312 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ๐ ktlint GitHub reporter
[](http://kotlinlang.org)
[](https://github.com/musichin/ktlint-github-reporter/actions/workflows/ci.yml)
[](https://codecov.io/gh/musichin/ktlint-github-reporter)
[](https://github.com/musichin/ktlint-github-reporter/releases)
[](https://central.sonatype.com/artifact/de.musichin.ktlint.reporter/ktlint-reporter-github)
A custom [ktlint](https://ktlint.github.io) reporter that annotates Kotlin lint issues directly in GitHub PRs using official GitHub [workflow commands](https://docs.github.com/en/actions/reference/workflow-commands-for-github-actions#setting-an-error-message).
- โ
Integrates seamlessly with GitHub Actions
- ๐ฏ Supports `error`, `warning`, `notice`, or `none` levels
- ๐ฆ Published to Maven Central
---
## ๐ Quick Start
### โถ๏ธ Using JAR
Download the latest JAR from the [Releases](https://github.com/musichin/ktlint-github-reporter/releases) page:
```bash
ktlint --reporter=github,artifact=ktlint-github-reporter.jar
```
Set the annotation level (default is error):
```bash
ktlint --reporter=github?level=warning,artifact=ktlint-github-reporter.jar
```
### ๐ Using Maven or Gradle
#### Gradle (Kotlin or Groovy DSL)
```groovy
repositories {
mavenCentral()
}
dependencies {
implementation "de.musichin.ktlint.reporter:ktlint-reporter-github:x.y.z"
}
```
#### Maven
```xml
de.musichin.ktlint.reporter
ktlint-reporter-github
x.y.z
```
### ๐งช GitHub Actions Integration
Use in a GitHub Actions workflow:
```yaml
steps:
- uses: actions/checkout@v4
- name: Run ktlint with GitHub reporter
run: ktlint --reporter=github,artifact=ktlint-github-reporter.jar
```
Alternatively, use the [ktlint-check](https://github.com/musichin/ktlint-check) GitHub Action:
```yaml
- uses: musichin/ktlint-check@v3
with:
ktlint-version: '1.7.0'
level: warning
```
> This action internally uses this reporter.
## ๐ง Configuration Options
| Option | Description | Default |
|---------|--------------------------------------------------------------|---------|
| `level` | Sets severity level: `error`, `warning`, `notice`, or `none` | `error` |
## Example

## ๐ License
MIT License ยฉ 2025 Anton Musichin