From aa1a3ce4e81da26bad26f6530d1362fefb016d98 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=89=E6=AD=A3=E8=B6=85?= Date: Tue, 22 Jul 2025 22:10:53 +0800 Subject: [PATCH] feat: add `cargo clippy --fix --allow-dirty` to pre-commit command (#282) Resolves #277 - Add --fix flag to automatically fix clippy warnings - Add --allow-dirty flag to run on dirty Git trees - Improves code quality in pre-commit workflow --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 56c21bac..f4fd9d79 100644 --- a/Makefile +++ b/Makefile @@ -23,7 +23,7 @@ fmt-check: .PHONY: clippy clippy: @echo "🔍 Running clippy checks..." - cargo clippy --all-targets --all-features -- -D warnings + cargo clippy --all-targets --all-features --fix --allow-dirty -- -D warnings .PHONY: check check: