This action runs ktlint against all .kt
files that were changed in a PR
and makes a line comment for every error that ktlint found.
Note that in order to make a comment the error must be in a line that is part of the PR's diff.
- uses: le0nidas/[email protected]
with:
repotoken: ${{ secrets.GITHUB_TOKEN }}
arguments: "--disabled_rules=parameter-list-wrapping,final-newline"
The code:
class Person(val name: String, val age: Int) {
}
will produce the comment: