Skip to content

Commit

Permalink
Update plugin kotlinter to v4 (#239)
Browse files Browse the repository at this point in the history
  • Loading branch information
juul-mobile-bot committed Oct 24, 2023
1 parent 4e5d4cf commit fb9e419
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 1 deletion.
8 changes: 8 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
[*.{kt,kts}]
ij_kotlin_allow_trailing_comma = true
ij_kotlin_allow_trailing_comma_on_call_site = true

ktlint_standard_function-signature = disabled
ktlint_standard_no-blank-line-in-list = disabled
ktlint_standard_no-empty-first-line-in-class-body = disabled

# `string-template-indent` is disabled because it depends on `multiline-expression-wrapping`.
ktlint_standard_multiline-expression-wrapping = disabled
ktlint_standard_string-template-indent = disabled
1 change: 1 addition & 0 deletions compile/src/main/kotlin/Logging.kt
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,6 @@ internal class KspTuulboxLogger(
}

override fun hashCode(): Int = backend.hashCode()

override fun equals(other: Any?): Boolean = other is KspTuulboxLogger && backend == other.backend
}
1 change: 1 addition & 0 deletions compile/src/main/kotlin/read/AsReceiver.kt
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ internal fun KSClassDeclaration.asReceiver(): Receiver {
}
else -> {
val message = buildString {
@Suppress("ktlint:standard:max-line-length", "ktlint:standard:argument-list-wrapping")
append("@Exercise annotated class must be a subclass of Activity, Fragment, or Service; or, must also be annotated @AsStub. Found classes:")
for (superClass in superClasses) {
append("\n ", superClass)
Expand Down
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ android-application = { id = "com.android.application", version.ref = "agp" }
android-library = { id = "com.android.library", version.ref = "agp" }
dokka = { id = "org.jetbrains.dokka", version = "1.9.0" }
kotlin-jvm = { id = "org.jetbrains.kotlin.jvm", version.ref = "kotlin" }
kotlinter = { id = "org.jmailen.kotlinter", version = "3.16.0" }
kotlinter = { id = "org.jmailen.kotlinter", version = "4.0.0" }
maven-publish = { id = "com.vanniktech.maven.publish", version = "0.25.3" }
validator = { id = "binary-compatibility-validator", version = "0.13.0" }

0 comments on commit fb9e419

Please sign in to comment.