普通文本  |  34行  |  1.36 KB

[Builtin Hooks]
clang_format = true

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

[Hook Scripts]
checkstyle_hook = ${REPO_ROOT}/prebuilts/checkstyle/checkstyle.py --sha ${PREUPLOAD_COMMIT}
                  -fw apps/CtsVerifier/src/com/android/cts/verifier/usb/
                      apps/CtsVerifierUSBCompanion/
                      libs/
                      tests/autofillservice/
                      tests/contentcaptureservice/
                      tests/tests/animation/
                      tests/tests/content/
                      tests/tests/graphics/
                      tests/tests/hardware/
                      tests/tests/permission2/
                      tests/tests/permission/
                      tests/tests/preference/
                      tests/tests/print/
                      tests/tests/text/
                      tests/tests/theme/
                      tests/tests/transition/
                      tests/tests/uirendering/
                      tests/tests/view/
                      tests/tests/widget/
                      common/device-side/util/
                      hostsidetests/stagedinstall/
                      tests/tests/packageinstaller/atomicinstall/

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