nuts-foundation/nuts-node

View on GitHub
vcr/holder/presenter.go

Summary

Maintainability
A
2 hrs
Test Coverage
B
87%

Method presenter.buildSubmission has 6 arguments (exceeds 4 allowed). Consider refactoring.
Open

func (p presenter) buildSubmission(ctx context.Context, holderDID did.DID, credentials []vc.VerifiableCredential, presentationDefinition pe.PresentationDefinition,
    acceptedFormats map[string]map[string][]string, params BuildParams) (*vc.VerifiablePresentation, *pe.PresentationSubmission, error) {
Severity: Minor
Found in vcr/holder/presenter.go - About 45 mins to fix

    Method presenter.buildJWTPresentation has 5 arguments (exceeds 4 allowed). Consider refactoring.
    Open

    func (p presenter) buildJWTPresentation(ctx context.Context, subjectDID did.DID, credentials []vc.VerifiableCredential, options PresentationOptions, keyID string) (*vc.VerifiablePresentation, error) {
    Severity: Minor
    Found in vcr/holder/presenter.go - About 35 mins to fix

      Method presenter.buildJSONLDPresentation has 5 arguments (exceeds 4 allowed). Consider refactoring.
      Open

      func (p presenter) buildJSONLDPresentation(ctx context.Context, subjectDID did.DID, credentials []vc.VerifiableCredential, options PresentationOptions, keyID string) (*vc.VerifiablePresentation, error) {
      Severity: Minor
      Found in vcr/holder/presenter.go - About 35 mins to fix

        There are no issues that match your filters.

        Category
        Status