Skip to content

Commit

Permalink
Update plugin kotlinter to v4 (#130)
Browse files Browse the repository at this point in the history
  • Loading branch information
juul-mobile-bot authored Nov 3, 2023
1 parent 20a27c9 commit 138e003
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
10 changes: 10 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
[*.{kt,kts}]
ij_kotlin_allow_trailing_comma = true
ij_kotlin_allow_trailing_comma_on_call_site = true

ktlint_standard_blank-line-before-declaration = disabled
ktlint_standard_function-naming = disabled
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
4 changes: 3 additions & 1 deletion core/src/jsMain/kotlin/Exceptions.kt
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,6 @@ public class EventHandlerException(cause: Throwable?, event: Event) : EventExcep

public class ErrorEventException(event: Event) : EventException("An error event was received.", cause = null, event)
public class OpenBlockedException(public val name: String, event: Event) : EventException("Resource in use: $name.", cause = null, event)
public class AbortTransactionException(event: Event) : EventException("Transaction aborted while waiting for completion.", cause = null, event)
public class AbortTransactionException(
event: Event,
) : EventException("Transaction aborted while waiting for completion.", cause = null, event)
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ coroutines-core = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-core", ve
[plugins]
dokka = { id = "org.jetbrains.dokka", version = "1.9.10" }
kotlin-multiplatform = { id = "org.jetbrains.kotlin.multiplatform", 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" }

0 comments on commit 138e003

Please sign in to comment.