diff options
author | liamwhite <liamwhite@users.noreply.github.com> | 2024-01-14 02:23:02 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-14 02:23:02 +0100 |
commit | da714a362b159cfc02bd606a0dedf0d50f4dfa79 (patch) | |
tree | 742072bed52d07dae8aa7a8e6e22d640aca9fdb7 /src/android/app | |
parent | Merge pull request #12605 from german77/abstract (diff) | |
parent | android: Move ktlintCheck to yuzu-verify (diff) | |
download | yuzu-da714a362b159cfc02bd606a0dedf0d50f4dfa79.tar yuzu-da714a362b159cfc02bd606a0dedf0d50f4dfa79.tar.gz yuzu-da714a362b159cfc02bd606a0dedf0d50f4dfa79.tar.bz2 yuzu-da714a362b159cfc02bd606a0dedf0d50f4dfa79.tar.lz yuzu-da714a362b159cfc02bd606a0dedf0d50f4dfa79.tar.xz yuzu-da714a362b159cfc02bd606a0dedf0d50f4dfa79.tar.zst yuzu-da714a362b159cfc02bd606a0dedf0d50f4dfa79.zip |
Diffstat (limited to 'src/android/app')
-rw-r--r-- | src/android/app/build.gradle.kts | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/android/app/build.gradle.kts b/src/android/app/build.gradle.kts index 53aafa08c..d62254dd3 100644 --- a/src/android/app/build.gradle.kts +++ b/src/android/app/build.gradle.kts @@ -188,8 +188,15 @@ tasks.create<Delete>("ktlintReset") { delete(File(buildDir.path + File.separator + "intermediates/ktLint")) } +val showFormatHelp = { + logger.lifecycle( + "If this check fails, please try running \"gradlew ktlintFormat\" for automatic " + + "codestyle fixes" + ) +} +tasks.getByPath("ktlintKotlinScriptCheck").doFirst { showFormatHelp.invoke() } +tasks.getByPath("ktlintMainSourceSetCheck").doFirst { showFormatHelp.invoke() } tasks.getByPath("loadKtlintReporters").dependsOn("ktlintReset") -tasks.getByPath("preBuild").dependsOn("ktlintCheck") ktlint { version.set("0.47.1") |