2022-09-21 17:40:35 +05:30
|
|
|
spotless {
|
2024-05-21 06:18:26 -07:00
|
|
|
ratchetFrom 'origin/master'
|
|
|
|
|
|
2022-09-21 17:40:35 +05:30
|
|
|
format 'misc', {
|
|
|
|
|
target '**/*.gradle', '**/*.md', '**/.gitignore'
|
|
|
|
|
|
|
|
|
|
trimTrailingWhitespace()
|
2025-01-07 18:32:20 +05:30
|
|
|
leadingTabsToSpaces()
|
2022-09-21 17:40:35 +05:30
|
|
|
endWithNewline()
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
kotlin {
|
2024-05-05 07:22:55 -07:00
|
|
|
target '**/*.kt'
|
2022-09-22 09:56:06 +05:30
|
|
|
|
2022-09-22 11:55:58 +05:30
|
|
|
licenseHeaderFile rootProject.file('spotless.license')
|
|
|
|
|
trimTrailingWhitespace()
|
2025-01-07 18:32:20 +05:30
|
|
|
leadingTabsToSpaces()
|
2022-09-22 11:55:58 +05:30
|
|
|
endWithNewline()
|
2023-07-27 19:33:27 +05:30
|
|
|
ktfmt().kotlinlangStyle()
|
2022-09-22 11:55:58 +05:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
java {
|
|
|
|
|
target '**/*.java'
|
|
|
|
|
|
|
|
|
|
licenseHeaderFile rootProject.file('spotless.license')
|
2022-09-21 17:40:35 +05:30
|
|
|
trimTrailingWhitespace()
|
2025-01-07 18:32:20 +05:30
|
|
|
leadingTabsToSpaces()
|
2022-09-21 17:40:35 +05:30
|
|
|
endWithNewline()
|
2022-09-22 12:13:51 +05:30
|
|
|
removeUnusedImports()
|
2023-07-27 19:33:27 +05:30
|
|
|
googleJavaFormat().aosp()
|
2022-09-21 17:40:35 +05:30
|
|
|
}
|
|
|
|
|
}
|