Siarhei Vishniakou | a3117ca | 2019-12-09 16:08:46 -0800 | [diff] [blame] | 1 | [Builtin Hooks] |
| 2 | clang_format = true |
Paul Duffin | 661c3e3 | 2021-04-12 10:44:16 +0100 | [diff] [blame] | 3 | bpfmt = true |
Siarhei Vishniakou | a3117ca | 2019-12-09 16:08:46 -0800 | [diff] [blame] | 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/ |
Siarhei Vishniakou | cd2fe53 | 2020-01-03 10:59:17 -0800 | [diff] [blame] | 10 | core/jni/ |
Siarhei Vishniakou | a3117ca | 2019-12-09 16:08:46 -0800 | [diff] [blame] | 11 | libs/input/ |
Siarhei Vishniakou | 44d50fe | 2020-01-27 11:31:29 -0600 | [diff] [blame] | 12 | services/core/jni/ |
Alex Buynytskyy | 1d89216 | 2020-04-03 23:00:19 -0700 | [diff] [blame] | 13 | services/incremental/ |
Siarhei Vishniakou | a3117ca | 2019-12-09 16:08:46 -0800 | [diff] [blame] | 14 | |
Aurimas Liutikas | 5c19b54 | 2016-10-11 14:01:36 -0700 | [diff] [blame] | 15 | [Hook Scripts] |
Aurimas Liutikas | d5c5ac6 | 2020-07-10 16:28:19 +0000 | [diff] [blame] | 16 | checkstyle_hook = ${REPO_ROOT}/prebuilts/checkstyle/checkstyle.py --sha ${PREUPLOAD_COMMIT} |
| 17 | |
Jeff Sharkey | abe058c | 2018-03-26 09:38:01 -0600 | [diff] [blame] | 18 | strings_lint_hook = ${REPO_ROOT}/frameworks/base/tools/stringslint/stringslint_sha.sh ${PREUPLOAD_COMMIT} |
Mathew Inwood | e5dc64d | 2018-04-23 16:13:14 +0100 | [diff] [blame] | 19 | |
Paul Duffin | 738f919 | 2021-04-14 13:36:53 +0100 | [diff] [blame] | 20 | hidden_api_txt_checksorted_hook = ${REPO_ROOT}/tools/platform-compat/hiddenapi/checksorted_sha.sh ${PREUPLOAD_COMMIT} ${REPO_ROOT} |
Paul Duffin | 00537c1 | 2018-11-28 12:22:14 +0000 | [diff] [blame] | 21 | |
| 22 | hidden_api_txt_exclude_hook = ${REPO_ROOT}/frameworks/base/tools/hiddenapi/exclude.sh ${PREUPLOAD_COMMIT} ${REPO_ROOT} |
Jeff Sharkey | 0a9c731 | 2018-08-23 22:01:53 -0600 | [diff] [blame] | 23 | |
Remi NGUYEN VAN | ba47bae | 2019-07-24 15:48:44 +0900 | [diff] [blame] | 24 | ktlint_hook = ${REPO_ROOT}/prebuilts/ktlint/ktlint.py -f ${PREUPLOAD_FILES} |
| 25 | |
Jeff Sharkey | 0a9c731 | 2018-08-23 22:01:53 -0600 | [diff] [blame] | 26 | owners_hook = ${REPO_ROOT}/frameworks/base/tools/aosp/aosp_sha.sh ${PREUPLOAD_COMMIT} "OWNERS$" |
Felipe Leme | 4c192e96 | 2018-09-26 11:07:30 -0700 | [diff] [blame] | 27 | |
| 28 | shell_hook = ${REPO_ROOT}/frameworks/base/tools/aosp/aosp_sha.sh ${PREUPLOAD_COMMIT} "^packages/Shell/" |