Skip to content

Commit

Permalink
excluded kts
Browse files Browse the repository at this point in the history
  • Loading branch information
nulls committed Nov 13, 2023
1 parent 3be079e commit 01d1315
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,16 @@ spotless {
kotlin {
// using `Project#path` here, because it must be unique in gradle's project hierarchy
if (path == rootProject.path) {
target("gradle/plugins/src/**/*.kt", "*.kts", "gradle/plugins/**/*.kts")
targetExclude("gradle/plugins/build/**")
target("gradle/plugins/src/**/*.kt")
targetExclude("gradle/plugins/build/**", "*.kts")
} else {
target("src/**/*.kt", "**/*.kts")
target("src/**/*.kt")
targetExclude(
"src/test/**/*.kt",
"src/test/**/*.kts",
"src/*Test/**/*.kt",
"build/**/*.kts",
"**/*.kts",
)
}
diktat().configFile(rootProject.file("diktat-analysis.yml"))
Expand Down

0 comments on commit 01d1315

Please sign in to comment.