Use spotless's default ktlint version (#657)
* Use spotless's default ktlint version * Suppress property naming rule for backing property
This commit is contained in:
1 parent
a9a763ae5f
commit
79b167002c
3 files changed
+4
-8
No files matched your search
@@ -295,16 +295,14 @@ cargo {
|
||||
if (isRelease) profile = "release"
|
||||
}
|
||||
|
||||
val ktlintVersion = libs.versions.ktlint.get()
|
||||
|
||||
spotless {
|
||||
kotlin {
|
||||
// https://github.com/diffplug/spotless/issues/111
|
||||
target("src/**/*.kt")
|
||||
ktlint(ktlintVersion)
|
||||
ktlint()
|
||||
}
|
||||
kotlinGradle {
|
||||
ktlint(ktlintVersion)
|
||||
ktlint()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -313,6 +313,7 @@ fun GalleryDetailScreen(args: GalleryDetailScreenArgs, navigator: DestinationsNa
|
||||
return
|
||||
}
|
||||
class ArchiveListDialogHelper : DialogInterface.OnDismissListener {
|
||||
@Suppress("ktlint:standard:property-naming")
|
||||
private var _binding: DialogArchiveListBinding? = null
|
||||
private val binding get() = _binding!!
|
||||
private var mJob: Job? = null
|
||||
@@ -663,6 +664,7 @@ fun GalleryDetailScreen(args: GalleryDetailScreenArgs, navigator: DestinationsNa
|
||||
val granted = isAtLeastQ || context.requestPermission(Manifest.permission.WRITE_EXTERNAL_STORAGE)
|
||||
if (granted) {
|
||||
class TorrentListDialogHelper : DialogInterface.OnDismissListener {
|
||||
@Suppress("ktlint:standard:property-naming")
|
||||
private var _binding: DialogTorrentListBinding? = null
|
||||
private val binding get() = _binding!!
|
||||
private var mJob: Job? = null
|
||||
|
||||
@@ -26,7 +26,6 @@ kotlinx-coroutines = "1.8.0-RC2"
|
||||
kotlinx-datetime = "0.5.0"
|
||||
kotlinx-serialization = "1.6.2"
|
||||
ksp = "2.0.0-Beta3-1.0.17"
|
||||
ktlint = "1.0.1"
|
||||
ktor = "3.0.0-beta-1"
|
||||
okhttp3 = "5.0.0-alpha.12"
|
||||
okio = "3.7.0"
|
||||
@@ -97,9 +96,6 @@ kotlinx-serialization-cbor = { module = "org.jetbrains.kotlinx:kotlinx-serializa
|
||||
kotlinx-serialization-json = { module = "org.jetbrains.kotlinx:kotlinx-serialization-json", version.ref = "kotlinx-serialization" }
|
||||
kotlinx-serialization-json-okio = { module = "org.jetbrains.kotlinx:kotlinx-serialization-json-okio", version.ref = "kotlinx-serialization" }
|
||||
|
||||
# For renovate
|
||||
ktlint = { module = "com.pinterest:ktlint", version.ref = "ktlint" }
|
||||
|
||||
ktor-client-okhttp = { module = "io.ktor:ktor-client-okhttp", version.ref = "ktor" }
|
||||
|
||||
material = { module = "com.google.android.material:material", version.ref = "google-android-material" }
|
||||
|
||||
Reference in new issue
Block a user