Skip to content

Commit 0c1059c

Browse files
committed
Do not suggest adding clippy to git hooks
Signed-off-by: Jacinta Ferrant <[email protected]>
1 parent 728e4d2 commit 0c1059c

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

CONTRIBUTING.md

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -81,24 +81,18 @@ fix: incorporate unlocks in mempool admitter, #3623
8181

8282
### Recommended githooks
8383

84-
It is helpful to set up the pre-commit git hook set up, so that Rust formatting issues and clippy warnings are caught before
84+
It is helpful to set up the pre-commit git hook set up, so that Rust formatting issues are caught before
8585
you push your code. Follow these instruction to set it up:
8686

8787
1. Rename `.git/hooks/pre-commit.sample` to `.git/hooks/pre-commit`
8888
2. Change the content of `.git/hooks/pre-commit` to be the following
8989

9090
```sh
9191
#!/bin/sh
92-
# Format staged Rust files
9392
git diff --name-only --staged | grep '\.rs$' | xargs -P 8 -I {} rustfmt {} --edition 2021 --check --config group_imports=StdExternalCrate,imports_granularity=Module || (
9493
echo 'rustfmt failed: run "cargo fmt-stacks"';
9594
exit 1
9695
)
97-
# Run cargo clippy-stacks and fail the commit if there are any warnings
98-
if ! cargo clippy-stacks; then
99-
echo 'cargo clippy-stacks failed: fix the warnings and try again.';
100-
exit 1
101-
fi
10296
```
10397

10498
3. Make it executable by running `chmod +x .git/hooks/pre-commit`

0 commit comments

Comments
 (0)