Skip to content

Commit

Permalink
fix: exclude 'generated' from ktLint
Browse files Browse the repository at this point in the history
  • Loading branch information
gaspermerela committed Nov 29, 2023
1 parent 596b948 commit 6b1efaa
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions buildSrc/src/main/kotlin/ktlint-conventions.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ ktlint {
reporter(ReporterType.SARIF)
}

filter {
exclude { it.file.path.contains(layout.buildDirectory.dir("generated").get().toString()) }
}

// format of rule keys defined at: https://pinterest.github.io/ktlint/1.0.1/rules/configuration-ktlint/#disabled-rules
additionalEditorconfig.set(
mapOf(
Expand Down

0 comments on commit 6b1efaa

Please sign in to comment.