Update the preupload hooks for this repo.
* Sort Java imports.
* google-java-format/-diff are specified in the global preupload config.
* Don't specifically call out files for checkstyle; apply it to all.
Test: none
Bug: 257533056
Change-Id: I91c87cfe269de154f98db590d71bd67e3aa2bbfe
diff --git a/PREUPLOAD.cfg b/PREUPLOAD.cfg
index bd4881d..ec5af4b 100644
--- a/PREUPLOAD.cfg
+++ b/PREUPLOAD.cfg
@@ -1,20 +1,11 @@
[Builtin Hooks]
google_java_format = true
-[Tool Paths]
-google-java-format = ${REPO_ROOT}/prebuilts/tools/common/google-java-format/google-java-format
-google-java-format-diff = ${REPO_ROOT}/prebuilts/tools/common/google-java-format/google-java-format-diff.py
+[Builtin Hooks Options]
+google_java_format = --sort-imports
[Hook Scripts]
checkstyle_hook = ${REPO_ROOT}/prebuilts/checkstyle/checkstyle.py --sha ${PREUPLOAD_COMMIT}
- -fw libraries/annotations
- libraries/aupt-lib
- libraries/base-app-helpers
- libraries/launcher-helper
- libraries/metrics-helper
- libraries/power-helper
- libraries/system-helpers
- libraries/timeresult-helpers
ktlint_hook = ${REPO_ROOT}/prebuilts/ktlint/ktlint.py --no-verify-format -f ${PREUPLOAD_FILES}