Clean-up lint warnings #5
Annotations
5 errors
Run golangci/golangci-lint-action@v6:
internal/smtpconn/smtpconn.go#L532
unnecessary leading newline (whitespace)
|
Run golangci/golangci-lint-action@v6:
internal/auth/auth_test.go#L78
The copy of the 'for' variable "case_" can be deleted (Go 1.22+) (copyloopvar)
|
Run golangci/golangci-lint-action@v6:
internal/target/remote/remote_test.go#L1023
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/golangci-lint-action@v6:
internal/target/smtp/smtp_downstream_test.go#L347
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/golangci-lint-action@v6
issues found
|
Loading