forked from commercionetwork/odyssey_challenge_vc_server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
49 lines (41 loc) · 1.03 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
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#!/usr/bin/env bash
include ./scripts/env.sh
.DEFAULT_GOAL := help
.PHONY: start stop build
start: ## Start.
DEBUG=true go run main.go
stop:
lsof -i tcp:9999 | awk 'NR!=1 {print $2}' | xargs kill -9 | true;
build:
go build -o dsb -ldflags="-s -w"
install-linters: ## Install linters
go get -u golang.org/x/tools/cmd/goimports
go get -u github.com/golangci/golangci-lint/cmd/golangci-lint
lint: install-linters ## Run linters. Use make install-linters first.
golangci-lint run --deadline=3m --disable-all --tests \
-E deadcode \
-E errcheck \
-E staticcheck \
-E goconst \
-E goimports \
-E golint \
-E typecheck \
-E ineffassign \
-E maligned \
-E misspell \
-E nakedret \
-E structcheck \
-E unconvert \
-E varcheck \
-E govet \
-E gosec \
-E interfacer \
-E staticcheck \
-E unparam \
-E goimports \
-E unconvert \
-E stylecheck \
-E bodyclose \
-E gosimple \
-E unused \
--exclude="should not use ALL_CAPS in Go names; use CamelCase instead,don't use ALL_CAPS in Go names; use CamelCase"