We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 279acf1 commit 322565eCopy full SHA for 322565e
2 files changed
.golangci.yaml
@@ -0,0 +1,6 @@
1
+run:
2
+ timeout: 3m
3
+
4
+linters:
5
+ enable:
6
+ - gofmt
Makefile
@@ -1,10 +1,16 @@
PRE_COMMIT := pre-commit
JSONNET_VERSION := v0.18.0
+GOLANGCI_VERSION := v1.46.1
.PHONY: fmt
7
fmt:
8
@go fmt ./...
9
10
+.PHONY: lint
11
+lint:
12
+ @golangci-lint run ./...
13
14
.PHONY: test
15
test:
16
@go test -v ./...
@@ -18,3 +24,5 @@ run:
18
24
setup:
19
25
@go install github.com/google/go-jsonnet/cmd/jsonnet-lint@$(JSONNET_VERSION)
20
26
@go install github.com/google/go-jsonnet/cmd/jsonnetfmt@$(JSONNET_VERSION)
27
28
+ @curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(shell go env GOPATH)/bin $(GOLANGCI_VERSION)
0 commit comments