Skip to content
This repository was archived by the owner on Mar 19, 2024. It is now read-only.

Commit 257f616

Browse files
committed
ktLint check in library
1 parent 7dc81fb commit 257f616

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

.editorconfig

Lines changed: 5 additions & 0 deletions
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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,10 @@ buildscript {
77
repositories {
88
google()
99
jcenter()
10+
maven { url "https://plugins.gradle.org/m2/" }
1011
}
1112
dependencies {
13+
classpath "org.jlleitschuh.gradle:ktlint-gradle:10.0.0"
1214
classpath 'com.android.tools.build:gradle:4.1.3'
1315
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
1416
}
@@ -21,3 +23,7 @@ allprojects {
2123
maven { url 'https://jitpack.io' }
2224
}
2325
}
26+
27+
subprojects {
28+
apply plugin: "org.jlleitschuh.gradle.ktlint"
29+
}

0 commit comments

Comments
 (0)