Skip to content

Commit

Permalink
make validate: add new target
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
vrothberg committed Nov 1, 2023
1 parent 82a6a5a commit 6e05257
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6e05257

Please sign in to comment.