brokeyourbike/clearbank-api-client-go

View on GitHub

Showing 2 of 2 total issues

Method client.do has 7 return statements (exceeds 4 allowed).
Open

func (c *client) do(ctx context.Context, req *request) error {
    resp, err := c.httpClient.Do(req.req)
    if err != nil {
        return fmt.Errorf("failed to send request: %w", err)
    }
Severity: Major
Found in client.go - About 45 mins to fix

    Function ParsePublicKey has 5 return statements (exceeds 4 allowed).
    Open

    func ParsePublicKey(pub []byte) (*rsa.PublicKey, error) {
        pubPem, _ := pem.Decode(pub)
        if pubPem == nil {
            return nil, ErrFailedToDecodeKey
        }
    Severity: Major
    Found in signature/local/verifier.go - About 35 mins to fix
      Severity
      Category
      Status
      Source
      Language