init #4
Annotations
11 errors
lint:
internal/smtp/server.go#L114
cognitive complexity 95 of func `(*Server).handleConnection` is high (> 30) (gocognit)
|
lint:
internal/email/types.go#L45
Comment should end in a period (godot)
|
lint:
internal/email/types.go#L30
exported: type name will be used as email.EmailAddress by other packages, and that stutters; consider calling this Address (revive)
|
lint:
internal/smtp/server.go#L51
field `from` is unused (unused)
|
lint:
internal/smtp/server.go#L52
field `to` is unused (unused)
|
lint:
internal/email/client.go#L61
do not define dynamic errors, use wrapped static errors instead: "fmt.Errorf(\"status code: %d, error message: %s\", resp.StatusCode, commError.Error.Message)" (err113)
|
lint:
internal/email/client.go#L65
do not define dynamic errors, use wrapped static errors instead: "fmt.Errorf(\"status code: %d\", resp.StatusCode)" (err113)
|
lint:
internal/smtp/server.go#L103
do not define dynamic errors, use wrapped static errors instead: "errors.New(\"server already closed\")" (err113)
|
lint:
internal/smtp/server.go#L355
do not define dynamic errors, use wrapped static errors instead: "errors.New(\"invalid mail format: missing headers or body\")" (err113)
|
lint:
internal/smtp/server.go#L363
do not define dynamic errors, use wrapped static errors instead: "fmt.Errorf(\"invalid header format: %s\", line)" (err113)
|
Build & Test
Process completed with exit code 1.
|