xref: /aosp_15_r20/frameworks/native/PREUPLOAD.cfg (revision 38e8c45f13ce32b0dcecb25141ffecaf386fa17f)
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/vibrator/
28               libs/vr/
29               opengl/libs/
30               services/bufferhub/
31               services/inputflinger/
32               services/powermanager/
33               services/surfaceflinger/
34               services/vibratorservice/
35               services/vr/
36               vulkan/
37bpfmt = -d
38
39[Hook Scripts]
40owners_hook = ${REPO_ROOT}/frameworks/base/tools/aosp/aosp_sha.sh ${PREUPLOAD_COMMIT} "OWNERS$"
41installd_hook = ${REPO_ROOT}/frameworks/base/tools/aosp/aosp_sha.sh ${PREUPLOAD_COMMIT} "^cmds/installd/"
42dumpstate_hook = ${REPO_ROOT}/frameworks/base/tools/aosp/aosp_sha.sh ${PREUPLOAD_COMMIT} "^cmds/dumpstate/"
43dumpsys_hook = ${REPO_ROOT}/frameworks/base/tools/aosp/aosp_sha.sh ${PREUPLOAD_COMMIT} "^cmds/dumpsys/"
44# bugreports matches both cmds/bugreport and cmds/bugreportz
45bugreports_hook = ${REPO_ROOT}/frameworks/base/tools/aosp/aosp_sha.sh ${PREUPLOAD_COMMIT} "^cmds/bugreport"
46binder_hook = ${REPO_ROOT}/frameworks/base/tools/aosp/aosp_sha.sh ${PREUPLOAD_COMMIT} "^libs/binder/"
47