fix: resolve errcheck lint failures in tests and wordlist reader #37
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)
|