1[Builtin Hooks] 2rustfmt = true 3bpfmt = true 4clang_format = true 5 6[Builtin Hooks Options] 7rustfmt = --config-path=rustfmt.toml 8# Only turn on clang-format check for the following subfolders. 9clang_format = --commit ${PREUPLOAD_COMMIT} --style file --extensions c,h,cc,cpp 10 cmds/dumpstate/ 11 cmds/idlcli/ 12 cmds/installd/ 13 cmds/servicemanager/ 14 include/input/ 15 include/powermanager/ 16 libs/binder/fuzzer/ 17 libs/binder/ 18 libs/binderdebug/ 19 libs/binderthreadstate/ 20 libs/graphicsenv/ 21 libs/gui/ 22 libs/input/ 23 libs/nativedisplay/ 24 libs/nativewindow/ 25 libs/renderengine/ 26 libs/ui/ 27 libs/vr/ 28 opengl/libs/ 29 services/bufferhub/ 30 services/inputflinger/ 31 services/powermanager/ 32 services/surfaceflinger/ 33 services/vibratorservice/ 34 services/vr/ 35 vulkan/ 36bpfmt = -d 37 38[Hook Scripts] 39owners_hook = ${REPO_ROOT}/frameworks/base/tools/aosp/aosp_sha.sh ${PREUPLOAD_COMMIT} "OWNERS$" 40installd_hook = ${REPO_ROOT}/frameworks/base/tools/aosp/aosp_sha.sh ${PREUPLOAD_COMMIT} "^cmds/installd/" 41dumpstate_hook = ${REPO_ROOT}/frameworks/base/tools/aosp/aosp_sha.sh ${PREUPLOAD_COMMIT} "^cmds/dumpstate/" 42dumpsys_hook = ${REPO_ROOT}/frameworks/base/tools/aosp/aosp_sha.sh ${PREUPLOAD_COMMIT} "^cmds/dumpsys/" 43# bugreports matches both cmds/bugreport and cmds/bugreportz 44bugreports_hook = ${REPO_ROOT}/frameworks/base/tools/aosp/aosp_sha.sh ${PREUPLOAD_COMMIT} "^cmds/bugreport" 45binder_hook = ${REPO_ROOT}/frameworks/base/tools/aosp/aosp_sha.sh ${PREUPLOAD_COMMIT} "^libs/binder/" 46