From 928aa035202a817428780441c10ba884e8b1a9d1 Mon Sep 17 00:00:00 2001 From: Greg Zaitsev Date: Fri, 25 Jun 2021 09:11:23 +0000 Subject: [PATCH] Add formatting instructions to README --- --- a/README.md +++ b/README.md @@ -228,3 +228,21 @@ ## Running Integration Tests See [tests/README.md](./tests/README.md). + +## Code Formatting + +### Get formatter and linter settings into your branch (if you forked before they were introduced) +```bash +git cherry-pick -n 8ff77c21b0d30b2a4648fa35dbf61dfa9d3948a7 +``` + +### Apply formatting and clippy fixes +```bash +cargo clippy --fix -Z unstable-options --allow-dirty --allow-staged +cargo fmt +``` + +### Format tests +```bash +pushd tests && yarn fix ; popd +``` \ No newline at end of file -- gitstuff