blob: 00f34b9a02507231c7469247941288da1dfc202f [file] [log] [blame]
Andrew Scull3a5ad752020-10-13 11:47:44 +01001[Builtin Hooks]
David Brazdil850e24f2021-03-11 11:11:55 +00002aidl_format = true
3android_test_mapping_format = true
Andrew Scull11e6a292020-10-19 14:00:36 +01004bpfmt = true
Andrew Scullc09e2252020-10-19 13:16:49 +01005clang_format = true
David Brazdil850e24f2021-03-11 11:11:55 +00006jsonlint = true
David Brazdilcf3270b2021-03-11 16:53:45 +00007google_java_format = true
David Brazdil850e24f2021-03-11 11:11:55 +00008pylint3 = true
Andrew Scull3a5ad752020-10-13 11:47:44 +01009rustfmt = true
David Brazdil850e24f2021-03-11 11:11:55 +000010xmllint = true
Andrew Scull3a5ad752020-10-13 11:47:44 +010011
12[Builtin Hooks Options]
Andrew Scullc09e2252020-10-19 13:16:49 +010013clang_format = --commit ${PREUPLOAD_COMMIT} --style file --extensions c,h,cc,cpp
Andrew Scull3a5ad752020-10-13 11:47:44 +010014rustfmt = --config-path=rustfmt.toml
Andrew Scull89330a02020-10-13 14:03:24 +010015
16[Hook Scripts]
17aosp_hook = ${REPO_ROOT}/frameworks/base/tools/aosp/aosp_sha.sh ${PREUPLOAD_COMMIT} "."
Andrew Scull11e6a292020-10-19 14:00:36 +010018checkstyle_hook = ${REPO_ROOT}/prebuilts/checkstyle/checkstyle.py --sha ${PREUPLOAD_COMMIT}