Don't format code in CI (#1236)

* Don't format code in CI

* format individual extensions
This commit is contained in:
stevenyomi 2024-02-13 19:38:19 +00:00 committed by Draff
parent 93d1700373
commit d9f7e58f01
7 changed files with 8 additions and 8 deletions

View File

@ -56,7 +56,9 @@ tasks {
dependsOn(lintKotlin)
}
lintKotlin {
dependsOn(formatKotlin)
if (System.getenv("CI") != "true") {
lintKotlin {
dependsOn(formatKotlin)
}
}
}

View File

@ -121,4 +121,6 @@ tasks.register("writeManifestFile") {
}
preBuild.dependsOn(writeManifestFile, lintKotlin)
lintKotlin.dependsOn(formatKotlin)
if (System.getenv("CI") != "true") {
lintKotlin.dependsOn(formatKotlin)
}

View File

@ -112,7 +112,7 @@ abstract class LectorTmo(
}
chain.proceed(request)
}
.addInterceptor() { chain ->
.addInterceptor { chain ->
if (!getSaveLastCFUrlPref()) return@addInterceptor chain.proceed(chain.request())
val request = chain.request()
val response = chain.proceed(request)

View File

@ -11,7 +11,6 @@ import eu.kanade.tachiyomi.util.asJsoup
import okhttp3.Request
import okhttp3.Response
import rx.Observable
import java.lang.Exception
import java.text.SimpleDateFormat
import java.util.Locale

View File

@ -16,7 +16,6 @@ import org.jsoup.select.Elements
import rx.Observable
import uy.kohesive.injekt.Injekt
import uy.kohesive.injekt.api.get
import java.lang.Exception
import java.text.SimpleDateFormat
import java.util.Locale

View File

@ -11,7 +11,6 @@ import eu.kanade.tachiyomi.util.asJsoup
import okhttp3.Request
import okhttp3.Response
import rx.Observable
import java.lang.Exception
import java.text.SimpleDateFormat
import java.util.Locale

View File

@ -116,7 +116,6 @@ class LerMangaOnline : ParsedHttpSource() {
private fun searchMangaBySlugParse(response: Response): MangasPage =
MangasPage(listOf(mangaDetailsParse(response.asJsoup())), false)
override fun getFilterList(): FilterList = FilterList(GenresFilter)
override fun searchMangaSelector() = latestUpdatesSelector()