diff --git a/.editorconfig b/.editorconfig index 0b0c8e6..38a1139 100644 --- a/.editorconfig +++ b/.editorconfig @@ -3,6 +3,16 @@ root = true [*.{kt,kts}] indent_size = 4 insert_final_newline = true + ij_kotlin_allow_trailing_comma = true ij_kotlin_allow_trailing_comma_on_call_site = true + +ktlint_standard_blank-line-before-declaration = disabled ktlint_standard_filename = 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 diff --git a/bundled/src/iosMain/kotlin/DatadogLogger.kt b/bundled/src/iosMain/kotlin/DatadogLogger.kt index 1cd3dae..01a6481 100644 --- a/bundled/src/iosMain/kotlin/DatadogLogger.kt +++ b/bundled/src/iosMain/kotlin/DatadogLogger.kt @@ -73,6 +73,7 @@ public actual class DatadogLogger actual constructor( } } +@Suppress("ktlint:standard:function-naming") private fun DDLoggerConfiguration( name: String, level: Logger.Level, diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 4a73f8e..8082fe2 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -15,6 +15,6 @@ nserrorkt = { module = "com.rickclephas.kmp:nserror-kt", version = "0.1.0" } android-library = { id = "com.android.library", version = "8.1.2" } api = { id = "binary-compatibility-validator", version = "0.13.2" } kotlin-multiplatform = { id = "org.jetbrains.kotlin.multiplatform", version = "1.9.10" } -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" } swiftpackage = { id = "io.github.luca992.multiplatform-swiftpackage", version = "2.1.4" }