aboutsummaryrefslogtreecommitdiff
path: root/.ci/lint.sh
blob: e2ee0cec7c0397d71a873fc32355d4a5857dcfc5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
# binary will be $(go env GOPATH)/bin/golangci-lint
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.30.0
# or install it into ./bin/
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s v1.30.0
# In alpine linux (as it does not come with curl by default)
wget -O- -nv https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s v1.30.0

export PATH=$PATH:$(go env GOPATH)/bin

golangci-lint --version

golangci-lint run --max-same-issues 0