Skip to content

Commit ae8ffcb

Browse files
committedJul 13, 2022
Add golangci-lint in make lint
* Fixes: awslabs#19 Signed-off-by: Yugo Horie <u5.horie@gmail.com>
1 parent 1ebc1b1 commit ae8ffcb

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed
 

‎.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
tc-redirect-tap
2+
bin/

‎Makefile

+4-1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ EXTRAGOARGS?=
1717
SOURCES:=$(shell find . -name '*.go' ! -name '*_test.go')
1818
GOMOD := $(shell go env GOMOD)
1919
GOSUM := $(GOMOD:.mod=.sum)
20+
GOBIN := $(abspath ./bin)
2021

2122
# Set this to override the directory in which the tc-redirect-tap plugin is
2223
# installed by the "install" target
@@ -39,9 +40,11 @@ test:
3940
.PHONY: clean
4041
clean:
4142
- rm -f tc-redirect-tap
43+
- rm -rf $(GOBIN)
4244

4345
deps:
4446
echo
4547

4648
lint:
47-
echo
49+
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(GOBIN) v1.46.2
50+
$(GOBIN)/golangci-lint run ./...

0 commit comments

Comments
 (0)
Please sign in to comment.