Update Spotless and ktlint

pull/1094/head
lihenggui 7 months ago
parent 63bba2ede7
commit 0490e014f6

@ -4,3 +4,4 @@
[*.{kt,kts}]
ij_kotlin_allow_trailing_comma=true
ij_kotlin_allow_trailing_comma_on_call_site=true
ktlint_function_naming_ignore_when_annotated_with=Composable

@ -14,10 +14,10 @@
* limitations under the License.
*/
val ktlintVersion = "0.48.1"
val ktlintVersion = "1.0.1"
initscript {
val spotlessVersion = "6.22.0"
val spotlessVersion = "6.23.3"
repositories {
mavenCentral()
@ -35,7 +35,11 @@ rootProject {
kotlin {
target("**/*.kt")
targetExclude("**/build/**/*.kt")
ktlint(ktlintVersion).userData(mapOf("android" to "true"))
ktlint(ktlintVersion).editorConfigOverride(
mapOf(
"android" to "true",
),
)
licenseHeaderFile(rootProject.file("spotless/copyright.kt"))
}
format("kts") {

Loading…
Cancel
Save