Fix lint check on generated files
This commit is contained in:
parent
a791de47e4
commit
faa587d0e4
3 changed files with 12 additions and 1 deletions
|
@ -201,7 +201,9 @@ class LibraryUpdateJob(private val context: Context, workerParams: WorkerParamet
|
|||
}
|
||||
|
||||
MANGA_OUTSIDE_RELEASE_PERIOD in restrictions && it.manga.nextUpdate > fetchWindow.second -> {
|
||||
skippedUpdates.add(it.manga to context.localize(MR.strings.skipped_reason_not_in_release_period))
|
||||
skippedUpdates.add(
|
||||
it.manga to context.localize(MR.strings.skipped_reason_not_in_release_period),
|
||||
)
|
||||
false
|
||||
}
|
||||
|
||||
|
|
|
@ -33,6 +33,7 @@ subprojects {
|
|||
|
||||
plugins.withType<BasePlugin> {
|
||||
plugins.apply("tachiyomi.lint")
|
||||
|
||||
configure<BaseExtension> {
|
||||
compileSdkVersion(AndroidConfig.compileSdk)
|
||||
defaultConfig {
|
||||
|
|
|
@ -10,5 +10,13 @@ extensions.configure<KtlintExtension>("ktlint") {
|
|||
|
||||
filter {
|
||||
exclude("**/generated/**")
|
||||
|
||||
// For some reason this is needed for Kotlin MPP
|
||||
exclude { tree ->
|
||||
val path = tree.file.path
|
||||
listOf("/generated/").any {
|
||||
path.contains(it)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Reference in a new issue