Add a lint for cargo fmt

This also adds the cargo fmt commit to the (new) .git-ignore-revs file which
can cause it to not show up in `git blame` either with `--ignore-revs-file` or
`git config blame.ignoreRevsFile .git-ignore-revs`
This commit is contained in:
Brandon W Maister 2020-06-27 17:10:38 -04:00
parent febb8dc168
commit c788a4495b
2 changed files with 2 additions and 0 deletions

1
.git-ignore-revs Normal file
View File

@ -0,0 +1 @@
febb8dc168325ac471b54591c925c48b6a485962 # cargo fmt

View File

@ -8,6 +8,7 @@ source "${BASH_SOURCE[0]%/*}/_shlib.sh"
main() {
# rustflags are present because of: https://github.com/rust-lang/rust-clippy/issues/5749
runt env RUSTFLAGS="-Dwarnings" cargo clippy --color=always -- -D warnings
runt cargo fmt -- --check --color=always
runt make readme
runv git diff --exit-code -- README.md
}