feat: add lint-fix target and improve lint command
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user