nuts-foundation/nuts-node

View on GitHub
vcr/issuer/issuer.go

Summary

Maintainability
A
1 hr
Test Coverage
B
88%

Method issuer.buildAndSignVC has 55 lines of code (exceeds 50 allowed). Consider refactoring.
Open

func (i issuer) buildAndSignVC(ctx context.Context, template vc.VerifiableCredential, options CredentialOptions) (*vc.VerifiableCredential, error) {
    issuerDID, err := did.ParseDID(template.Issuer.String())
    if err != nil {
        return nil, fmt.Errorf("failed to parse issuer: %w", err)
    }
Severity: Minor
Found in vcr/issuer/issuer.go - About 1 hr to fix

    Function NewIssuer has 9 arguments (exceeds 4 allowed). Consider refactoring.
    Wontfix

    func NewIssuer(store Store, vcrStore types.Writer, networkPublisher Publisher,
        openidHandlerFn func(ctx context.Context, id did.DID) (OpenIDHandler, error),
        didResolver resolver.DIDResolver, keyStore crypto.KeyStore, jsonldManager jsonld.JSONLD, trustConfig *trust.Config,
        statusList *revocation.StatusList2021) Issuer {
    Severity: Major
    Found in vcr/issuer/issuer.go - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status