Enable rustfmt for system/security
The rustfmt configuration is linked to the default from build/soong/scripts. This is similar to how clang-format is setup for system/core. Test: Added a commit with a bogus lib.rs and run repo upload. An error is returned by the rusfmt hook. Bug: 157146658 Change-Id: If346bdd73c9cdd84c3cd98ed00b95ed9d790aa4f
This commit is contained in:
parent
442727c6e8
commit
4ca7152102
2 changed files with 3 additions and 0 deletions
|
@ -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
1
rustfmt.toml
Symbolic link
|
@ -0,0 +1 @@
|
|||
../../build/soong/scripts/rustfmt.toml
|
Loading…
Reference in a new issue