From 2da1be5eef173629dbe19951164cb633b0a8b78b Mon Sep 17 00:00:00 2001 From: spacebear Date: Fri, 8 Nov 2024 12:03:38 -0500 Subject: [PATCH] Add contrib/lint.sh Run linting in more places (e.g. in tests, and with v2 features enabled). --- .github/workflows/rust.yml | 2 +- contrib/lint.sh | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 contrib/lint.sh diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 0122054a..e7b6ed39 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -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 diff --git a/contrib/lint.sh b/contrib/lint.sh new file mode 100644 index 00000000..64ba2f7d --- /dev/null +++ b/contrib/lint.sh @@ -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