From f5839396352df60db953c1d33c3c93f0c8348f7e Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Thu, 6 Jul 2023 12:38:56 +0530 Subject: fix(build): adjust ktfmt path filtering to allow formatting build.gradle.kts files --- build-logic/src/main/kotlin/app/passwordstore/gradle/KtfmtPlugin.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'build-logic/src') 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 { 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("ktfmtFormat") { source(input) } -- cgit v1.2.3