dtmt/.ci/tasks/clippy.sh
Lucas Schwiderski 1a000371fa
Treat lint warnings as errors in CI
Warnings will not show up if they don't fail CI.
2025-04-21 18:41:59 +02:00

15 lines
208 B
Bash
Executable file

#!/bin/sh
set -eu
title() {
printf "\033[1m%s\033[0m\n" "$1"
}
title "Install clippy"
rustup component add clippy
title "Run clippy"
cargo clippy --color always --no-deps -- -D warnings
title "Done"