RetroMusicPlayer/spotless.gradle

30 lines
794 B
Groovy
Raw Normal View History

2021-10-12 11:46:56 +05:30
apply plugin: "com.diffplug.spotless"
2020-10-06 14:16:04 +05:30
spotless {
java {
2020-10-06 14:36:16 +05:30
target "src/*.java"
2020-10-06 14:16:04 +05:30
trimTrailingWhitespace()
removeUnusedImports()
googleJavaFormat()
endWithNewline()
}
kotlin {
2020-10-06 14:36:16 +05:30
target "src/*.kt"
2020-10-06 14:16:04 +05:30
ktlint().userData(['indent_size': '4', 'continuation_indent_size': '2', 'disabled_rules': 'no-wildcard-imports'])
licenseHeaderFile '../spotless.license.kt'
trimTrailingWhitespace()
endWithNewline()
}
2020-10-06 14:37:45 +05:30
format 'misc', {
target '**/*.gradle', '**/*.md', '**/.gitignore'
indentWithSpaces()
trimTrailingWhitespace()
endWithNewline()
}
format 'xml', {
target 'src/*.xml'
indentWithSpaces()
trimTrailingWhitespace()
endWithNewline()
}
2020-10-06 14:16:04 +05:30
}