Prompt file imported from Brandon-Anubis/cars-api (
.windsurf/workflows/run-checks.md). Copyright stays with the author.
Run Full Check Suite
Execute all quality checks in the correct order. Stop on first failure.
Steps
- Format
gofmt -l -w .
goimports -l -w .
- If any files were modified, report them
- Vet
go vet ./...
- Must pass with zero warnings
- Lint
golangci-lint run ./...
- Must pass (uses
.golangci.ymlconfig) - If golangci-lint not installed, skip with warning
- Unit Tests
go test -v -race -short -coverprofile=coverage.out ./...
- Must pass with zero failures
- Report coverage percentage
- Coverage Check
go tool cover -func=coverage.out
- Report total coverage
- Warn if below 85%
- Build
CGO_ENABLED=0 go build -o /dev/null ./cmd/server
- Must compile successfully
- Summary
- Report pass/fail for each step
- Report total coverage percentage
- List any warnings or suggestions
