From 22a619d6255af39bce50309505c5294457c87b8e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thi=C3=A9baud=20Weksteen?= Date: Thu, 6 Aug 2020 20:40:11 +0200 Subject: Add rustfmt configuration Test: repo upload Change-Id: I308dd3fe5a7d9cedb2b6c27845a2f8ae9f28d976 --- PREUPLOAD.cfg | 5 +++++ rustfmt.toml | 1 + 2 files changed, 6 insertions(+) create mode 100644 PREUPLOAD.cfg create mode 120000 rustfmt.toml diff --git a/PREUPLOAD.cfg b/PREUPLOAD.cfg new file mode 100644 index 00000000..cd6513bf --- /dev/null +++ b/PREUPLOAD.cfg @@ -0,0 +1,5 @@ +[Builtin Hooks] +rustfmt = true + +[Builtin Hooks Options] +rustfmt = --check --config-path=rustfmt.toml ${PREUPLOAD_FILES} diff --git a/rustfmt.toml b/rustfmt.toml new file mode 120000 index 00000000..ee92d9ef --- /dev/null +++ b/rustfmt.toml @@ -0,0 +1 @@ +../../build/soong/scripts/rustfmt.toml \ No newline at end of file -- cgit v1.2.3