File tree Expand file tree Collapse file tree 3 files changed +15
-12
lines changed Expand file tree Collapse file tree 3 files changed +15
-12
lines changed Original file line number Diff line number Diff line change 1515 - name : Set up Go
1616 uses : actions/setup-go@v4
1717 with :
18- go-version : " 1.21 "
18+ go-version : stable
1919
2020 - name : Build
2121 run : go build -v ./
2929 - uses : actions/checkout@v4
3030
3131 - name : Set up Go
32- uses : actions/setup-go@v4
32+ uses : actions/setup-go@v5
3333 with :
34- go-version : " 1.21 "
34+ go-version : stable
3535
3636 - name : " Run golangci-lint"
37- uses : golangci/golangci-lint-action@v3
37+ uses : golangci/golangci-lint-action@v6
38+ with :
39+ version : v1.63.4
Original file line number Diff line number Diff line change 11---
22run :
3- deadline : 1m
3+ timeout : 1m
44 issues-exit-code : 1
55 tests : true
66
77output :
8- format : colored-line-number
8+ formats :
9+ - format : colored-line-number
910 print-issued-lines : false
1011
1112linters-settings :
@@ -17,7 +18,8 @@ issues:
1718 max-issues-per-linter : 0
1819 max-same-issues : 0
1920 exclude-rules :
20- - linters : revive
21+ - linters :
22+ - revive
2123 text : " ^package-comments:"
2224
2325linters :
@@ -32,12 +34,12 @@ linters:
3234 - dupl
3335 - dupword
3436 - durationcheck
37+ - err113
3538 - errcheck
3639 - errchkjson
3740 - errname
3841 - errorlint
3942 - exhaustive
40- - exportloopref
4143 - forbidigo
4244 - forcetypeassert
4345 - gochecknoglobals
@@ -46,11 +48,9 @@ linters:
4648 - gocritic
4749 - godot
4850 - godox
49- - goerr113
5051 - gofmt
5152 - gofumpt
5253 - goimports
53- - gomnd
5454 - gomoddirectives
5555 - gomodguard
5656 - goprintffuncname
@@ -68,6 +68,7 @@ linters:
6868 - makezero
6969 - mirror
7070 - misspell
71+ - mnd
7172 - musttag
7273 - nakedret
7374 - nilerr
Original file line number Diff line number Diff line change @@ -130,7 +130,7 @@ func (i *InferredNumber) ContainedBy(nt NumType) bool {
130130 return false
131131 }
132132
133- min , max := nt .AsRange ()
133+ minValue , maxValue := nt .AsRange ()
134134
135- return min <= i .Min && max >= i .Max
135+ return minValue <= i .Min && maxValue >= i .Max
136136}
You can’t perform that action at this time.
0 commit comments