Skip to content

Fix more linting errors #36

Fix more linting errors

Fix more linting errors #36

Triggered via push December 4, 2023 19:35
Status Failure
Total duration 18s
Artifacts

lint.yaml

on: push
Fit to window
Zoom out
Zoom in

Annotations

9 errors
lint: cmd/cmd.go#L13
could not import cunicu.li/hawkes/ecdh/applese (-: build constraints exclude all Go files in ecdh/applese) (typecheck)
lint: provider/applese.go#L11
could not import cunicu.li/hawkes/ecdh/applese (-: build constraints exclude all Go files in ecdh/applese) (typecheck)
lint: provider/applese.go#L16
cannot use (*appleSecureEnclaveKey)(nil) (value of type *appleSecureEnclaveKey) as PrivateKeyDH value in variable declaration: *appleSecureEnclaveKey does not implement PrivateKeyDH (missing method DH) (typecheck)
lint: provider/applese.go#L23
k.Public undefined (type *appleSecureEnclaveKey has no field or method Public) (typecheck)
lint: internal/openpgp/objects.go#L144
cognitive complexity 118 of func `(*ApplicationRelated).Decode` is high (> 30) (gocognit)
lint: hmac/ykoath/ykoath.go#L67
var `errFailedToDisconnect` is unused (unused)
lint: ecdh/public_key.go#L44
err113: do not define dynamic errors, use wrapped static errors instead: "fmt.Errorf(\"failed to parse\")" (goerr113)
lint: ecdh/public_key.go#L49
err113: do not define dynamic errors, use wrapped static errors instead: "fmt.Errorf(\"unsupported curve: %s\", curveName)" (goerr113)
lint
issues found