Browse Source

Add scripts/ dir

tags/pre-alpha-0.0
Manos Pitsidianakis 1 year ago
parent
commit
9abfc855fa
WARNING! Although there is a key with this ID in the database it does not verify this commit! This commit is SUSPICIOUS. GPG Key ID: 73627C2F690DF710
1 changed files with 7 additions and 0 deletions
  1. +7
    -0
      scripts/pre-commit

+ 7
- 0
scripts/pre-commit View File

@@ -0,0 +1,7 @@
#!/bin/zsh
#

exec find . -name "*rs" -exec rustfmt {} \;
exec cargo +nightly clippy
# If there are whitespace errors, print the offending file names and fail.
exec git diff-index --check --cached $against --

Loading…
Cancel
Save