-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathspotless.gradle
40 lines (40 loc) · 983 Bytes
/
spotless.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
spotless {
java {
target '**/*.java'
googleJavaFormat().aosp().reflowLongStrings(true)
removeUnusedImports()
trimTrailingWhitespace()
indentWithSpaces()
endWithNewline()
}
kotlin {
target '**/*.kt'
ktfmt().googleStyle().configure {
it.setBlockIndent(4)
it.setContinuationIndent(4)
}
ktlint()
trimTrailingWhitespace()
indentWithSpaces()
endWithNewline()
}
format 'misc', {
target '**/*.gradle', '**/*.md', '**/.gitignore'
indentWithSpaces()
trimTrailingWhitespace()
endWithNewline()
}
format 'xml', {
target '**/*.xml'
targetExclude '.idea/**/*.xml'
indentWithSpaces()
trimTrailingWhitespace()
endWithNewline()
}
format 'yml', {
target '**/*.yml'
indentWithSpaces()
trimTrailingWhitespace()
endWithNewline()
}
}