Skip to content

Commit

Permalink
Disabled undesired new ktlint rules
Browse files Browse the repository at this point in the history
  • Loading branch information
twyatt committed Oct 23, 2023
1 parent 133d8f4 commit 0cf11ac
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
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

0 comments on commit 0cf11ac

Please sign in to comment.