Skip to content

Commit 6e05257

Browse files
committed
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 <[email protected]>
1 parent 82a6a5a commit 6e05257

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@ test-bin-archive: all-test
2020
install-kola-tests:
2121
install -D -t $(DESTDIR)$(prefix)/lib/coreos-assembler/tests/kola/bootc tests/kolainst/*
2222

23+
validate:
24+
cargo fmt
25+
cargo clippy
26+
.PHONY: validate
27+
2328
vendor:
2429
cargo xtask $@
2530
.PHONY: vendor

0 commit comments

Comments
 (0)