blob: 0126cb66010365371151ea4b91a205d30e970263 [file] [log] [blame]
Siarhei Vishniakoua3117ca2019-12-09 16:08:46 -08001[Builtin Hooks]
2clang_format = true
Songchun Fand4574b52021-03-02 20:05:57 +00003bpfmt = true
Siarhei Vishniakoua3117ca2019-12-09 16:08:46 -08004
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/
Chris Ye3c5b8092020-08-07 09:15:19 -070010 cmds/uinput/
Siarhei Vishniakoucd2fe532020-01-03 10:59:17 -080011 core/jni/
Siarhei Vishniakoud11f38f2021-01-12 20:45:29 -100012 libs/hwui/
Siarhei Vishniakoua3117ca2019-12-09 16:08:46 -080013 libs/input/
Vishnu Nairce1a6482020-10-22 17:41:30 -070014 native/
Siarhei Vishniakou44d50fe2020-01-27 11:31:29 -060015 services/core/jni/
Alex Buynytskyy1d892162020-04-03 23:00:19 -070016 services/incremental/
Vishnu Nair57928e62020-09-16 19:01:04 -070017 tests/
Siarhei Vishniakou2da17762020-09-08 22:43:35 -050018 tools/
Songchun Fand4574b52021-03-02 20:05:57 +000019bpfmt = -d
Aurimas Liutikas5c19b542016-10-11 14:01:36 -070020[Hook Scripts]
Aurimas Liutikasd5c5ac62020-07-10 16:28:19 +000021checkstyle_hook = ${REPO_ROOT}/prebuilts/checkstyle/checkstyle.py --sha ${PREUPLOAD_COMMIT}
22
Jeff Sharkeyabe058c2018-03-26 09:38:01 -060023strings_lint_hook = ${REPO_ROOT}/frameworks/base/tools/stringslint/stringslint_sha.sh ${PREUPLOAD_COMMIT}
Mathew Inwoode5dc64d2018-04-23 16:13:14 +010024
Paul Duffin738f9192021-04-14 13:36:53 +010025hidden_api_txt_checksorted_hook = ${REPO_ROOT}/tools/platform-compat/hiddenapi/checksorted_sha.sh ${PREUPLOAD_COMMIT} ${REPO_ROOT}
Paul Duffin00537c12018-11-28 12:22:14 +000026
27hidden_api_txt_exclude_hook = ${REPO_ROOT}/frameworks/base/tools/hiddenapi/exclude.sh ${PREUPLOAD_COMMIT} ${REPO_ROOT}
Jeff Sharkey0a9c7312018-08-23 22:01:53 -060028
Jordan Demeulenaere5e3a34a2022-08-29 16:05:53 +020029ktfmt_hook = ${REPO_ROOT}/external/ktfmt/ktfmt.py --check -i ${REPO_ROOT}/frameworks/base/packages/SystemUI/ktfmt_includes.txt ${PREUPLOAD_FILES}
Jordan Demeulenaeree2615262022-08-12 11:45:06 +020030
Jordan Demeulenaereb1e86c52022-10-06 14:55:44 +020031ktlint_hook = ${REPO_ROOT}/prebuilts/ktlint/ktlint.py --no-verify-format -f ${PREUPLOAD_FILES}
Remi NGUYEN VANba47bae2019-07-24 15:48:44 +090032
Jeff Sharkey0a9c7312018-08-23 22:01:53 -060033owners_hook = ${REPO_ROOT}/frameworks/base/tools/aosp/aosp_sha.sh ${PREUPLOAD_COMMIT} "OWNERS$"
Felipe Leme4c192e962018-09-26 11:07:30 -070034
35shell_hook = ${REPO_ROOT}/frameworks/base/tools/aosp/aosp_sha.sh ${PREUPLOAD_COMMIT} "^packages/Shell/"