Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Shivam Goyal <shivam.goyal@navi.com>
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()
|
|
}
|
|
}
|