From 8aae77da0a2bab7b7cc9e3d513e5c0045fbb1da8 Mon Sep 17 00:00:00 2001 From: Niklas Baudy Date: Sun, 2 Jul 2023 23:27:47 +0100 Subject: [PATCH] Kotlin Inputs: Exclude src/test/snapshots/ to fix 'ktlint uses this output of task testDebugUnitTest without declaring an explicit or implicit dependency'. (#274) --- .../code/quality/tools/CodeQualityToolsPlugin.kt | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/main/kotlin/com/vanniktech/code/quality/tools/CodeQualityToolsPlugin.kt b/src/main/kotlin/com/vanniktech/code/quality/tools/CodeQualityToolsPlugin.kt index 982ffe0..7c1e4f6 100755 --- a/src/main/kotlin/com/vanniktech/code/quality/tools/CodeQualityToolsPlugin.kt +++ b/src/main/kotlin/com/vanniktech/code/quality/tools/CodeQualityToolsPlugin.kt @@ -65,7 +65,13 @@ fun hasLintPlugin(): Boolean { fun Project.kotlinFiles(baseDir: String? = null) = fileTree(baseDir ?: projectDir) .setIncludes(listOf("**/*.kt", "**/*.kts")) - .setExcludes(listOf("build/", "generated/")) + .setExcludes( + listOf( + "build/", + "generated/", + "src/test/snapshots/", // Paparazzi. + ), + ) fun Project.editorconfigFile() = fileTree(mapOf("dir" to ".", "include" to ".editorconfig"))