Compare commits

..

1 Commits

Author SHA1 Message Date
fd023428a3 chore(deps): update actions/checkout action to v5
Some checks failed
Golang CI lint / golangci (stable, ubuntu-latest-amd64) (push) Failing after 3s
Golang Tests / unittest (stable, ubuntu-latest-amd64) (push) Failing after 7s
Markdown linter / markdown-lint (push) Failing after 2s
Golang CI lint / golangci (stable, ubuntu-latest-amd64) (pull_request) Failing after 2s
Golang Tests / unittest (stable, ubuntu-latest-amd64) (pull_request) Failing after 5s
Markdown linter / markdown-lint (pull_request) Failing after 2s
Golang Tests / unittest (stable, ubuntu-latest-arm64) (push) Failing after 5s
Golang CI lint / golangci (stable, ubuntu-latest-arm64) (push) Failing after 3s
Golang Tests / unittest (stable, ubuntu-latest-arm64) (pull_request) Failing after 3s
Golang CI lint / golangci (stable, ubuntu-latest-arm64) (pull_request) Failing after 3s
2025-08-11 13:13:50 +00:00
2 changed files with 26 additions and 15 deletions

View File

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

View File

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