Skip to content

Commit 8e96b68

Browse files
hannesa2abelgardep
authored andcommitted
Introduce ktLint
1 parent c9a5ea9 commit 8e96b68

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

.editorconfig

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[*]
2+
max_line_length = 150
3+
4+
[*.{kt, kts}]
5+
disabled_rules=no-consecutive-blank-lines,no-wildcard-imports,import-ordering,max-line-length,import-ordering,no-blank-line-before-rbrace,final-newline,indent,no-multi-spaces,comment-spacing,parameter-list-wrapping

build.gradle

+6
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,13 @@ buildscript {
4343
repositories {
4444
google()
4545
jcenter()
46+
maven { url "https://plugins.gradle.org/m2/" }
4647
}
4748

4849
dependencies {
4950
classpath 'com.android.tools.build:gradle:4.1.3'
5051
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
52+
classpath "org.jlleitschuh.gradle:ktlint-gradle:10.0.0"
5153
}
5254
}
5355

@@ -64,3 +66,7 @@ allprojects {
6466
}
6567
}
6668
}
69+
70+
subprojects {
71+
apply plugin: "org.jlleitschuh.gradle.ktlint"
72+
}

0 commit comments

Comments
 (0)