File tree 2 files changed +14
-9
lines changed
2 files changed +14
-9
lines changed Original file line number Diff line number Diff line change 34
34
- name : Install Go
35
35
uses : actions/setup-go@v2
36
36
with :
37
- go-version : 1.17 # TODO(ldez) the binary compiled with go1.17 doesn't work on go1.18
38
37
# stable: 'false' # Keep this line to be able to use rc and beta version of Go (ex: 1.18.0-rc1).
39
- # go-version: ${{ env.GO_VERSION }} # TODO(ldez) the binary compiled with go1.17 doesn't work on go1.18
38
+ go-version : ${{ env.GO_VERSION }}
40
39
- name : lint
41
40
uses : golangci/golangci-lint-action@v3.1.0
42
41
with :
Original file line number Diff line number Diff line change @@ -33,13 +33,19 @@ linters-settings:
33
33
goimports :
34
34
local-prefixes : github.com/golangci/golangci-lint
35
35
gomnd :
36
- # TODO(ldez) must be rewritten after the v1.44.0 release.
37
- settings :
38
- mnd :
39
- # don't include the "operation" and "assign"
40
- checks : argument,case,condition,return
41
- ignored-numbers : 0,1,2,3
42
- ignored-functions : strings.SplitN
36
+ # don't include the "operation" and "assign"
37
+ checks :
38
+ - argument
39
+ - case
40
+ - condition
41
+ - return
42
+ ignored-numbers :
43
+ - ' 0'
44
+ - ' 1'
45
+ - ' 2'
46
+ - ' 3'
47
+ ignored-functions :
48
+ - strings.SplitN
43
49
44
50
govet :
45
51
check-shadowing : true
You can’t perform that action at this time.
0 commit comments