Fix lint check on generated files

This commit is contained in:
arkon 2023-11-18 13:45:17 -05:00
parent a791de47e4
commit faa587d0e4
3 changed files with 12 additions and 1 deletions

View file

@ -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
}

View file

@ -33,6 +33,7 @@ subprojects {
plugins.withType<BasePlugin> {
plugins.apply("tachiyomi.lint")
configure<BaseExtension> {
compileSdkVersion(AndroidConfig.compileSdk)
defaultConfig {

View file

@ -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)
}
}
}
}