From 1c2306532905f3b2c02d1bf51d03a295d5ce142a Mon Sep 17 00:00:00 2001 From: Tom Alexander Date: Mon, 16 Oct 2023 16:16:37 -0400 Subject: [PATCH] Add a clippy command to the makefile. --- Makefile | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Makefile b/Makefile index 4990a536..465127dc 100644 --- a/Makefile +++ b/Makefile @@ -37,6 +37,14 @@ clean: format: > $(MAKE) -C docker/cargo_fmt run +.PHONY: clippy +clippy: +> cargo clippy --no-deps --all-targets --all-features -- -D warnings + +.PHONY: clippyfix +clippyfix: +> cargo clippy --fix --lib -p organic --all-features + .PHONY: test test: > cargo test --no-default-features --features compare --no-fail-fast --lib --test test_loader -- --test-threads $(TESTJOBS)