forked from RetroMusicPlayer/RetroMusicPlayer
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathspotless.gradle
More file actions
30 lines (29 loc) · 801 Bytes
/
spotless.gradle
File metadata and controls
30 lines (29 loc) · 801 Bytes
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
apply plugin: "com.diffplug.gradle.spotless"
spotless {
java {
target "src/*.java"
trimTrailingWhitespace()
removeUnusedImports()
googleJavaFormat()
endWithNewline()
}
kotlin {
target "src/*.kt"
ktlint().userData(['indent_size': '4', 'continuation_indent_size': '2', 'disabled_rules': 'no-wildcard-imports'])
licenseHeaderFile '../spotless.license.kt'
trimTrailingWhitespace()
endWithNewline()
}
format 'misc', {
target '**/*.gradle', '**/*.md', '**/.gitignore'
indentWithSpaces()
trimTrailingWhitespace()
endWithNewline()
}
format 'xml', {
target 'src/*.xml'
indentWithSpaces()
trimTrailingWhitespace()
endWithNewline()
}
}