Skip to content

Commit 10b2bb3

Browse files
bump golangci-lint to v2 (#46)
Signed-off-by: Tyler Auerbeck <[email protected]> Co-authored-by: Tyler Auerbeck <[email protected]>
1 parent 0697642 commit 10b2bb3

File tree

3 files changed

+31
-11
lines changed

3 files changed

+31
-11
lines changed

.github/workflows/golangci.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
with:
3232
fetch-depth: 0
3333
- name: GolangCI
34-
uses: golangci/golangci-lint-action@v3
34+
uses: golangci/golangci-lint-action@v8
3535
with:
36-
version: v1.61.0
36+
version: v2.2.2
3737
args: --timeout=3m

.golangci.toml

Lines changed: 28 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,32 @@
1-
[run]
2-
timeout = "120s"
3-
4-
[output]
5-
format = "colored-line-number"
1+
version = '2'
62

73
[linters]
84
enable = [
9-
"gocyclo", "unconvert", "goimports","vetshadow", "misspell", "ineffassign","goconst", "vet", "unparam", "gofmt"]
5+
'goconst',
6+
'gocyclo',
7+
'misspell',
8+
'unconvert',
9+
'unparam'
10+
]
11+
12+
[linters.exclusions]
13+
generated = 'lax'
14+
paths = [
15+
'third_party$',
16+
'builtin$',
17+
'examples$'
18+
]
19+
20+
[formatters]
21+
enable = [
22+
'gofmt',
23+
'goimports'
24+
]
1025

11-
[issues]
12-
exclude-use-default = false
26+
[formatters.exclusions]
27+
generated = 'lax'
28+
paths = [
29+
'third_party$',
30+
'builtin$',
31+
'examples$'
32+
]

internal/infoblox/infoblox.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -792,7 +792,7 @@ func (p *Provider) recordSet(ep *endpoint.Endpoint, getObject bool) (recordSet i
792792
}
793793

794794
func (p *Provider) buildRecord(change *infobloxChange) (*infobloxRecordSet, error) {
795-
rs, err := p.recordSet(change.Endpoint, !(change.Action == infobloxCreate))
795+
rs, err := p.recordSet(change.Endpoint, !(change.Action == infobloxCreate)) //nolint: staticcheck
796796
if err != nil {
797797
return nil, err
798798
}

0 commit comments

Comments
 (0)