go-sprout/sprout

View on GitHub
registry/crypto/functions.go

Summary

Maintainability
A
2 hrs
Test Coverage

Method CryptoRegistry.GenerateSignedCertificateWithPEMKey has 6 arguments (exceeds 4 allowed). Consider refactoring.
Open

    cn string,
    ips []any,
    alternateDNS []any,
    daysValid int,
    ca Certificate,
Severity: Minor
Found in registry/crypto/functions.go - About 45 mins to fix

    Method CryptoRegistry.BuildCustomCertificate has 6 return statements (exceeds 4 allowed).
    Open

    func (ch *CryptoRegistry) BuildCustomCertificate(b64cert string, b64key string) (Certificate, error) {
        crt := Certificate{}
    
        cert, err := base64.StdEncoding.DecodeString(b64cert)
        if err != nil {
    Severity: Major
    Found in registry/crypto/functions.go - About 40 mins to fix

      Method CryptoRegistry.GenerateSignedCertificate has 5 arguments (exceeds 4 allowed). Consider refactoring.
      Open

          cn string,
          ips []any,
          alternateDNS []any,
          daysValid int,
          ca Certificate,
      Severity: Minor
      Found in registry/crypto/functions.go - About 35 mins to fix

        Method CryptoRegistry.GenerateSelfSignedCertificateWithPEMKey has 5 arguments (exceeds 4 allowed). Consider refactoring.
        Open

            cn string,
            ips []any,
            alternateDNS []any,
            daysValid int,
            privPEM string,
        Severity: Minor
        Found in registry/crypto/functions.go - About 35 mins to fix

          There are no issues that match your filters.

          Category
          Status