Configure rustfmt for preupload hook
Test: N/A Change-Id: I8f7cecfa00777983540b8fd74da9bab1753bfc01
This commit is contained in:
parent
23dedb660e
commit
acd1ef731a
|
@ -1,8 +1,10 @@
|
||||||
[Builtin Hooks]
|
[Builtin Hooks]
|
||||||
clang_format = true
|
clang_format = true
|
||||||
|
rustfmt = true
|
||||||
|
|
||||||
[Builtin Hooks Options]
|
[Builtin Hooks Options]
|
||||||
clang_format = --commit ${PREUPLOAD_COMMIT} --style file --extensions c,h,cc,cpp
|
clang_format = --commit ${PREUPLOAD_COMMIT} --style file --extensions c,h,cc,cpp
|
||||||
|
rustfmt = --config-path=rustfmt.toml
|
||||||
|
|
||||||
[Hook Scripts]
|
[Hook Scripts]
|
||||||
aosp_hook = ${REPO_ROOT}/frameworks/base/tools/aosp/aosp_sha.sh ${PREUPLOAD_COMMIT} "."
|
aosp_hook = ${REPO_ROOT}/frameworks/base/tools/aosp/aosp_sha.sh ${PREUPLOAD_COMMIT} "."
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
../../build/soong/scripts/rustfmt.toml
|
Loading…
Reference in New Issue