aboutsummaryrefslogtreecommitdiff
path: root/build-logic/src/main/kotlin/app
diff options
context:
space:
mode:
authorHarsh Shandilya <me@msfjarvis.dev>2023-07-06 12:38:56 +0530
committerHarsh Shandilya <me@msfjarvis.dev>2023-07-06 13:02:17 +0530
commitf5839396352df60db953c1d33c3c93f0c8348f7e (patch)
tree15b9db7cef84b2a73f5366cadbfc1fc3af7a78ef /build-logic/src/main/kotlin/app
parent053eb4e88377e5b66a8d3e12f06ffe893fb4bb6f (diff)
fix(build): adjust ktfmt path filtering to allow formatting build.gradle.kts files
Diffstat (limited to 'build-logic/src/main/kotlin/app')
-rw-r--r--build-logic/src/main/kotlin/app/passwordstore/gradle/KtfmtPlugin.kt2
1 files changed, 1 insertions, 1 deletions
diff --git a/build-logic/src/main/kotlin/app/passwordstore/gradle/KtfmtPlugin.kt b/build-logic/src/main/kotlin/app/passwordstore/gradle/KtfmtPlugin.kt
index c7ff2f06..90636e4b 100644
--- a/build-logic/src/main/kotlin/app/passwordstore/gradle/KtfmtPlugin.kt
+++ b/build-logic/src/main/kotlin/app/passwordstore/gradle/KtfmtPlugin.kt
@@ -12,7 +12,7 @@ class KtfmtPlugin : Plugin<Project> {
override fun apply(target: Project) {
val input = Callable {
target.layout.projectDirectory.asFileTree.filter { file ->
- file.extension == "kt" || file.extension == "kts" && !file.canonicalPath.contains("build")
+ file.extension == "kt" || file.extension == "kts" && !file.canonicalPath.contains("build/")
}
}
target.tasks.register<KtfmtFormatTask>("ktfmtFormat") { source(input) }