Skip to content

Commit

Permalink
Exclude generated files from formatKotlinMain (#548)
Browse files Browse the repository at this point in the history
exclude generated files from formatKotlinMain

Signed-off-by: Ivan Morgillo <[email protected]>
  • Loading branch information
hamen authored Aug 19, 2024
1 parent 3913724 commit 3541805
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion buildSrc/src/main/kotlin/jewel.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,9 @@ tasks {
}
}

formatKotlinMain { exclude { it.file.absolutePath.contains("build/generated") } }
formatKotlinMain {
exclude { it.file.absolutePath.replace('\\', '/').contains("build/generated") }
}

lintKotlinMain {
exclude { it.file.absolutePath.replace('\\', '/').contains("build/generated") }
Expand Down

0 comments on commit 3541805

Please sign in to comment.