Forked from
Dhina17 / platform_frameworks_base
19348 commits behind the upstream repository.
-
Anushree Ganjam authored
Parse arguments in flag_check.py. - msg = commit message - files = modified files paths - project = repo_path Using project we can filter further for "frameworks/base" and see if files starts with "packages/SystemUI" and then apply Flags check. Bug: 306262821 Test: Manual Flag: NA Change-Id: I9b678344512527ec8b79aa458dae9f54fb4c61ba
Anushree Ganjam authoredParse arguments in flag_check.py. - msg = commit message - files = modified files paths - project = repo_path Using project we can filter further for "frameworks/base" and see if files starts with "packages/SystemUI" and then apply Flags check. Bug: 306262821 Test: Manual Flag: NA Change-Id: I9b678344512527ec8b79aa458dae9f54fb4c61ba
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
PREUPLOAD.cfg 1.40 KiB
[Builtin Hooks]
clang_format = true
bpfmt = 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/
cmds/uinput/
core/jni/
libs/hwui/
libs/input/
native/
services/core/jni/
services/incremental/
tests/
tools/
bpfmt = -d
[Hook Scripts]
checkstyle_hook = ${REPO_ROOT}/prebuilts/checkstyle/checkstyle.py --sha ${PREUPLOAD_COMMIT}
hidden_api_txt_checksorted_hook = ${REPO_ROOT}/tools/platform-compat/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}
ktfmt_hook = ${REPO_ROOT}/external/ktfmt/ktfmt.py --check -i ${REPO_ROOT}/frameworks/base/ktfmt_includes.txt ${PREUPLOAD_FILES}
ktlint_hook = ${REPO_ROOT}/prebuilts/ktlint/ktlint.py --no-verify-format -f ${PREUPLOAD_FILES}
# This flag check hook runs only for "packages/SystemUI" subdirectory. If you want to include this check for other subdirectories, please modify flag_check.py.
flag_hook = ${REPO_ROOT}/frameworks/base/packages/SystemUI/flag_check.py --msg=${PREUPLOAD_COMMIT_MESSAGE} --files=${PREUPLOAD_FILES} --project=${REPO_PATH}