Skip to content

Commit 2da1be5

Browse files
committed
Add contrib/lint.sh
Run linting in more places (e.g. in tests, and with v2 features enabled).
1 parent 19f93d3 commit 2da1be5

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.github/workflows/rust.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,4 +52,4 @@ jobs:
5252
- name: "Install clippy"
5353
run: rustup component add clippy --toolchain nightly-x86_64-unknown-linux-gnu
5454
- name: "Run linting"
55-
run: cargo clippy -- -D warnings
55+
run: bash contrib/lint.sh

contrib/lint.sh

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/bash
2+
set -e
3+
4+
cargo clippy --all-targets --keep-going --features=send,receive -- -D warnings
5+
cargo clippy --all-targets --keep-going --features=v2,danger-local-https,io -- -D warnings

0 commit comments

Comments
 (0)