PlayerAndroid/spotless.gradle
2021-10-21 17:00:36 +05:30

30 lines
No EOL
794 B
Groovy

apply plugin: "com.diffplug.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()
}
}