platform_system_core/PREUPLOAD.cfg
David LeGare acd1ef731a Configure rustfmt for preupload hook
Test: N/A
Change-Id: I8f7cecfa00777983540b8fd74da9bab1753bfc01
2022-04-06 21:11:09 +00:00

10 lines
298 B
INI

[Builtin Hooks]
clang_format = true
rustfmt = true
[Builtin Hooks Options]
clang_format = --commit ${PREUPLOAD_COMMIT} --style file --extensions c,h,cc,cpp
rustfmt = --config-path=rustfmt.toml
[Hook Scripts]
aosp_hook = ${REPO_ROOT}/frameworks/base/tools/aosp/aosp_sha.sh ${PREUPLOAD_COMMIT} "."