Skip to content

Commit

Permalink
Configure rustfmt for preupload hook
Browse files Browse the repository at this point in the history
Test: N/A
Change-Id: I8f7cecfa00777983540b8fd74da9bab1753bfc01
  • Loading branch information
randomPoison committed Apr 6, 2022
1 parent 23dedb6 commit acd1ef7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions PREUPLOAD.cfg
Original file line number Diff line number Diff line change
@@ -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 change: 1 addition & 0 deletions rustfmt.toml

0 comments on commit acd1ef7

Please sign in to comment.