aboutsummaryrefslogtreecommitdiff
path: root/buildSrc/src/main/java/Spotless.kt
blob: 859faf739cfa29f192350ff9d6793d3d40b6f2e4 (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/*
 * 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()
  }
}