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'. (#274)
  • Loading branch information
vanniktech committed Jul 2, 2023
1 parent a925487 commit 8aae77d
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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"))

Expand Down

0 comments on commit 8aae77d

Please sign in to comment.