Skip to content

Commit c2060fb

Browse files
committed
Add script to lint verify
`verify` is intentionally not part of the workspace. Add a script to lint it.
1 parent f1ccc17 commit c2060fb

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

contrib/lint-verify.sh

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/usr/bin/env bash
2+
#
3+
# The `verify` crate is not part of the workspace because it is a dev tool.
4+
5+
set -euox pipefail
6+
7+
REPO_DIR=$(git rev-parse --show-toplevel)
8+
9+
cargo +"$(cat ./nightly-version)" clippy \
10+
--manifest-path "$REPO_DIR/verify/Cargo.toml" \
11+
--config ./rustfmt.toml \
12+
--all-targets --all-features \
13+
-- --deny warnings
14+

0 commit comments

Comments
 (0)