Avinash Malipatil | 064f423 | 2021-10-28 10:00:14 +0000 | [diff] [blame] | 1 | [Builtin Hooks] |
| 2 | clang_format = true |
| 3 | bpfmt = true |
| 4 | |
| 5 | [Builtin Hooks Options] |
| 6 | # Only turn on clang-format check for the following subfolders. |
| 7 | clang_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/ |
| 19 | bpfmt = -d |
| 20 | [Hook Scripts] |
| 21 | checkstyle_hook = ${REPO_ROOT}/prebuilts/checkstyle/checkstyle.py --sha ${PREUPLOAD_COMMIT} |
| 22 | |
| 23 | strings_lint_hook = ${REPO_ROOT}/frameworks/base/tools/stringslint/stringslint_sha.sh ${PREUPLOAD_COMMIT} |
| 24 | |
| 25 | hidden_api_txt_checksorted_hook = ${REPO_ROOT}/tools/platform-compat/hiddenapi/checksorted_sha.sh ${PREUPLOAD_COMMIT} ${REPO_ROOT} |
| 26 | |
| 27 | hidden_api_txt_exclude_hook = ${REPO_ROOT}/frameworks/base/tools/hiddenapi/exclude.sh ${PREUPLOAD_COMMIT} ${REPO_ROOT} |
| 28 | |
| 29 | ktlint_hook = ${REPO_ROOT}/prebuilts/ktlint/ktlint.py -f ${PREUPLOAD_FILES} |
| 30 | |
| 31 | owners_hook = ${REPO_ROOT}/frameworks/base/tools/aosp/aosp_sha.sh ${PREUPLOAD_COMMIT} "OWNERS$" |
| 32 | |
| 33 | shell_hook = ${REPO_ROOT}/frameworks/base/tools/aosp/aosp_sha.sh ${PREUPLOAD_COMMIT} "^packages/Shell/" |