1*d57664e9SAndroid Build Coastguard Worker[Builtin Hooks] 2*d57664e9SAndroid Build Coastguard Workerclang_format = true 3*d57664e9SAndroid Build Coastguard Workerbpfmt = true 4*d57664e9SAndroid Build Coastguard Workerktfmt = true 5*d57664e9SAndroid Build Coastguard Worker 6*d57664e9SAndroid Build Coastguard Worker[Builtin Hooks Options] 7*d57664e9SAndroid Build Coastguard Worker# Only turn on clang-format check for the following subfolders. 8*d57664e9SAndroid Build Coastguard Workerclang_format = --commit ${PREUPLOAD_COMMIT} --style file --extensions c,h,cc,cpp 9*d57664e9SAndroid Build Coastguard Worker cmds/hid/ 10*d57664e9SAndroid Build Coastguard Worker cmds/input/ 11*d57664e9SAndroid Build Coastguard Worker cmds/uinput/ 12*d57664e9SAndroid Build Coastguard Worker core/jni/ 13*d57664e9SAndroid Build Coastguard Worker libs/hwui/ 14*d57664e9SAndroid Build Coastguard Worker libs/input/ 15*d57664e9SAndroid Build Coastguard Worker native/ 16*d57664e9SAndroid Build Coastguard Worker services/core/jni/ 17*d57664e9SAndroid Build Coastguard Worker services/incremental/ 18*d57664e9SAndroid Build Coastguard Worker tests/ 19*d57664e9SAndroid Build Coastguard Worker tools/ 20*d57664e9SAndroid Build Coastguard Workerbpfmt = -d 21*d57664e9SAndroid Build Coastguard Workerktfmt = --kotlinlang-style --include-dirs=services/permission,packages/SystemUI,libs/WindowManager/Shell/src/com/android/wm/shell/freeform,libs/WindowManager/Shell/src/com/android/wm/shell/desktopmode 22*d57664e9SAndroid Build Coastguard Worker 23*d57664e9SAndroid Build Coastguard Worker[Hook Scripts] 24*d57664e9SAndroid Build Coastguard Workercheckstyle_hook = ${REPO_ROOT}/prebuilts/checkstyle/checkstyle.py --sha ${PREUPLOAD_COMMIT} 25*d57664e9SAndroid Build Coastguard Worker 26*d57664e9SAndroid Build Coastguard Workerhidden_api_txt_checksorted_hook = ${REPO_ROOT}/tools/platform-compat/hiddenapi/checksorted_sha.sh ${PREUPLOAD_COMMIT} ${REPO_ROOT} 27*d57664e9SAndroid Build Coastguard Worker 28*d57664e9SAndroid Build Coastguard Workerhidden_api_txt_exclude_hook = ${REPO_ROOT}/frameworks/base/tools/hiddenapi/exclude.sh ${PREUPLOAD_COMMIT} ${REPO_ROOT} 29*d57664e9SAndroid Build Coastguard Worker 30*d57664e9SAndroid Build Coastguard Workerktlint_hook = ${REPO_ROOT}/prebuilts/ktlint/ktlint.py --no-verify-format -f ${PREUPLOAD_FILES} 31*d57664e9SAndroid Build Coastguard Worker 32*d57664e9SAndroid Build Coastguard Worker# This flag check hook runs only for "packages/SystemUI" subdirectory. If you want to include this check for other subdirectories, please modify flag_check.py. 33*d57664e9SAndroid Build Coastguard Workerflag_hook = ${REPO_ROOT}/frameworks/base/packages/SystemUI/flag_check.py --msg=${PREUPLOAD_COMMIT_MESSAGE} --files=${PREUPLOAD_FILES} --project=${REPO_PROJECT} 34*d57664e9SAndroid Build Coastguard Worker 35*d57664e9SAndroid Build Coastguard Worker[Tool Paths] 36*d57664e9SAndroid Build Coastguard Workerktfmt = ${REPO_ROOT}/external/ktfmt/ktfmt.sh 37