Add ktlint-disable directive to generated files

This commit is contained in:
arkon 2021-02-07 15:26:49 -05:00
parent 473a1fbc4e
commit 2f5e09b292
3 changed files with 1 additions and 7 deletions

View file

@ -58,9 +58,5 @@ repositories {
apply from: "$rootDir/common-dependencies.gradle"
lintKotlinMain {
exclude 'generated-src/**/*.kt'
}
preBuild.dependsOn(lintKotlin)
lintKotlin.dependsOn(formatKotlin)

View file

@ -167,7 +167,7 @@ interface ThemeSourceGenerator {
}
}
File("$classPath/${source.className}.kt").writeText("""
File("$classPath/${source.className}.kt").writeText("""/* ktlint-disable */
// THIS FILE IS AUTO-GENERATED; DO NOT EDIT
package eu.kanade.tachiyomi.extension.${pkgNameSuffix(source, ".")}

View file

@ -415,7 +415,6 @@ class ManwahentaiMe : Madara("Manwahentai.me", "https://manhwahentai.me", "en")
class Manga3asq : Madara("مانجا العاشق", "https://3asq.org", "ar")
class Milftoon : Madara("Milftoon", "https://milftoon.xxx", "en") {
override fun popularMangaRequest(page: Int): Request = GET("$baseUrl/page/$page/?m_orderby=views", headers)
override fun latestUpdatesRequest(page: Int): Request = GET("$baseUrl/page/$page/?m_orderby=latest", headers)
@ -725,7 +724,6 @@ class ManhuaPlus : Madara("Manhua Plus", "https://manhuaplus.com", "en") {
override val pageListParseSelector = "li.blocks-gallery-item"
}
@Nsfw
class ToonilyNet : Madara("Toonily.net", "https://toonily.net", "en")