Merge "Enable rustfmt for system/security"

This commit is contained in:
Thiébaud Weksteen 2020-06-25 06:49:41 +00:00 committed by Gerrit Code Review
commit ed2fe02dd0
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 = --check --config-path=rustfmt.toml ${PREUPLOAD_FILES}
[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