Update tooling and fix build issues
- Migrate golangci-lint config to v2 format - Update GitHub Actions: checkout v3→v4, Go 1.24→1.25 - Update golangci-lint-action v6→v9 with golangci-lint v2.8 - Fix dlnaplayer.go: use RequestHandler interface for go-upnpcast - Fix go.mod replace directive version mismatch for fyne fork
This commit is contained in:
+24
-12
@@ -1,11 +1,10 @@
|
||||
version: "2"
|
||||
run:
|
||||
go: "1.21"
|
||||
go: "1.24"
|
||||
issues-exit-code: 1
|
||||
tests: true
|
||||
timeout: 10m
|
||||
timeout: 15m
|
||||
linters:
|
||||
enable:
|
||||
- unused
|
||||
disable:
|
||||
- asasalint
|
||||
- asciicheck
|
||||
@@ -38,11 +37,24 @@ linters:
|
||||
- testifylint
|
||||
- unparam
|
||||
- zerologlint
|
||||
presets:
|
||||
- bugs
|
||||
- unused
|
||||
fast: false
|
||||
|
||||
linters-settings:
|
||||
gofmt:
|
||||
simplify: true
|
||||
exclusions:
|
||||
generated: lax
|
||||
presets:
|
||||
- comments
|
||||
- common-false-positives
|
||||
- legacy
|
||||
- std-error-handling
|
||||
paths:
|
||||
- third_party$
|
||||
- builtin$
|
||||
- examples$
|
||||
formatters:
|
||||
settings:
|
||||
gofmt:
|
||||
simplify: true
|
||||
exclusions:
|
||||
generated: lax
|
||||
paths:
|
||||
- third_party$
|
||||
- builtin$
|
||||
- examples$
|
||||
|
||||
Reference in New Issue
Block a user