File tree Expand file tree Collapse file tree 5 files changed +42
-45
lines changed Expand file tree Collapse file tree 5 files changed +42
-45
lines changed Original file line number Diff line number Diff line change 1- FROM golang:1.11.5
1+ FROM golang:1.12.0
22
33# prepare to install git-lfs
44RUN 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
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments