blob: f19abd1396912090f2c74e17766954ffdafbfa23 [file] [log] [blame]
Andrew Scull3a5ad752020-10-13 11:47:44 +01001[Builtin Hooks]
Andrew Scull11e6a292020-10-19 14:00:36 +01002bpfmt = true
Andrew Scullc09e2252020-10-19 13:16:49 +01003clang_format = true
Andrew Scull3a5ad752020-10-13 11:47:44 +01004rustfmt = true
5
6[Builtin Hooks Options]
Andrew Scullc09e2252020-10-19 13:16:49 +01007clang_format = --commit ${PREUPLOAD_COMMIT} --style file --extensions c,h,cc,cpp
Andrew Scull3a5ad752020-10-13 11:47:44 +01008rustfmt = --config-path=rustfmt.toml
Andrew Scull89330a02020-10-13 14:03:24 +01009
10[Hook Scripts]
11aosp_hook = ${REPO_ROOT}/frameworks/base/tools/aosp/aosp_sha.sh ${PREUPLOAD_COMMIT} "."
Andrew Scull11e6a292020-10-19 14:00:36 +010012checkstyle_hook = ${REPO_ROOT}/prebuilts/checkstyle/checkstyle.py --sha ${PREUPLOAD_COMMIT}