For #26844: Add ktlint baseline.

home_button_fix
mcarare 3 months ago committed by mergify[bot]
parent 9490fdff71
commit 481b3655ac
  1. 4
      build.gradle
  2. 8662
      ktlint-baseline.xml

@ -210,14 +210,14 @@ tasks.register('ktlint', JavaExec) {
description = "Check Kotlin code style."
classpath = configurations.ktlint
main = "com.pinterest.ktlint.Main"
args "app/src/**/*.kt", "!**/build/**/*.kt"
args "app/src/**/*.kt", "!**/build/**/*.kt", "--baseline=ktlint-baseline.xml"
}
task ktlintFormat(type: JavaExec, group: "formatting") {
description = "Fix Kotlin code style deviations."
classpath = configurations.ktlint
main = "com.pinterest.ktlint.Main"
args "-F", "app/src/**/*.kt", "!**/build/**/*.kt"
args "-F", "app/src/**/*.kt", "!**/build/**/*.kt", "--baseline=ktlint-baseline.xml"
}
tasks.withType(io.gitlab.arturbosch.detekt.Detekt.class).configureEach {

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save