diff options
author | Andrei Homescu <ahomescu@google.com> | 2024-03-15 23:27:53 +0000 |
---|---|---|
committer | Andrei Homescu <ahomescu@google.com> | 2024-03-18 18:34:06 +0000 |
commit | 6a1d469926582e20a308b83220ea6697e5dc897a (patch) | |
tree | 6677045867b65fcf65df841bc33bab8290bac3b2 | |
parent | 503ed9109fbb8eea5abb83dd497cc22cc2412815 (diff) | |
download | common-6a1d469926582e20a308b83220ea6697e5dc897a.tar.gz |
Add rustfmt configuration file
Bug: 304851081
Change-Id: I626574e8666b3013d4e551b70cc2d13c16cffbc1
-rw-r--r-- | PREUPLOAD.cfg | 7 | ||||
-rw-r--r-- | rustfmt.toml | 5 |
2 files changed, 12 insertions, 0 deletions
diff --git a/PREUPLOAD.cfg b/PREUPLOAD.cfg new file mode 100644 index 00000000..9667c0ed --- /dev/null +++ b/PREUPLOAD.cfg @@ -0,0 +1,7 @@ +[Builtin Hooks] +commit_msg_bug_field = true +commit_msg_changeid_field = true +rustfmt = true + +[Builtin Hooks Options] +rustfmt = --config-path=rustfmt.toml diff --git a/rustfmt.toml b/rustfmt.toml new file mode 100644 index 00000000..cefaa42a --- /dev/null +++ b/rustfmt.toml @@ -0,0 +1,5 @@ +# Android Format Style + +edition = "2021" +use_small_heuristics = "Max" +newline_style = "Unix" |