Skip to content

Commit 1d8c333

Browse files
committed
Run linter before compilation
Right now lintKotlin runs only with 'build', but not 'test' and sometimes it leads to linter errors in git history
1 parent a616b63 commit 1d8c333

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ tasks.withType<JavaCompile> {
6464
}
6565

6666
tasks.withType<KotlinCompile> {
67+
dependsOn(tasks.lintKotlin)
6768
kotlinOptions {
6869
freeCompilerArgs = freeCompilerArgs + listOf("-Xinline-classes", "-Xopt-in=kotlin.RequiresOptIn")
6970
}

0 commit comments

Comments
 (0)