chore(deps): update golangci lint to v2
All checks were successful
Golang Tests / unittest (stable, ubuntu-latest-amd64) (push) Successful in 7s
Markdown linter / markdown-lint (push) Successful in 3s
Golang Tests / unittest (stable, ubuntu-latest-arm64) (push) Successful in 18s
Golang CI lint / golangci (stable, ubuntu-latest-arm64) (push) Successful in 40s
Golang CI lint / golangci (stable, ubuntu-latest-amd64) (push) Successful in 1m22s

This commit is contained in:
2025-08-11 22:18:40 +02:00
parent 4bed79c68b
commit f819510340
2 changed files with 14 additions and 25 deletions

View File

@ -1,27 +1,13 @@
run: version: "2"
timeout: 10m
tests: true
linters: linters:
disable-all: true default: standard
enable: enable:
# Default - errname
- deadcode - gosec
- errcheck
- gosimple
- govet
- ineffassign
- staticcheck
- structcheck
- typecheck
- unused
- varcheck
# Additionally linters exclusions:
- bodyclose rules: []
- misspell warn-unused: true
- nilerr
- rowserrcheck run:
- sqlclosecheck tests: true
- unparam
- whitespace

View File

@ -36,5 +36,8 @@ func main() {
log.Fatalf("failed to find gateway for ip: %v", err.Error()) log.Fatalf("failed to find gateway for ip: %v", err.Error())
} }
fmt.Fprintln(os.Stdout, prefferedSrc.String()) _, err = fmt.Fprintln(os.Stdout, prefferedSrc.String())
if err != nil {
log.Fatalf("failed to print gateway on stdout: %v", err.Error())
}
} }