Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
root = true

[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true

[*.{kt,kts}]
indent_style = space
indent_size = 4

ktlint_code_style = ktlint_official

max_line_length = 140

ij_kotlin_name_count_to_use_star_import = 2147483647
ij_kotlin_name_count_to_use_star_import_for_members = 2147483647
ij_kotlin_packages_to_use_import_on_demand = unset

ktlint = disabled
12 changes: 12 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ plugins {
kotlin("jvm") version Versions.KOTLIN apply false
kotlin("plugin.serialization") version Versions.KOTLIN
id("com.gradleup.shadow") version Versions.SHADOW_JAR
id("org.jlleitschuh.gradle.ktlint") version "14.0.1"
base
}

Expand All @@ -24,6 +25,17 @@ allprojects {
}

subprojects {
apply(plugin = "org.jlleitschuh.gradle.ktlint")

ktlint {
version.set("1.8.0")
android.set(false)
verbose.set(true)
outputToConsole.set(true)
coloredOutput.set(true)
ignoreFailures.set(false)
}

plugins.withId("org.jetbrains.kotlin.multiplatform") {
extensions.configure<KotlinMultiplatformExtension> {
jvmToolchain(21)
Expand Down