feat: add lint-fix target and improve lint command

This commit is contained in:
juanatsap
2025-12-06 11:32:13 +00:00
parent 44cf5204f8
commit 68c9371d76
+9 -4
View File
@@ -1,4 +1,4 @@
.PHONY: test test-all test-unit test-integration lint build dev run clean css-dev css-prod css-watch css-clean sprites sprites-clean
.PHONY: test test-all test-unit test-integration lint lint-fix build dev run clean css-dev css-prod css-watch css-clean sprites sprites-clean
# Default: Run unit tests only (fast, no Chrome needed)
test: test-unit
@@ -18,10 +18,15 @@ test-integration:
@echo "🧪 Running integration tests only..."
go test -v -race -tags=integration ./internal/handlers -run PDF
# Run linter
# Run linter on entire codebase (same as CI)
lint:
@echo "🔍 Running golangci-lint..."
golangci-lint run
@echo "🔍 Running golangci-lint on entire codebase..."
golangci-lint run ./...
# Run linter and auto-fix issues where possible
lint-fix:
@echo "🔧 Running golangci-lint with auto-fix..."
golangci-lint run --fix ./...
# Build binary
build: