commit | 3a5ad753d7d24c990ff45c7f5fa673eef5c41d19 | [log] [tgz] |
---|---|---|
author | Andrew Scull <ascull@google.com> | Tue Oct 13 11:47:44 2020 +0100 |
committer | Andrew Scull <ascull@google.com> | Tue Oct 13 12:23:13 2020 +0100 |
tree | a03e975355cb30c33b96e8b68c1e35f975998a21 | |
parent | c2c8fb9d6f929d63730916859012ed788ddd6484 [diff] [blame] |
Enable rust formatting preupload hooks The rustfmt configuration is linked to the default from build/soong/scripts. Bug: 157146658 Test: tried uploading badly and correctly formatted rust Change-Id: Ie104cca1c9f309e4b46acdfabd8c2e17c35180ad
diff --git a/PREUPLOAD.cfg b/PREUPLOAD.cfg new file mode 100644 index 0000000..75ed57c --- /dev/null +++ b/PREUPLOAD.cfg
@@ -0,0 +1,5 @@ +[Builtin Hooks] +rustfmt = true + +[Builtin Hooks Options] +rustfmt = --config-path=rustfmt.toml