summaryrefslogtreecommitdiff
path: root/PREUPLOAD.cfg
diff options
context:
space:
mode:
author David Duarte <licorne@google.com> 2023-03-28 20:03:16 +0000
committer David Duarte <licorne@google.com> 2023-05-03 05:31:27 +0000
commit689e5d365a77abe571e91c414d1ea1378b3dd19a (patch)
treeb7e700ada969635eb30b0f5239445f506d78b00b /PREUPLOAD.cfg
parent1f3cdb147599ec3a10bbec6f3f4c5430f1bc9473 (diff)
Add ktfmt to PREUPLOAD.cfg
Test: manual with pre-upload.py Change-Id: I42876cc232115d07d6b9f2131df5b43f8698738a Bug: 262605980
Diffstat (limited to 'PREUPLOAD.cfg')
-rw-r--r--PREUPLOAD.cfg5
1 files changed, 5 insertions, 0 deletions
diff --git a/PREUPLOAD.cfg b/PREUPLOAD.cfg
index 2bc46fa3ff..ea65a03e97 100644
--- a/PREUPLOAD.cfg
+++ b/PREUPLOAD.cfg
@@ -5,11 +5,13 @@ ignore_merged_commits = true
clang_format = true
rustfmt = true
bpfmt = true
+ktfmt = true
[Builtin Hooks Options]
rustfmt = --config-path=rustfmt.toml
# Only turn on clang-format check for C and C++ headers and sources
clang_format = --commit ${PREUPLOAD_COMMIT} --style file --extensions c,h,cc,cpp,hpp
+ktfmt = --kotlinlang-style
[Hook Scripts]
checkstyle_hook = ${REPO_ROOT}/prebuilts/checkstyle/checkstyle.py --sha ${PREUPLOAD_COMMIT}
@@ -20,3 +22,6 @@ checkstyle_hook = ${REPO_ROOT}/prebuilts/checkstyle/checkstyle.py --sha ${PREUPL
service/
aosp_first = ${REPO_ROOT}/frameworks/base/tools/aosp/aosp_sha.sh ${PREUPLOAD_COMMIT} ${PREUPLOAD_FILES}
yapf_hook = ./system/tools/scripts/yapf_checker.py
+
+[Tool Paths]
+ktfmt = ${REPO_ROOT}/packages/modules/Bluetooth/tools/ktfmt