33 lines
711 B
Groovy
33 lines
711 B
Groovy
spotless {
|
|
ratchetFrom 'origin/master'
|
|
|
|
format 'misc', {
|
|
target '**/*.gradle', '**/*.md', '**/.gitignore'
|
|
|
|
trimTrailingWhitespace()
|
|
leadingTabsToSpaces()
|
|
endWithNewline()
|
|
}
|
|
|
|
kotlin {
|
|
target '**/*.kt'
|
|
|
|
licenseHeaderFile rootProject.file('spotless.license')
|
|
trimTrailingWhitespace()
|
|
leadingTabsToSpaces()
|
|
endWithNewline()
|
|
ktfmt().kotlinlangStyle()
|
|
}
|
|
|
|
java {
|
|
target '**/*.java'
|
|
|
|
licenseHeaderFile rootProject.file('spotless.license')
|
|
trimTrailingWhitespace()
|
|
leadingTabsToSpaces()
|
|
endWithNewline()
|
|
removeUnusedImports()
|
|
googleJavaFormat().aosp()
|
|
}
|
|
}
|