Skip to content

fix: resolve errcheck lint failures in tests and wordlist reader #37

fix: resolve errcheck lint failures in tests and wordlist reader

fix: resolve errcheck lint failures in tests and wordlist reader #37

Triggered via push March 14, 2026 16:33
Status Failure
Total duration 33s
Artifacts

go.yml

on: push
Matrix: release
Fit to window
Zoom out
Zoom in

Annotations

9 errors
build
issues found
build: internal/dns/simulate.go#L28
G404: Use of weak random number generator (math/rand or math/rand/v2 instead of crypto/rand) (gosec)
build: internal/dns/simulate.go#L25
G404: Use of weak random number generator (math/rand or math/rand/v2 instead of crypto/rand) (gosec)
build: internal/dns/simulate.go#L24
G404: Use of weak random number generator (math/rand or math/rand/v2 instead of crypto/rand) (gosec)
build: main.go#L201
exitAfterDefer: os.Exit will exit, and `defer outWriter.Flush()` will not run (gocritic)
build: tools/wordlist-gen.go#L39
Error return value of `writer.Flush` is not checked (errcheck)
build: tools/wordlist-gen.go#L36
Error return value of `file.Close` is not checked (errcheck)
build: main.go#L170
Error return value of `outWriter.Flush` is not checked (errcheck)
build: main.go#L168
Error return value of `f.Close` is not checked (errcheck)