Skip to content

Commit b2c364e

Browse files
committed
Go 1.12.0 + dep 0.5.0 + golangci-lint 1.15.0
1 parent a39f791 commit b2c364e

File tree

5 files changed

+42
-45
lines changed

5 files changed

+42
-45
lines changed

Dockerfile

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM golang:1.11.5
1+
FROM golang:1.12.0
22

33
# prepare to install git-lfs
44
RUN curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash
@@ -32,6 +32,7 @@ RUN curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh \
3232
&& go get github.com/haya14busa/gosum/cmd/gosumcheck \
3333
&& go get github.com/TeamMomentum/go-bindata/go-bindata
3434

35-
# gometalinter
36-
RUN sh -c 'curl -L https://git.io/vp6lP | sh'
37-
COPY gometalinter.json /gometalinter.json
35+
# golangci-lint
36+
RUN sh -c "curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(go env GOPATH)/bin"
37+
RUN golangci-lint --version
38+
COPY golangci.yml /golangci.yml

Makefile

Lines changed: 0 additions & 14 deletions
This file was deleted.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@
77
- gcloud
88
- go tools
99
- github.com/golang/dep
10-
- github.com/alecthomas/gometalinter
10+
- github.com/golangci/golangci-lint
1111
- github.com/haya14busa/gosum/cmd/gosumcheck

golangci.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
run:
2+
skip-dirs:
3+
4+
skip-files:
5+
6+
linters:
7+
enable-all: true
8+
disable:
9+
- gochecknoglobals
10+
- gochecknoinits
11+
- lll
12+
13+
linters-settings:
14+
dupl:
15+
threshold: 50
16+
govet:
17+
check-shadowing: true
18+
golint:
19+
min-confidence: 0
20+
gocyclo:
21+
min-complexity: 15
22+
maligned:
23+
suggest-new: true
24+
25+
# gocritic has tons of checkers
26+
# https://go-critic.github.io/overview#checks-overview
27+
# gocritic:
28+
29+
issues:
30+
max-per-linter: 0
31+
max-same-issues: 0
32+
exclude-rules:
33+
- path: ".*_test.go$"
34+
text: "Using the variable on range scope `(tt|v)` in function literal"
35+
linters:
36+
- scopelint

gometalinter.json

Lines changed: 0 additions & 26 deletions
This file was deleted.

0 commit comments

Comments
 (0)