Skip to content

Commit 8aae77d

Browse files
authored
Kotlin Inputs: Exclude src/test/snapshots/ to fix 'ktlint uses this output of task testDebugUnitTest without declaring an explicit or implicit dependency'. (#274)
1 parent a925487 commit 8aae77d

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/main/kotlin/com/vanniktech/code/quality/tools/CodeQualityToolsPlugin.kt

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,13 @@ fun hasLintPlugin(): Boolean {
6565
fun Project.kotlinFiles(baseDir: String? = null) =
6666
fileTree(baseDir ?: projectDir)
6767
.setIncludes(listOf("**/*.kt", "**/*.kts"))
68-
.setExcludes(listOf("build/", "generated/"))
68+
.setExcludes(
69+
listOf(
70+
"build/",
71+
"generated/",
72+
"src/test/snapshots/", // Paparazzi.
73+
),
74+
)
6975

7076
fun Project.editorconfigFile() = fileTree(mapOf("dir" to ".", "include" to ".editorconfig"))
7177

0 commit comments

Comments
 (0)