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
+ uses : golangci/golangci-lint-action@v2.5.2
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
8
8
test :
9
9
GO111MODULE=on go test ./...
10
10
11
+ .PHONY : lint
11
12
lint :
12
- golangci-lint run
13
+ go run github.com/golangci/golangci-lint/cmd/ golangci-lint run
13
14
14
15
.PHONY : build
15
16
build :
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ require (
8
8
github.com/Azure/go-autorest/autorest/to v0.4.0 // indirect
9
9
github.com/Azure/go-autorest/autorest/validation v0.3.1 // indirect
10
10
github.com/aws/aws-sdk-go v1.38.14
11
+ github.com/golangci/golangci-lint v1.39.0
11
12
github.com/nginxinc/nginx-plus-go-client v0.8.0
12
13
gopkg.in/yaml.v2 v2.4.0
13
14
)
You can’t perform that action at this time.
0 commit comments