Updated Spotless
This commit is contained in:
parent
defcd86152
commit
4b767bca54
4 changed files with 7 additions and 20 deletions
|
@ -1,30 +1,17 @@
|
|||
apply plugin: "com.diffplug.gradle.spotless"
|
||||
spotless {
|
||||
java {
|
||||
target "**/*.java"
|
||||
target "src/*.java"
|
||||
trimTrailingWhitespace()
|
||||
removeUnusedImports()
|
||||
googleJavaFormat()
|
||||
endWithNewline()
|
||||
}
|
||||
kotlin {
|
||||
target "**/*.kt"
|
||||
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 '**/*.xml'
|
||||
indentWithSpaces()
|
||||
trimTrailingWhitespace()
|
||||
endWithNewline()
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue