[Builtin Hooks]
clang_format = true
xmllint = true

[Builtin Hooks Options]
clang_format = --commit ${PREUPLOAD_COMMIT} --style file --extensions c,h,cc,cpp
               hostsidetests
               tests/tests/binder_ndk
               tests/tests/view/jni

[Hook Scripts]
checkstyle_hook = ${REPO_ROOT}/prebuilts/checkstyle/checkstyle.py --sha ${PREUPLOAD_COMMIT}
                  -fw apps/CtsVerifier/
                      apps/CtsVerifierUSBCompanion/
                      common/device-side/bedstead/
                      common/device-side/util/
                      hostsidetests/car/
                      hostsidetests/devicepolicy
                      hostsidetests/dumpsys
                      hostsidetests/graphics
                      hostsidetests/inputmethodservice/
                      hostsidetests/multiuser/
                      hostsidetests/scopedstorage/
                      hostsidetests/stagedinstall/
                      hostsidetests/userspacereboot/
                      libs/
                      tests/app/
                      tests/autofillservice/
                      tests/contentcaptureservice/
                      tests/devicepolicy/
                      tests/inputmethod/
                      tests/tests/animation/
                      tests/tests/carrierapi/
                      tests/tests/content/
                      tests/tests/graphics/
                      tests/tests/hardware/
                      tests/tests/packageinstaller/atomicinstall/
                      tests/tests/permission2/
                      tests/tests/permission/
                      tests/tests/preference/
                      tests/tests/print/
                      tests/tests/telephony/
                      tests/tests/telephony2/
                      tests/tests/telephony3/
                      tests/tests/telephony4/
                      tests/tests/telephonyprovider/
                      tests/tests/text/
                      tests/tests/theme/
                      tests/tests/transition/
                      tests/tests/uirendering/
                      tests/tests/view/
                      tests/tests/widget/

ktlint_hook = ${REPO_ROOT}/prebuilts/ktlint/ktlint.py -f ${PREUPLOAD_FILES}

splits_native_libs_hook = ${REPO_ROOT}/cts/hostsidetests/appsecurity/test-apps/SplitApp/check_not_modify_libs.sh
                          ${PREUPLOAD_FILES}