forked from ShuriZma/suyu
1
0
Fork 0

Merge pull request #11346 from t895/ktlint-fix

android: lint: Delete generated ktlint folder between builds
This commit is contained in:
liamwhite 2023-08-22 11:30:01 -04:00 committed by GitHub
commit a9f223cd9f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -160,6 +160,11 @@ android {
} }
} }
tasks.create<Delete>("ktlintReset") {
delete(File(buildDir.path + File.separator + "intermediates/ktLint"))
}
tasks.getByPath("loadKtlintReporters").dependsOn("ktlintReset")
tasks.getByPath("preBuild").dependsOn("ktlintCheck") tasks.getByPath("preBuild").dependsOn("ktlintCheck")
ktlint { ktlint {