Skip to content

Commit

Permalink
Kotlin Inputs: Exclude src/test/snapshots/ to fix 'ktlint uses this o…
Browse files Browse the repository at this point in the history
…utput of task testDebugUnitTest without declaring an explicit or implicit dependency'.
  • Loading branch information
vanniktech committed Jul 2, 2023
1 parent a925487 commit 8f614a0
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,11 @@ 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"))

Expand Down

0 comments on commit 8f614a0

Please sign in to comment.