Skip to content

Commit

Permalink
added ktlint formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
1zun4 committed Apr 14, 2021
1 parent 55f042d commit 6199a55
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
root = true

[*.kt]
indent_style = space
indent_size = 4
[*]
end_of_line = lf
charset = utf-8
insert_final_newline = true

[*.{kt,kts}]
indent_style = space
indent_size = 4
trim_trailing_whitespace = true
insert_final_newline = true
13 changes: 13 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,23 @@ plugins {
id "fabric-loom"
id "org.jetbrains.kotlin.jvm"
id "com.github.johnrengelman.shadow" version "6.1.0"
id "org.jlleitschuh.gradle.ktlint" version "10.0.0"
}

import net.fabricmc.loom.task.RemapJarTask

ktlint {
enableExperimentalRules = true
ignoreFailures = true
disabledRules = ["no-wildcard-imports", "no-blank-line-before-rbrace"]

reporters {
reporter "plain"
reporter "checkstyle"
}

}

sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8

Expand Down

0 comments on commit 6199a55

Please sign in to comment.