blob: cdf5df6c6bd32e33c0bbc8246c74c46f6605fa7f [file] [log] [blame]
Siarhei Vishniakoua3117ca2019-12-09 16:08:46 -08001[Builtin Hooks]
2clang_format = true
3
4[Builtin Hooks Options]
5# Only turn on clang-format check for the following subfolders.
6clang_format = --commit ${PREUPLOAD_COMMIT} --style file --extensions c,h,cc,cpp
7 cmds/hid/
8 cmds/input/
Chris Ye3c5b8092020-08-07 09:15:19 -07009 cmds/uinput/
Siarhei Vishniakoucd2fe532020-01-03 10:59:17 -080010 core/jni/
Siarhei Vishniakoua3117ca2019-12-09 16:08:46 -080011 libs/input/
Vishnu Nairce1a6482020-10-22 17:41:30 -070012 native/
Siarhei Vishniakou44d50fe2020-01-27 11:31:29 -060013 services/core/jni/
Alex Buynytskyy1d892162020-04-03 23:00:19 -070014 services/incremental/
Vishnu Nair57928e62020-09-16 19:01:04 -070015 tests/
Siarhei Vishniakou2da17762020-09-08 22:43:35 -050016 tools/
Siarhei Vishniakoua3117ca2019-12-09 16:08:46 -080017
Aurimas Liutikas5c19b542016-10-11 14:01:36 -070018[Hook Scripts]
Aurimas Liutikasd5c5ac62020-07-10 16:28:19 +000019checkstyle_hook = ${REPO_ROOT}/prebuilts/checkstyle/checkstyle.py --sha ${PREUPLOAD_COMMIT}
20
Jeff Sharkeyabe058c2018-03-26 09:38:01 -060021strings_lint_hook = ${REPO_ROOT}/frameworks/base/tools/stringslint/stringslint_sha.sh ${PREUPLOAD_COMMIT}
Mathew Inwoode5dc64d2018-04-23 16:13:14 +010022
Paul Duffin00537c12018-11-28 12:22:14 +000023hidden_api_txt_checksorted_hook = ${REPO_ROOT}/frameworks/base/tools/hiddenapi/checksorted_sha.sh ${PREUPLOAD_COMMIT} ${REPO_ROOT}
24
25hidden_api_txt_exclude_hook = ${REPO_ROOT}/frameworks/base/tools/hiddenapi/exclude.sh ${PREUPLOAD_COMMIT} ${REPO_ROOT}
Jeff Sharkey0a9c7312018-08-23 22:01:53 -060026
Remi NGUYEN VANba47bae2019-07-24 15:48:44 +090027ktlint_hook = ${REPO_ROOT}/prebuilts/ktlint/ktlint.py -f ${PREUPLOAD_FILES}
28
Jeff Sharkey0a9c7312018-08-23 22:01:53 -060029owners_hook = ${REPO_ROOT}/frameworks/base/tools/aosp/aosp_sha.sh ${PREUPLOAD_COMMIT} "OWNERS$"
Felipe Leme4c192e962018-09-26 11:07:30 -070030
31shell_hook = ${REPO_ROOT}/frameworks/base/tools/aosp/aosp_sha.sh ${PREUPLOAD_COMMIT} "^packages/Shell/"