Merge "Configure rustfmt for preupload hook"

This commit is contained in:
Treehugger Robot 2022-04-08 16:25:46 +00:00 committed by Gerrit Code Review
commit 3e22bc616b
2 changed files with 3 additions and 0 deletions

View File

@ -1,8 +1,10 @@
[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} "."

1
rustfmt.toml Symbolic link
View File

@ -0,0 +1 @@
../../build/soong/scripts/rustfmt.toml