2024-01-04 17:55:52 +05:30
|
|
|
spotless {
|
2025-01-07 03:29:29 -08:00
|
|
|
ratchetFrom 'origin/master'
|
|
|
|
|
|
2024-01-04 17:55:52 +05:30
|
|
|
format 'misc', {
|
|
|
|
|
target '**/*.gradle', '**/*.md', '**/.gitignore'
|
|
|
|
|
|
|
|
|
|
trimTrailingWhitespace()
|
2025-01-07 03:29:29 -08:00
|
|
|
leadingTabsToSpaces()
|
2024-01-04 17:55:52 +05:30
|
|
|
endWithNewline()
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
kotlin {
|
|
|
|
|
target '**/*.kt'
|
|
|
|
|
|
|
|
|
|
licenseHeaderFile rootProject.file('spotless.license')
|
|
|
|
|
trimTrailingWhitespace()
|
2025-01-07 03:29:29 -08:00
|
|
|
leadingTabsToSpaces()
|
2024-01-04 17:55:52 +05:30
|
|
|
endWithNewline()
|
|
|
|
|
ktfmt().kotlinlangStyle()
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
java {
|
|
|
|
|
target '**/*.java'
|
|
|
|
|
|
|
|
|
|
licenseHeaderFile rootProject.file('spotless.license')
|
|
|
|
|
trimTrailingWhitespace()
|
2025-01-07 03:29:29 -08:00
|
|
|
leadingTabsToSpaces()
|
2024-01-04 17:55:52 +05:30
|
|
|
endWithNewline()
|
|
|
|
|
removeUnusedImports()
|
|
|
|
|
googleJavaFormat().aosp()
|
|
|
|
|
}
|
|
|
|
|
}
|