-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmakefile
23 lines (16 loc) · 1.07 KB
/
makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
help: ## Show this help.
@sed -ne '/@sed/!s/## //p' $(MAKEFILE_LIST)
build: ## Builds code into a binary
@go build .
run: ## Runs code localy
@go run .
dev: ## Dev Mode: will restart app on each code changes
@reflex -r '.go' -s -- go run main.go
tidy: ## Install && cleans project dependencies in go.mod
@go mod tidy
test: ## Run Unit tests
@go test -v ./...
lint: ## Run lint command
@golangci-lint run --enable-all -D varnamelen -D interfacer -D maligned -D golint -D scopelint -D exhaustivestruct -D bodyclose -D contextcheck -D nilerr -D noctx -D rowserrcheck -D sqlclosecheck -D structcheck -D tparallel -D wastedassign -D gci -D gosimple -D usestdlibvars -D lll -D paralleltest -D ifshort
lint-fix: ## Run lint command with --fix
@golangci-lint run --enable-all -D varnamelen -D interfacer -D maligned -D golint -D scopelint -D exhaustivestruct -D bodyclose -D contextcheck -D nilerr -D noctx -D rowserrcheck -D sqlclosecheck -D structcheck -D tparallel -D wastedassign -D gci -D gosimple -D usestdlibvars -D lll -D paralleltest -D ifshort --fix