aboutsummaryrefslogtreecommitdiff
path: root/.ci/lint.sh
blob: cde7292b44cae23097d267e97b156b525ace6211 (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