Skip to content

Commit 24570ed

Browse files
authored
RUST-1920 Generate a SARIF report from clippy (#1086)
1 parent 152f5bc commit 24570ed

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.evergreen/check-clippy.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,13 @@ source ./.evergreen/env.sh
88
CLIPPY_VERSION=1.75.0
99

1010
rustup install $CLIPPY_VERSION
11+
cargo install clippy-sarif
1112

1213
# Check with default features.
1314
cargo +$CLIPPY_VERSION clippy --all-targets -p mongodb -- -D warnings
1415

1516
# Check with all features.
1617
cargo +$CLIPPY_VERSION clippy --all-targets --all-features -p mongodb -- -D warnings
18+
19+
# Produce a SARIF report.
20+
cargo +$CLIPPY_VERSION clippy --all-targets --all-features -p mongodb --message-format=json -- -D warnings | clippy-sarif > clippy.sarif.json

0 commit comments

Comments
 (0)