From 94e74abd1d06916ec4980714560246f88ef3599f Mon Sep 17 00:00:00 2001 From: Savanni D'Gerinel Date: Wed, 4 Oct 2023 15:57:10 -0400 Subject: [PATCH] Set up strict clippy linting in the build scripts --- builders/rust.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/builders/rust.sh b/builders/rust.sh index 0394805..b80f923 100755 --- a/builders/rust.sh +++ b/builders/rust.sh @@ -14,6 +14,9 @@ case $CMD in build) $CARGO build $MODULE $PARAMS ;; + lint) + $CARGO clippy $MODULE $PARAMS -- -Dwarnings + ;; test) $CARGO test $MODULE $PARAMS ;; @@ -21,16 +24,17 @@ case $CMD in $CARGO run $MODULE $PARAMS ;; release) + $CARGO clippy $MODULE $PARAMS -- -Dwarnings $CARGO build --release $MODULE $PARAMS ;; clean) $CARGO clean $MODULE ;; "") - echo "No command specified. Use build | test | run | release | clean" + echo "No command specified. Use build | lint | test | run | release | clean" ;; *) - echo "$CMD is unknown. Use build | test | run | release | clean" + echo "$CMD is unknown. Use build | lint | test | run | release | clean" ;; esac