mirror of
https://github.com/chronotope/chrono.git
synced 2025-09-26 20:40:51 +00:00
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:
parent
febb8dc168
commit
c788a4495b
1
.git-ignore-revs
Normal file
1
.git-ignore-revs
Normal file
@ -0,0 +1 @@
|
||||
febb8dc168325ac471b54591c925c48b6a485962 # cargo fmt
|
@ -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
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user