31 lines
944 B
Groovy
31 lines
944 B
Groovy
spotless {
|
|
format 'misc', {
|
|
target '**/*.gradle', '**/*.md', '**/.gitignore'
|
|
|
|
trimTrailingWhitespace()
|
|
indentWithSpaces()
|
|
endWithNewline()
|
|
}
|
|
|
|
kotlin {
|
|
target '**/navi-base/**/*.kt', '**/navi-design/**/*.kt', '**/navi-analytics/**/*.kt', '**/navi-pay/**/*.kt', '**/navi-bbps/**/*.kt', '**/navi-chat/**/*.kt', '**/application-platform/**/*.kt', '**/navi-vkyc/**/*.kt', '**/navi-common/**/*.kt', '**/navi-widgets/**/*.kt', '**/navi-mqtt/**/*.kt'
|
|
|
|
licenseHeaderFile rootProject.file('spotless.license')
|
|
trimTrailingWhitespace()
|
|
indentWithSpaces()
|
|
endWithNewline()
|
|
ktfmt().kotlinlangStyle()
|
|
}
|
|
|
|
java {
|
|
target '**/*.java'
|
|
|
|
licenseHeaderFile rootProject.file('spotless.license')
|
|
trimTrailingWhitespace()
|
|
indentWithSpaces()
|
|
endWithNewline()
|
|
removeUnusedImports()
|
|
googleJavaFormat().aosp()
|
|
}
|
|
}
|