fix lint #6
Annotations
8 errors
Run golangci-lint:
internal/cmd/command.go#L58
Error return value of `viper.BindPFlags` is not checked (errcheck)
|
Run golangci-lint:
internal/util/interface.go#L8
File is not `goimports`-ed with -local github.com/sapcc/go-pmtud (goimports)
|
Run golangci-lint:
internal/nflog/pmtud.go#L14
File is not `goimports`-ed with -local github.com/sapcc/go-pmtud (goimports)
|
Run golangci-lint:
internal/cmd/command.go#L10
File is not `goimports`-ed with -local github.com/sapcc/go-pmtud (goimports)
|
Run golangci-lint:
internal/nflog/pmtud.go#L24
var `wg` is unused (unused)
|
Run golangci-lint:
internal/util/interface.go#L51
fmt.Errorf can be replaced with errors.New (perfsprint)
|
Run golangci-lint:
internal/cmd/command.go#L60
SA1019: rand.Seed has been deprecated since Go 1.20 and an alternative has been available since Go 1.0: As of Go 1.20 there is no reason to call Seed with a random value. Programs that call Seed with a known value to get a specific sequence of results should use New(NewSource(seed)) to obtain a local random generator. (staticcheck)
|
Run golangci-lint
issues found
|
The logs for this run have expired and are no longer available.
Loading