blob: 376817ade7f694686f4e9b85a757459d8d5a129b [file]
[Builtin Hooks]
clang_format = true
bpfmt = true
ktfmt = true
google_java_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
apct-tests/
cmds/hid/
cmds/input/
cmds/uinput/
core/jni/
libs/hwui/
libs/input/
native/
services/core/jni/
services/incremental/
tests/
tools/
bpfmt = -d
ktfmt = --kotlinlang-style --include-dirs=services/permission,packages/SystemUI,libs/WindowManager/Shell,apct-tests,tests/Input,tests/StructuredConcurrencyPerfTests,.*/supervision,tests/VirtualGamepadDemo,services/tests/servicestests/src/com/android/server/appfunctions
google_java_format = --include-dirs=services/core/java/com/android/server/adb,tests/AppJankTest,core/java/android/app/appfunctions,services/appfunctions/,.*/supervision
[Hook Scripts]
checkstyle_hook = ${REPO_ROOT}/prebuilts/checkstyle/checkstyle.py --sha ${PREUPLOAD_COMMIT} --config_xml ${REPO_ROOT}/${REPO_PATH}/checkstyle.xml
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}
ktlint_hook = ${REPO_ROOT}/prebuilts/ktlint/ktlint.py --no-verify-format -f ${PREUPLOAD_FILES}
[Tool Paths]
ktfmt = ${REPO_ROOT}/external/ktfmt/ktfmt.sh