diff options
author | t895 <clombardo169@gmail.com> | 2024-01-12 03:53:11 +0100 |
---|---|---|
committer | t895 <clombardo169@gmail.com> | 2024-01-13 23:41:01 +0100 |
commit | cdeaca73c460fa4a85d2f7d493828711f90e8747 (patch) | |
tree | 742072bed52d07dae8aa7a8e6e22d640aca9fdb7 /src/android | |
parent | Merge pull request #12605 from german77/abstract (diff) | |
download | yuzu-cdeaca73c460fa4a85d2f7d493828711f90e8747.tar yuzu-cdeaca73c460fa4a85d2f7d493828711f90e8747.tar.gz yuzu-cdeaca73c460fa4a85d2f7d493828711f90e8747.tar.bz2 yuzu-cdeaca73c460fa4a85d2f7d493828711f90e8747.tar.lz yuzu-cdeaca73c460fa4a85d2f7d493828711f90e8747.tar.xz yuzu-cdeaca73c460fa4a85d2f7d493828711f90e8747.tar.zst yuzu-cdeaca73c460fa4a85d2f7d493828711f90e8747.zip |
Diffstat (limited to 'src/android')
-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") |