From 6e052578dd33dabc480f5a6fbab9648e4930b4c0 Mon Sep 17 00:00:00 2001 From: Valentin Rothberg Date: Wed, 1 Nov 2023 14:56:53 +0100 Subject: [PATCH] make validate: add new target Add a `make validate` target to run cargo-fmt and cargo-clippy. My muscle memory from other containers/ projects is strong where I am used to run `make validate` before committing/pushing changes. Signed-off-by: Valentin Rothberg --- Makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Makefile b/Makefile index d307f4a3e..5f072b022 100644 --- a/Makefile +++ b/Makefile @@ -20,6 +20,11 @@ test-bin-archive: all-test install-kola-tests: install -D -t $(DESTDIR)$(prefix)/lib/coreos-assembler/tests/kola/bootc tests/kolainst/* +validate: + cargo fmt + cargo clippy +.PHONY: validate + vendor: cargo xtask $@ .PHONY: vendor