Skip to content

Commit a96b24d

Browse files
committed
Introduce ktlint to build.
* This will enable the ktlint gradle plugin * Adds a `.editorconfig` file to the project
1 parent da820d9 commit a96b24d

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

.editorconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[*.{kt,kts}]
2+
max_line_length = 70

build.gradle.kts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
plugins {
2+
id("org.jlleitschuh.gradle.ktlint") version "9.2.1"
23
kotlin("jvm") version "1.3.21"
34
}
45

@@ -23,3 +24,8 @@ repositories {
2324
jcenter()
2425
maven("https://dl.bintray.com/kotlin/kotlinx")
2526
}
27+
28+
ktlint {
29+
verbose.set(true)
30+
disabledRules.set(setOf("comment-spacing", "filename"))
31+
}

settings.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+

0 commit comments

Comments
 (0)