1[Builtin Hooks] 2clang_format = true 3bpfmt = true 4 5[Builtin Hooks Options] 6# Only turn on clang-format check for the following subfolders. 7clang_format = --commit ${PREUPLOAD_COMMIT} --style file --extensions c,h,cc,cpp 8 cmds/hid/ 9 cmds/input/ 10 cmds/uinput/ 11 core/jni/ 12 libs/hwui/ 13 libs/input/ 14 native/ 15 services/core/jni/ 16 services/incremental/ 17 tests/ 18 tools/ 19bpfmt = -d 20[Hook Scripts] 21checkstyle_hook = ${REPO_ROOT}/prebuilts/checkstyle/checkstyle.py --sha ${PREUPLOAD_COMMIT} 22 23ktlint_hook = ${REPO_ROOT}/prebuilts/ktlint/ktlint.py -f ${PREUPLOAD_FILES} 24