Preparing report...

Report for github.com/hyperledger/aries-framework-go

(v0.2.0)

A+    Excellent!    Found 150 issues across 850 files

Tweet

go_vet100%

go vet examines Go source code and reports suspicious constructs, such as Printf calls whose arguments do not align with the format string.

No problems detected. Good job!


gofmt84%

Gofmt formats Go programs. We run gofmt -s on your code, where -s is for the "simplify" command

    • doc.go
    • Line 1: warning: file is not gofmted with -s (gofmt)

ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


gocyclo97%

Gocyclo calculates cyclomatic complexities of functions in Go source code. The cyclomatic complexity of a function is calculated according to the following rules: 1 is the base complexity of a function +1 for each 'if', 'for', 'case', '&&' or '||' Go Report Card warns on functions with cyclomatic complexity > 15.

    • pkg/doc/presexch/definition.go
    • Line 762: warning: cyclomatic complexity 24 of function filterConstraints() is high (> 15) (gocyclo)
    • Line 1319: warning: cyclomatic complexity 19 of function filterFormat() is high (> 15) (gocyclo)
    • Line 558: warning: cyclomatic complexity 17 of function (*PresentationDefinition).applyRequirement() is high (> 15) (gocyclo)
    • Line 999: warning: cyclomatic complexity 16 of function createNewCredential() is high (> 15) (gocyclo)
    • pkg/wallet/query.go
    • Line 161: warning: cyclomatic complexity 20 of function (*credentialMatcher).MatchExample() is high (> 15) (gocyclo)
    • pkg/didcomm/protocol/didexchange/states.go
    • Line 1048: warning: cyclomatic complexity 18 of function (*context).getServiceBlock() is high (> 15) (gocyclo)
    • Line 675: warning: cyclomatic complexity 18 of function (*context).getMyDIDDoc() is high (> 15) (gocyclo)
    • Line 434: warning: cyclomatic complexity 16 of function (*context).handleInboundRequest() is high (> 15) (gocyclo)
    • pkg/doc/cm/resolve.go
    • Line 65: warning: cyclomatic complexity 17 of function (*CredentialManifest).ResolveResponse() is high (> 15) (gocyclo)
    • pkg/doc/did/doc.go
    • Line 1316: warning: cyclomatic complexity 23 of function populateRawServices() is high (> 15) (gocyclo)
    • Line 1234: warning: cyclomatic complexity 17 of function (*Doc).VerificationMethods() is high (> 15) (gocyclo)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!