blob: 4d1ac0ec218c5c6b060f7d265996865a58a1f897 [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/
Siarhei Vishniakoucd2fe532020-01-03 10:59:17 -08009 core/jni/
Siarhei Vishniakoua3117ca2019-12-09 16:08:46 -080010 libs/input/
11
Aurimas Liutikas5c19b542016-10-11 14:01:36 -070012[Hook Scripts]
Aurimas Liutikascb494a32016-12-15 15:01:36 -080013checkstyle_hook = ${REPO_ROOT}/prebuilts/checkstyle/checkstyle.py --sha ${PREUPLOAD_COMMIT}
Philip P. Moltmannd7cee3c2016-10-20 17:09:39 -070014
Jeff Sharkeyabe058c2018-03-26 09:38:01 -060015strings_lint_hook = ${REPO_ROOT}/frameworks/base/tools/stringslint/stringslint_sha.sh ${PREUPLOAD_COMMIT}
Mathew Inwoode5dc64d2018-04-23 16:13:14 +010016
Paul Duffin00537c12018-11-28 12:22:14 +000017hidden_api_txt_checksorted_hook = ${REPO_ROOT}/frameworks/base/tools/hiddenapi/checksorted_sha.sh ${PREUPLOAD_COMMIT} ${REPO_ROOT}
18
19hidden_api_txt_exclude_hook = ${REPO_ROOT}/frameworks/base/tools/hiddenapi/exclude.sh ${PREUPLOAD_COMMIT} ${REPO_ROOT}
Jeff Sharkey0a9c7312018-08-23 22:01:53 -060020
Remi NGUYEN VANba47bae2019-07-24 15:48:44 +090021ktlint_hook = ${REPO_ROOT}/prebuilts/ktlint/ktlint.py -f ${PREUPLOAD_FILES}
22
Jeff Sharkey0a9c7312018-08-23 22:01:53 -060023owners_hook = ${REPO_ROOT}/frameworks/base/tools/aosp/aosp_sha.sh ${PREUPLOAD_COMMIT} "OWNERS$"
Felipe Leme4c192e962018-09-26 11:07:30 -070024
25shell_hook = ${REPO_ROOT}/frameworks/base/tools/aosp/aosp_sha.sh ${PREUPLOAD_COMMIT} "^packages/Shell/"