Merge pull request #1829 from mmorel-35/golangci-lint@v2

[chore]: bump golangci-lint to v2.1.1
pull/1840/head
shirou 4 weeks ago committed by GitHub
commit 7d9af6fd99
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -69,7 +69,7 @@ jobs:
with:
go-version-file: go.mod
- name: Setup golangci-lint
uses: golangci/golangci-lint-action@55c2c1448f86e01eaae002a5a3a9624417608d84 # v6.5.2
uses: golangci/golangci-lint-action@1481404843c368bc19ca9406f87d6e0fc97bdcfd # v7.0.0
with:
args: --verbose
version: latest

@ -1,20 +1,25 @@
version: "2"
formatters:
enable:
- gci
- gofumpt
settings:
gci:
sections:
- standard
- default
- prefix(github.com/shirou)
issues:
max-same-issues: 0
exclude-rules: []
linters:
enable:
- asciicheck
- contextcheck
- durationcheck
- errorlint
- gci
- gocritic
- gofmt
- gofumpt
- goimports
- gomodguard
- gosec
- gosimple
- importas
- misspell
- nakedret
@ -24,7 +29,6 @@ linters:
- revive
- testifylint
- thelper
- typecheck
- unparam
- usetesting
disable:
@ -33,12 +37,7 @@ linters:
- ineffassign
- staticcheck
- unused
linters-settings:
gci:
sections:
- standard
- default
- prefix(github.com/shirou)
settings:
gocritic:
disabled-checks:
- captLocal
@ -111,5 +110,15 @@ linters-settings:
usetesting:
os-create-temp: false
os-mkdir-temp: false
exclusions:
generated: lax
presets:
- comments
- common-false-positives
- legacy
- std-error-handling
warn-unused: true
output:
show-stats: false
run:
timeout: 5m

@ -554,7 +554,7 @@ func TestOpenFiles(t *testing.T) {
assert.NotEmpty(t, v) // test always open files.
for _, vv := range v {
assert.NotEqual(t, "", vv.Path)
assert.NotEmpty(t, vv.Path)
}
}

Loading…
Cancel
Save