Preparing report...

Report for github.com/hyperledger/ursa-wrapper-go

A+    Excellent!    Found 9 issues across 13 files

Tweet

gofmt100%

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

No problems detected. Good job!


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!


gocyclo92%

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.


golint53%

Golint is a linter for Go source code.

    • ursa-wrapper-go/pkg/libursa/ursa/proof_builder.go
    • Line 13: warning: exported type ProofBuilder should have comment or be unexported (golint)
    • Line 14: warning: exported type ProofHandle should have comment or be unexported (golint)
    • Line 16: warning: comment on exported function NewProofBuilder should be of the form "NewProofBuilder ..." (golint)
    • Line 103: warning: exported type SubProofRequestBuilder should have comment or be unexported (golint)
    • Line 104: warning: exported type SubProofRequestHandle should have comment or be unexported (golint)
    • ursa-wrapper-go/pkg/libursa/ursa/ursa.go
    • Line 15: warning: exported type Handle should have comment or be unexported (golint)
    • Line 19: warning: exported type Nonce should have comment or be unexported (golint)
    • Line 141: warning: exported type NonCredentialSchemaBuilder should have comment or be unexported (golint)
    • Line 142: warning: exported type NonCredentialSchemaHandle should have comment or be unexported (golint)
    • Line 191: warning: exported type CredentialSchemaBuilder should have comment or be unexported (golint)
    • Line 192: warning: exported type CredentialSchemaHandle should have comment or be unexported (golint)
    • Line 239: warning: exported type CredentialDefPubKey should have comment or be unexported (golint)
    • Line 240: warning: exported type CredentialDefPrivKey should have comment or be unexported (golint)
    • Line 241: warning: exported type CredentialDefKeyCorrectnessProof should have comment or be unexported (golint)
    • Line 312: warning: exported type CredentialDef should have comment or be unexported (golint)
    • Line 349: warning: exported type SignatureParams should have comment or be unexported (golint)
    • Line 365: warning: exported type CredentialSignature should have comment or be unexported (golint)
    • Line 366: warning: exported type CredentialSignatureCorrectnessProof should have comment or be unexported (golint)
    • Line 488: warning: exported type BlindedCredentialSecretsHandle should have comment or be unexported (golint)
    • Line 489: warning: exported type CredentialSecretsBlindingFactors should have comment or be unexported (golint)
    • Line 490: warning: exported type BlindedCredentialSecretsCorrectnessProof should have comment or be unexported (golint)
    • Line 575: warning: exported type BlindedCredentialSecrets should have comment or be unexported (golint)
    • ursa-wrapper-go/pkg/libzmix/bbs/bbs.go
    • Line 15: warning: exported type BlsKeyPair should have comment or be unexported (golint)
    • Line 20: warning: exported type HandleByteBuffer should have comment or be unexported (golint)
    • Line 24: warning: exported method HandleByteBuffer.Free should have comment or be unexported (golint)
    • Line 28: warning: comment on exported function GenerateBlsKey should be of the form "GenerateBlsKey ..." (golint)
    • Line 63: warning: comment on exported method BlsKeyPair.FreePublicKey should be of the form "FreePublicKey ..." (golint)
    • Line 83: warning: exported type Handle should have comment or be unexported (golint)
    • Line 87: warning: exported type BlindSignContext should have comment or be unexported (golint)
    • Line 89: warning: comment on exported function BlindSignContextInit should be of the form "BlindSignContextInit ..." (golint)
    • Line 153: warning: exported type BlindedSignature should have comment or be unexported (golint)
    • Line 191: warning: exported type SignContext should have comment or be unexported (golint)
    • Line 248: warning: exported type Signature should have comment or be unexported (golint)
    • Line 273: warning: exported type BlindCommitmentContext should have comment or be unexported (golint)
    • Line 333: warning: exported type BlindedCommitment should have comment or be unexported (golint)
    • Line 358: warning: comment on exported method BlindedCommitment.Free should be of the form "Free ..." (golint)
    • Line 365: warning: exported type VerifyBlindCommitmentContext should have comment or be unexported (golint)
    • Line 451: warning: exported type VerifyContext should have comment or be unexported (golint)
    • Line 517: warning: exported type ProofContext should have comment or be unexported (golint)
    • Line 531: warning: exported type ProofMessageType should have comment or be unexported (golint)
    • Line 534: warning: exported const Revealed should have comment (or a comment on this block) or be unexported (golint)
    • Line 539: warning: comment on exported method ProofContext.AddProofMessages should be of the form "AddProofMessages ..." (golint)
    • Line 607: warning: exported type Proof should have comment or be unexported (golint)
    • Line 627: warning: exported type VerifyProofContext should have comment or be unexported (golint)
    • Line 641: warning: comment on exported method VerifyProofContext.AddMessage should be of the form "AddMessage ..." (golint)
    • Line 716: warning: exported var ProofStatus should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign76%

IneffAssign detects ineffectual assignments in Go code.


misspell92%

Misspell Finds commonly misspelled English words