Skip to content

Commit

Permalink
Add contrib/lint.sh
Browse files Browse the repository at this point in the history
Run linting in more places (e.g. in tests, and with v2 features
enabled).
  • Loading branch information
spacebear21 committed Nov 8, 2024
1 parent 19f93d3 commit 2da1be5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,4 @@ jobs:
- name: "Install clippy"
run: rustup component add clippy --toolchain nightly-x86_64-unknown-linux-gnu
- name: "Run linting"
run: cargo clippy -- -D warnings
run: bash contrib/lint.sh
5 changes: 5 additions & 0 deletions contrib/lint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash
set -e

cargo clippy --all-targets --keep-going --features=send,receive -- -D warnings
cargo clippy --all-targets --keep-going --features=v2,danger-local-https,io -- -D warnings

0 comments on commit 2da1be5

Please sign in to comment.