Merge "Configure rustfmt for preupload hook" am: 3e22bc616b am: e1bda9112f

Original change: https://android-review.googlesource.com/c/platform/system/core/+/2055165

Change-Id: I98bb9b374be77b15bc15ccaa3d562b61f8482a25
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Treehugger Robot 2022-04-08 17:42:29 +00:00 committed by Automerger Merge Worker
commit 7fcf02ea6e
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