summaryrefslogtreecommitdiff
path: root/PREUPLOAD.cfg
diff options
context:
space:
mode:
author Tyler Saunders <tylersaunders@google.com> 2024-01-18 08:02:50 +0000
committer Tyler Saunders <tylersaunders@google.com> 2024-01-18 08:17:29 +0000
commitf7c406c2baa1814b2acd45ceabc30f45f6a2576b (patch)
tree973a9aea57df78a82bc0ba821c1b620310d381cf /PREUPLOAD.cfg
parent5abadae00a9f9944538a9a85c9f056a9228c69c3 (diff)
Add ktfmt, ktlint and bpfmt hooks to MediaProvider
Test: n/a Bug: n/a Change-Id: I5d2865bc25702822132ee1618fff21bedc8338f3
Diffstat (limited to 'PREUPLOAD.cfg')
-rw-r--r--PREUPLOAD.cfg8
1 files changed, 7 insertions, 1 deletions
diff --git a/PREUPLOAD.cfg b/PREUPLOAD.cfg
index 0e2dd2f98..1e0d5a0cf 100644
--- a/PREUPLOAD.cfg
+++ b/PREUPLOAD.cfg
@@ -1,10 +1,16 @@
[Builtin Hooks]
+bpfmt = true
clang_format = true
+ktfmt = true
[Builtin Hooks Options]
clang_format = --commit ${PREUPLOAD_COMMIT} --style file --extensions c,h,cc,cpp
+ktfmt = --kotlinlang-style
[Hook Scripts]
+checkstyle_hook = ${REPO_ROOT}/prebuilts/checkstyle/checkstyle.py --sha ${PREUPLOAD_COMMIT}
hidden_api_txt_checksorted_hook = ${REPO_ROOT}/tools/platform-compat/hiddenapi/checksorted_sha.sh ${PREUPLOAD_COMMIT} ${REPO_ROOT}
+ktlint_hook = ${REPO_ROOT}/prebuilts/ktlint/ktlint.py --no-verify-format -f ${PREUPLOAD_FILES}
-checkstyle_hook = ${REPO_ROOT}/prebuilts/checkstyle/checkstyle.py --sha ${PREUPLOAD_COMMIT}
+[Tool Paths]
+ktfmt = ${REPO_ROOT}/packages/providers/MediaProvider/tools/ktfmt