Skip to content

Commit 5c995d5

Browse files
committed
exclude generated sources from ktlint checks
1 parent 12a08e1 commit 5c995d5

File tree

4 files changed

+10
-5
lines changed

4 files changed

+10
-5
lines changed

json-schema-validator-objects/build.gradle.kts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,9 @@ ktlint {
6868
reporters {
6969
reporter(ReporterType.HTML)
7070
}
71+
filter {
72+
exclude("**/kotest/**/kotest.kt")
73+
}
7174
}
7275

7376
val detektAllTask by tasks.register("detektAll")

json-schema-validator/build.gradle.kts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,9 @@ ktlint {
6161
reporters {
6262
reporter(ReporterType.HTML)
6363
}
64+
filter {
65+
exclude("**/kotest/**/kotest.kt")
66+
}
6467
}
6568

6669
val detektAllTask by tasks.register("detektAll")

test-suites/build.gradle.kts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -112,14 +112,13 @@ ktlint {
112112
reporters {
113113
reporter(ReporterType.HTML)
114114
}
115+
filter {
116+
exclude("**/kotest/**/kotest.kt")
117+
}
115118
}
116119

117120
val detektAllTask by tasks.register("detektAll")
118121

119-
detekt {
120-
121-
}
122-
123122
tasks.named("check").configure {
124123
dependsOn(detektAllTask)
125124
}

test-suites/src/commonTest/kotlin/io/github/optimumcode/json/schema/suite/AbstractSchemaTestSuite.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ import io.github.optimumcode.json.schema.JsonSchemaLoader
99
import io.github.optimumcode.json.schema.SchemaOption
1010
import io.github.optimumcode.json.schema.SchemaType
1111
import io.kotest.assertions.withClue
12+
import io.kotest.common.env
1213
import io.kotest.core.spec.style.FunSpec
1314
import io.kotest.matchers.shouldBe
14-
import io.kotest.common.env
1515
import kotlinx.serialization.ExperimentalSerializationApi
1616
import kotlinx.serialization.KSerializer
1717
import kotlinx.serialization.Serializable

0 commit comments

Comments
 (0)