2019-12-09 16:08:46 -08:00
|
|
|
[Builtin Hooks]
|
|
|
|
clang_format = true
|
|
|
|
|
|
|
|
[Builtin Hooks Options]
|
|
|
|
# Only turn on clang-format check for the following subfolders.
|
|
|
|
clang_format = --commit ${PREUPLOAD_COMMIT} --style file --extensions c,h,cc,cpp
|
|
|
|
cmds/hid/
|
|
|
|
cmds/input/
|
2020-01-03 10:59:17 -08:00
|
|
|
core/jni/
|
2019-12-09 16:08:46 -08:00
|
|
|
libs/input/
|
2020-01-27 11:31:29 -06:00
|
|
|
services/core/jni/
|
2019-12-09 16:08:46 -08:00
|
|
|
|
2016-10-11 14:01:36 -07:00
|
|
|
[Hook Scripts]
|
2016-12-15 15:01:36 -08:00
|
|
|
checkstyle_hook = ${REPO_ROOT}/prebuilts/checkstyle/checkstyle.py --sha ${PREUPLOAD_COMMIT}
|
2016-10-20 17:09:39 -07:00
|
|
|
|
2018-03-26 09:38:01 -06:00
|
|
|
strings_lint_hook = ${REPO_ROOT}/frameworks/base/tools/stringslint/stringslint_sha.sh ${PREUPLOAD_COMMIT}
|
2018-04-23 16:13:14 +01:00
|
|
|
|
2018-11-28 12:22:14 +00:00
|
|
|
hidden_api_txt_checksorted_hook = ${REPO_ROOT}/frameworks/base/tools/hiddenapi/checksorted_sha.sh ${PREUPLOAD_COMMIT} ${REPO_ROOT}
|
|
|
|
|
|
|
|
hidden_api_txt_exclude_hook = ${REPO_ROOT}/frameworks/base/tools/hiddenapi/exclude.sh ${PREUPLOAD_COMMIT} ${REPO_ROOT}
|
2018-08-23 22:01:53 -06:00
|
|
|
|
2019-07-24 15:48:44 +09:00
|
|
|
ktlint_hook = ${REPO_ROOT}/prebuilts/ktlint/ktlint.py -f ${PREUPLOAD_FILES}
|
|
|
|
|
2018-08-23 22:01:53 -06:00
|
|
|
owners_hook = ${REPO_ROOT}/frameworks/base/tools/aosp/aosp_sha.sh ${PREUPLOAD_COMMIT} "OWNERS$"
|
2018-09-26 11:07:30 -07:00
|
|
|
|
|
|
|
shell_hook = ${REPO_ROOT}/frameworks/base/tools/aosp/aosp_sha.sh ${PREUPLOAD_COMMIT} "^packages/Shell/"
|