nuts-foundation/nuts-node

View on GitHub
vdr/didkey/resolver.go

Summary

Maintainability
A
2 hrs
Test Coverage
A
93%

Method Resolver.Resolve has 75 lines of code (exceeds 50 allowed). Consider refactoring.
Open

func (r Resolver) Resolve(id did.DID, _ *resolver.ResolveMetadata) (*did.Document, *resolver.DocumentMetadata, error) {
    if id.Method != MethodName {
        return nil, nil, fmt.Errorf("unsupported DID method: %s", id.Method)
    }
    encodedKey := id.ID
Severity: Minor
Found in vdr/didkey/resolver.go - About 2 hrs to fix

    There are no issues that match your filters.

    Category
    Status