-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
36 lines (27 loc) · 791 Bytes
/
Makefile
File metadata and controls
36 lines (27 loc) · 791 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
.DEFAULT_GOAL := help
DISCO_BIN ?= $(CURDIR)/.bin/disco
FISH_COMPLETION_DIR ?= $(HOME)/.config/fish/completions
FISH_COMPLETION_FILE ?= $(FISH_COMPLETION_DIR)/disco.fish
.PHONY: help
help:
@grep -E '^[a-zA-Z0-9_/%\-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort
.PHONY: all
all: fmt test vet vulncheck ## Run core quality gates
.PHONY: fmt
fmt: ## Format all Go files
gofmt -w .
.PHONY: test
test: ## Run tests with race detector
go test -race -count=1 -v ./...
.PHONY: vet
vet: ## Run go vet checks
go vet ./...
.PHONY: vulncheck
vulncheck: ## Run vulnerability scan
govulncheck ./...
.PHONY: install
install: ## Install disco CLI binary
go install ./cmd/disco
.PHONY: review-sample-diff
review-sample-diff: ## Review sample diff
go run ./cmd/disco review --diff sample-review.diff