Skip to content

Commit b717747

Browse files
committed
Fix linting
1 parent 52a379b commit b717747

File tree

3 files changed

+15
-12
lines changed

3 files changed

+15
-12
lines changed

.github/workflows/go.yaml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
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 ./
@@ -29,9 +29,11 @@ jobs:
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

.golangci.yaml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
---
22
run:
3-
deadline: 1m
3+
timeout: 1m
44
issues-exit-code: 1
55
tests: true
66

77
output:
8-
format: colored-line-number
8+
formats:
9+
- format: colored-line-number
910
print-issued-lines: false
1011

1112
linters-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

2325
linters:
@@ -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

inferred_number.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)