Skip to content

Commit 26c9eca

Browse files
author
Lucas Sales
committed
Adding ktlint + spotless
1 parent aaa9489 commit 26c9eca

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

build.gradle

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,23 @@ buildscript {
4949
}
5050
}
5151

52+
plugins {
53+
id "com.diffplug.spotless" version "5.9.0"
54+
}
55+
5256
allprojects {
5357
repositories {
5458
google()
5559
jcenter()
5660
}
5761
}
5862

59-
task clean(type: Delete) {
60-
delete rootProject.buildDir
63+
subprojects {
64+
apply plugin: 'com.diffplug.spotless'
65+
spotless {
66+
kotlin {
67+
target "**/*.kt"
68+
ktlint('0.40.0')
69+
}
70+
}
6171
}

0 commit comments

Comments
 (0)