summaryrefslogtreecommitdiff
path: root/PREUPLOAD.cfg
diff options
context:
space:
mode:
author Jordan Demeulenaere <jdemeulenaere@google.com> 2024-05-29 16:23:57 +0200
committer Jordan Demeulenaere <jdemeulenaere@google.com> 2024-05-29 16:35:49 +0200
commit40ab510a392dddd676127518c135b0cbbb282675 (patch)
tree8f49a39510f4eb90ced764f05fbaf13dd15924d5 /PREUPLOAD.cfg
parenta5734e47268d2b02e993580a022c4aa0be3a351a (diff)
Replace ktfmt.py hook by built-in hook in IntentResolver/
This CL replaces the ktfmt.py hook of this repository by the builtin ktfmt hook. This will allow to delete our custom hook and provide features like automatic fixup (see http://screen/5uXuuPgs7oL83c2). Note that this also means that this CL is upgrading ktfmt from v0.43 to v0.49, so it is expected to see some minor formatting diffs on existing files after this CL is submitted. Bug: 342153000 Test: N/A Flag: NONE Repohook Update Change-Id: I340e39ca307247806d25d8da11b3af96ee4d431a
Diffstat (limited to 'PREUPLOAD.cfg')
-rw-r--r--PREUPLOAD.cfg11
1 files changed, 9 insertions, 2 deletions
diff --git a/PREUPLOAD.cfg b/PREUPLOAD.cfg
index 40f05275..3d235dc4 100644
--- a/PREUPLOAD.cfg
+++ b/PREUPLOAD.cfg
@@ -1,6 +1,13 @@
+[Builtin Hooks]
+ktfmt = true
+
+[Builtin Hooks Options]
+ktfmt = --kotlinlang-style
+
[Hook Scripts]
checkstyle_hook = ${REPO_ROOT}/prebuilts/checkstyle/checkstyle.py --sha ${PREUPLOAD_COMMIT}
-ktfmt_hook = ${REPO_ROOT}/external/ktfmt/ktfmt.py --check ${PREUPLOAD_FILES}
-
ktlint_hook = ${REPO_ROOT}/prebuilts/ktlint/ktlint.py --no-verify-format -f ${PREUPLOAD_FILES}
+
+[Tool Paths]
+ktfmt = ${REPO_ROOT}/prebuilts/build-tools/common/framework/ktfmt.jar