-
Notifications
You must be signed in to change notification settings - Fork 384
/
lint.sh
executable file
·37 lines (30 loc) · 1.48 KB
/
lint.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/bin/bash
set -eu
cargo_feature() {
echo "checking $1 with features $2"
cargo clippy --manifest-path=$1/Cargo.toml --all-targets --features "$2" --no-default-features -- \
`# Exit with a nonzero code if there are clippy warnings` \
-Dwarnings
}
if rustup component add clippy; then
cargo clippy --all-targets --all-features -- \
`# Exit with a nonzero code if there are clippy warnings` \
-Dwarnings
cargo_feature opentelemetry "trace,rt-tokio,rt-tokio-current-thread,rt-async-std"
cargo_feature opentelemetry-otlp "default"
cargo_feature opentelemetry-otlp "default,tls"
cargo_feature opentelemetry-otlp "default,tls-roots"
cargo_feature opentelemetry-otlp "trace,grpc-sys"
cargo_feature opentelemetry-otlp "trace,grpc-sys,openssl"
cargo_feature opentelemetry-otlp "trace,grpc-sys,openssl-vendored"
cargo_feature opentelemetry-otlp "http-proto"
cargo_feature opentelemetry-otlp "http-proto, reqwest-blocking-client"
cargo_feature opentelemetry-otlp "http-proto, reqwest-client"
cargo_feature opentelemetry-otlp "http-proto, reqwest-rustls"
cargo_feature opentelemetry-otlp "http-proto, surf-client, surf/curl-client"
cargo_feature opentelemetry-jaeger "surf_collector_client, surf/curl-client"
cargo_feature opentelemetry-jaeger "isahc_collector_client"
cargo_feature opentelemetry-jaeger "reqwest_blocking_collector_client"
cargo_feature opentelemetry-jaeger "reqwest_collector_client"
cargo_feature opentelemetry-jaeger "collector_client"
fi