File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ run :
2+ deadline : 3m
3+ skip-dirs :
4+ - cli/command/stack/kubernetes/api/openapi
5+ - cli/command/stack/kubernetes/api/client
6+ skip-files :
7+ - cli/compose/schema/bindata.go
8+ - .*generated.*
9+ - parameter .* always receives
10+ linters :
11+ disable-all : true
12+ enable :
13+ - deadcode
14+ - gocyclo
15+ - gofmt
16+ - goimports
17+ - golint
18+ - gosimple
19+ - ineffassign
20+ - interfacer
21+ - lll
22+ - misspell
23+ - nakedret
24+ - unconvert
25+ - unparam
26+ - unused
27+ - vet
28+ linters-settings :
29+ nakedret :
30+ command : nakedret
31+ pattern : ^(?P<path>.*?\\.go):(?P<line>\\d+)\\s*(?P<message>.*)$
32+ gocyclo :
33+ min-complexity : 16
34+ lll :
35+ line-length : 200
Original file line number Diff line number Diff line change 1- FROM golang:1.12.1-alpine
1+ FROM golang:1.12.1 as build
2+ ARG GOLANGCI_LINTER_SHA=v1.16.0
23
3- RUN apk add -U git
4+ ENV CGO_ENABLED=0
5+ RUN GO111MODULE=on go get github.com/golangci/golangci-lint/cmd/golangci-lint@$GOLANGCI_LINTER_SHA
46
5- ARG GOMETALINTER_SHA=v2.0.6
6- RUN go get -d github.com/alecthomas/gometalinter && \
7- cd /go/src/github.com/alecthomas/gometalinter && \
8- git checkout -q "$GOMETALINTER_SHA" && \
9- go build -v -o /usr/local/bin/gometalinter . && \
10- gometalinter --install && \
11- rm -rf /go/src/* /go/pkg/*
7+ FROM golang:1.12.1-alpine as lint
128
9+ COPY --from=build /go/bin/golangci-lint /usr/local/bin
1310WORKDIR /go/src/github.com/docker/cli
14- ENV CGO_ENABLED=0
1511ENV DISABLE_WARN_OUTSIDE_CONTAINER=1
16- ENTRYPOINT ["/usr/local/bin/gometalinter"]
17- CMD ["--config=gometalinter.json", "./..."]
12+ ENV CGO_ENABLED=0
13+ ENTRYPOINT ["/usr/local/bin/golangci-lint"]
14+ CMD ["--verbose", "run", "--config=.golangci.yml"]
1815COPY . .
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments