From 2f5e09b29207354cd6abbf12f10fb202ccc4dec8 Mon Sep 17 00:00:00 2001 From: arkon Date: Sun, 7 Feb 2021 15:26:49 -0500 Subject: [PATCH] Add ktlint-disable directive to generated files --- common.gradle | 4 ---- .../java/eu/kanade/tachiyomi/multisrc/ThemeSourceGenerator.kt | 2 +- .../eu/kanade/tachiyomi/extension/all/madara/MadaraFactory.kt | 2 -- 3 files changed, 1 insertion(+), 7 deletions(-) diff --git a/common.gradle b/common.gradle index a59729e5f..02315cfd8 100644 --- a/common.gradle +++ b/common.gradle @@ -58,9 +58,5 @@ repositories { apply from: "$rootDir/common-dependencies.gradle" -lintKotlinMain { - exclude 'generated-src/**/*.kt' -} - preBuild.dependsOn(lintKotlin) lintKotlin.dependsOn(formatKotlin) diff --git a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/ThemeSourceGenerator.kt b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/ThemeSourceGenerator.kt index c9c31280b..f24fab83d 100644 --- a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/ThemeSourceGenerator.kt +++ b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/ThemeSourceGenerator.kt @@ -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, ".")} diff --git a/src/all/madara/src/eu/kanade/tachiyomi/extension/all/madara/MadaraFactory.kt b/src/all/madara/src/eu/kanade/tachiyomi/extension/all/madara/MadaraFactory.kt index 440503684..98bd431c9 100644 --- a/src/all/madara/src/eu/kanade/tachiyomi/extension/all/madara/MadaraFactory.kt +++ b/src/all/madara/src/eu/kanade/tachiyomi/extension/all/madara/MadaraFactory.kt @@ -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")