File tree Expand file tree Collapse file tree 6 files changed +1287
-11
lines changed Expand file tree Collapse file tree 6 files changed +1287
-11
lines changed Original file line number Diff line number Diff line change 1+ name : Lint
2+
3+ on :
4+ pull_request :
5+ branches :
6+ - master
7+ paths-ignore :
8+ - ' examples/**'
9+ - ' **.md'
10+ types :
11+ - opened
12+ - reopened
13+ - synchronize
14+
15+ defaults :
16+ run :
17+ shell : bash
18+
19+ env :
20+ GOLANGCI_TIMEOUT : 10m0s
21+
22+ jobs :
23+
24+ lint :
25+ name : Lint
26+ runs-on : ubuntu-20.04
27+ steps :
28+ - name : Checkout Repository
29+ uses : actions/checkout@v2
30+ - name : Lint Code
31+ 32+ with :
33+ args : --timeout ${{ env.GOLANGCI_TIMEOUT }}
Original file line number Diff line number Diff line change 1+ linters-settings :
2+ misspell :
3+ locale : US
4+
5+ linters :
6+ enable :
7+ - goimports
8+ - gosimple
9+ - govet
10+ - misspell
11+ - gofmt
12+ - unparam
13+ - unconvert
14+ - structcheck
15+ - errcheck
16+ disable-all : true
17+
Original file line number Diff line number Diff line change @@ -8,8 +8,9 @@ all: amazon amazon2 centos7 centos8 debian
88test :
99 GO111MODULE=on go test ./...
1010
11+ .PHONY : lint
1112lint :
12- golangci-lint run
13+ go run github.com/golangci/golangci-lint/cmd/ golangci-lint run
1314
1415.PHONY : build
1516build :
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ require (
88 github.com/Azure/go-autorest/autorest/to v0.4.0 // indirect
99 github.com/Azure/go-autorest/autorest/validation v0.3.1 // indirect
1010 github.com/aws/aws-sdk-go v1.38.14
11+ github.com/golangci/golangci-lint v1.39.0
1112 github.com/nginxinc/nginx-plus-go-client v0.8.0
1213 gopkg.in/yaml.v2 v2.4.0
1314)
You can’t perform that action at this time.
0 commit comments