Android-Password-Store/buildSrc/src/main/java/Spotless.kt

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

20 lines
439 B
Kotlin
Raw Normal View History

/*
* Copyright © 2014-2021 The Android Password Store Authors. All Rights Reserved.
* SPDX-License-Identifier: GPL-3.0-only
*/
import com.diffplug.gradle.spotless.SpotlessExtension
internal fun SpotlessExtension.configureSpotless() {
kotlin {
ktfmt().googleStyle()
target("src/**/*.kt", "**/*.kts")
}
format("xml") {
target("**/*.xml")
trimTrailingWhitespace()
indentWithSpaces()
endWithNewline()
}
}