Preparing report...

Report for github.com/scoir/canis

A+    Excellent!    Found 103 issues across 174 files

Tweet

gofmt99%

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


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!


gocyclo98%

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.


golint45%

Golint is a linter for Go source code.

    • canis/pkg/framework/simple.go
    • Line 10: warning: exported type SimpleProvider should have comment or be unexported (golint)
    • Line 14: warning: exported method SimpleProvider.GetPresentProofClient should have comment or be unexported (golint)
    • Line 18: warning: exported method SimpleProvider.GetCredentialClient should have comment or be unexported (golint)
    • Line 22: warning: exported function NewSimpleProvider should have comment or be unexported (golint)
    • Line 26: warning: exported method SimpleProvider.GetDIDClient should have comment or be unexported (golint)
    • canis/pkg/schema/by.go
    • Line 13: warning: exported type ByCredDef should have comment or be unexported (golint)
    • Line 15: warning: exported function ByCredDefSchemaName should have comment or be unexported (golint)
    • Line 20: warning: exported function ByCredDefSchemaID should have comment or be unexported (golint)
    • Line 25: warning: exported function ByCredDefSchemaIssuerDID should have comment or be unexported (golint)
    • Line 30: warning: exported function ByCredDefVersion should have comment or be unexported (golint)
    • Line 35: warning: exported function ByCredDefIssuerDID should have comment or be unexported (golint)
    • Line 40: warning: exported function ByCredDefID should have comment or be unexported (golint)
    • Line 46: warning: exported type BySchema should have comment or be unexported (golint)
    • Line 48: warning: exported function BySchemaName should have comment or be unexported (golint)
    • Line 53: warning: exported function BySchemaID should have comment or be unexported (golint)
    • Line 58: warning: exported function BySchemaIssuerDID should have comment or be unexported (golint)
    • Line 63: warning: exported function BySchemaVersion should have comment or be unexported (golint)
    • canis/pkg/didcomm/verifier/presentation_handler.go
    • Line 15: warning: exported function NewProofHandler should have comment or be unexported (golint)
    • Line 22: warning: exported type ProofHandler should have comment or be unexported (golint)
    • Line 33: warning: exported method ProofHandler.ProposePresentationMsg should have comment or be unexported (golint)
    • Line 38: warning: exported method ProofHandler.RequestPresentationMsg should have comment or be unexported (golint)
    • Line 43: warning: exported method ProofHandler.PresentationMsg should have comment or be unexported (golint)
    • Line 121: warning: exported method ProofHandler.PresentationPreviewMsg should have comment or be unexported (golint)
    • canis/pkg/notifier/notifier.go
    • Line 17: warning: exported type Server should have comment or be unexported (golint)
    • Line 28: warning: exported function New should have comment or be unexported (golint)
    • Line 37: warning: exported method Server.Start should have comment or be unexported (golint)
    • Line 94: warning: exported method Server.Errors should have comment or be unexported (golint)
    • canis/pkg/client/canis/client.go
    • Line 13: warning: exported type Client should have comment or be unexported (golint)
    • Line 19: warning: exported function New should have comment or be unexported (golint)
    • Line 31: warning: exported method Client.Close should have comment or be unexported (golint)
    • Line 34: warning: exported method Client.AgentInformer should have comment or be unexported (golint)
    • canis/pkg/framework/context/aries.go
    • Line 39: warning: exported function GetAriesVDRIs should have comment or be unexported (golint)
    • Line 116: warning: exported method Provider.GetAriesContext should have comment or be unexported (golint)
    • Line 182: warning: exported method Provider.GetDIDClient should have comment or be unexported (golint)
    • Line 198: warning: exported method Provider.GetCredentialClient should have comment or be unexported (golint)
    • Line 214: warning: exported method Provider.GetSupervisor should have comment or be unexported (golint)
    • canis/pkg/config/viper_provider.go
    • Line 28: warning: comment on exported function WithFile should be of the form "WithFile ..." (golint)
    • Line 35: warning: exported type ViperConfigProvider should have comment or be unexported (golint)
    • Line 44: warning: exported method ViperConfigProvider.Load should have comment or be unexported (golint)
    • canis/pkg/didexchange/supervisor.go
    • Line 18: warning: exported type HandlerFunc should have comment or be unexported (golint)
    • Line 19: warning: exported type ConnectionFunc should have comment or be unexported (golint)
    • Line 21: warning: exported type Handler should have comment or be unexported (golint)
    • Line 26: warning: exported type Supervisor should have comment or be unexported (golint)
    • Line 37: warning: exported function New should have comment or be unexported (golint)
    • Line 54: warning: exported method Supervisor.Start should have comment or be unexported (golint)
    • canis/pkg/didcomm/doorman/doorman.go
    • Line 32: warning: exported const ConnectionTopic should have comment or be unexported (golint)
    • Line 33: warning: exported const AcceptedEvent should have comment or be unexported (golint)
    • Line 41: warning: exported type Doorman should have comment or be unexported (golint)
    • Line 48: warning: exported function New should have comment or be unexported (golint)
    • Line 76: warning: exported method Doorman.RegisterGRPCHandler should have comment or be unexported (golint)
    • Line 80: warning: exported method Doorman.RegisterGRPCGateway should have comment or be unexported (golint)
    • Line 83: warning: exported method Doorman.APISpec should have comment or be unexported (golint)
    • Line 87: warning: exported method Doorman.GetInvitation should have comment or be unexported (golint)
    • Line 192: warning: exported method Doorman.AcceptInvitation should have comment or be unexported (golint)
    • canis/pkg/resolver/http_resolver.go
    • Line 31: warning: exported type HTTPIndyResolver should have comment or be unexported (golint)
    • Line 48: warning: exported function NewHTTPIndyResolver should have comment or be unexported (golint)
    • Line 58: warning: exported method HTTPIndyResolver.Start should have comment or be unexported (golint)
    • canis/pkg/notifier/message.go
    • Line 3: warning: exported const QueueName should have comment or be unexported (golint)
    • Line 5: warning: exported type Notification should have comment or be unexported (golint)
    • Line 11: warning: exported type EventMessage should have comment or be unexported (golint)
    • canis/pkg/apiserver/mocks/mock_doorman.go
    • Line 11: warning: exported type MockDoorman should have comment or be unexported (golint)
    • Line 18: warning: exported method MockDoorman.GetInvitation should have comment or be unexported (golint)
    • Line 26: warning: exported method MockDoorman.AcceptInvitation should have comment or be unexported (golint)
    • canis/pkg/clr/model.go
    • Line 7: warning: exported type Address should have comment or be unexported (golint)
    • Line 8: warning: exported type CryptographicKey should have comment or be unexported (golint)
    • Line 10: warning: exported type Profile should have comment or be unexported (golint)
    • Line 28: warning: exported type Endorsement should have comment or be unexported (golint)
    • Line 29: warning: exported type Evidence should have comment or be unexported (golint)
    • Line 30: warning: exported type Result should have comment or be unexported (golint)
    • Line 31: warning: exported type Verification should have comment or be unexported (golint)
    • Line 33: warning: exported type Assertion should have comment or be unexported (golint)
    • Line 57: warning: exported type Alignment should have comment or be unexported (golint)
    • Line 58: warning: exported type Association should have comment or be unexported (golint)
    • Line 59: warning: exported type Criteria should have comment or be unexported (golint)
    • Line 60: warning: exported type ResultDescription should have comment or be unexported (golint)
    • Line 61: warning: exported type CompactJWS should have comment or be unexported (golint)
    • Line 63: warning: exported type Achievement should have comment or be unexported (golint)
    • Line 84: warning: exported type CLR should have comment or be unexported (golint)
    • canis/pkg/apiserver/cmd/root.go
    • Line 63: warning: exported type Provider should have comment or be unexported (golint)
    • Line 73: warning: exported function Execute should have comment or be unexported (golint)
    • Line 161: warning: exported method Provider.StorageProvider should have comment or be unexported (golint)
    • Line 165: warning: exported method Provider.Store should have comment or be unexported (golint)
    • Line 169: warning: exported method Provider.Oracle should have comment or be unexported (golint)
    • Line 173: warning: exported method Provider.IndyVDR should have comment or be unexported (golint)
    • Line 184: warning: exported method Provider.GetGRPCEndpoint should have comment or be unexported (golint)
    • Line 188: warning: exported method Provider.GetBridgeEndpoint should have comment or be unexported (golint)
    • Line 192: warning: exported method Provider.GetDoormanClient should have comment or be unexported (golint)
    • Line 206: warning: exported method Provider.GetIssuerClient should have comment or be unexported (golint)
    • Line 220: warning: exported method Provider.GetVerifierClient should have comment or be unexported (golint)
    • Line 234: warning: exported method Provider.GetLoadbalancerClient should have comment or be unexported (golint)
    • Line 248: warning: exported method Provider.GetMediatorClient should have comment or be unexported (golint)
    • Line 262: warning: exported method Provider.KMS should have comment or be unexported (golint)
    • Line 266: warning: exported method Provider.MediatorKMS should have comment or be unexported (golint)
    • Line 270: warning: exported method Provider.GetCredentialEngineRegistry should have comment or be unexported (golint)
    • Line 284: warning: exported method Provider.VDRIRegistry should have comment or be unexported (golint)
    • Line 288: warning: exported method Provider.GetPresentationEngineRegistry should have comment or be unexported (golint)
    • Line 302: warning: exported method Provider.SecretLock should have comment or be unexported (golint)
    • canis/pkg/didcomm/verifier/dependencies.go
    • Line 10: warning: comment on exported type Provider should be of the form "Provider ..." (with optional leading article) (golint)
    • Line 17: warning: comment on exported type PresentProofClient should be of the form "PresentProofClient ..." (with optional leading article) (golint)
    • canis/pkg/client/informer/informer.go
    • Line 5: warning: exported type ResourceInformer should have comment or be unexported (golint)
    • Line 10: warning: exported type SharedResourceInformer should have comment or be unexported (golint)
    • Line 16: warning: exported function NewSharedResourceInformer should have comment or be unexported (golint)
    • Line 20: warning: exported method SharedResourceInformer.AddEventHandler should have comment or be unexported (golint)
    • Line 27: warning: exported method SharedResourceInformer.Run should have comment or be unexported (golint)
    • canis/pkg/mock/interface.go
    • Line 7: warning: comment on exported type Provider should be of the form "Provider ..." (with optional leading article) (golint)
    • Line 19: warning: comment on exported type Store should be of the form "Store ..." (with optional leading article) (golint)
    • canis/pkg/notifier/cmd/root.go
    • Line 36: warning: exported type Provider should have comment or be unexported (golint)
    • Line 41: warning: exported function Execute should have comment or be unexported (golint)
    • Line 83: warning: exported method Provider.GetDatastore should have comment or be unexported (golint)
    • Line 87: warning: exported method Provider.GetAMQPListener should have comment or be unexported (golint)
    • canis/pkg/presentproof/engine/jsonld/engine.go
    • Line 21: warning: exported const DIFPresentationExchange should have comment (or a comment on this block) or be unexported (golint)
    • Line 31: warning: exported type Engine should have comment or be unexported (golint)
    • Line 43: warning: exported function New should have comment or be unexported (golint)
    • Line 60: warning: exported type RequestPresentation should have comment or be unexported (golint)
    • Line 69: warning: comment on exported method Engine.RequestPresentation should be of the form "RequestPresentation ..." (golint)
    • Line 89: warning: exported method Engine.RequestPresentationFormat should have comment or be unexported (golint)
    • Line 93: warning: exported method Engine.Verify should have comment or be unexported (golint)
    • canis/pkg/ursa/prover.go
    • Line 17: warning: exported type Prover should have comment or be unexported (golint)
    • Line 25: warning: exported function NewProver should have comment or be unexported (golint)
    • Line 34: warning: exported method Prover.CreateMasterSecret should have comment or be unexported (golint)
    • Line 65: warning: exported method Prover.GetMasterSecret should have comment or be unexported (golint)
    • Line 74: warning: exported method Prover.CreateCredentialRequest should have comment or be unexported (golint)
    • Line 158: warning: exported method Prover.CreateProof should have comment or be unexported (golint)
    • Line 276: warning: exported method Prover.ProcessCredentialSignature should have comment or be unexported (golint)
    • canis/pkg/schema/transcript.go
    • Line 9: warning: exported type TranscriptCredential should have comment or be unexported (golint)
    • Line 16: warning: exported method TranscriptCredential.MarshalAttrs should have comment or be unexported (golint)
    • canis/pkg/resolver/cmd/root.go
    • Line 38: warning: exported type Provider should have comment or be unexported (golint)
    • Line 43: warning: exported function Execute should have comment or be unexported (golint)
    • Line 77: warning: exported method Provider.GetHTTPEndpoint should have comment or be unexported (golint)
    • Line 81: warning: exported method Provider.IndyVDR should have comment or be unexported (golint)
    • canis/pkg/ursa/issuer_cred_def.go
    • Line 19: warning: exported const DELIMITER should have comment (or a comment on this block) or be unexported (golint)
    • Line 23: warning: exported function CredentialDefinitionID should have comment or be unexported (golint)
    • Line 27: warning: exported type CredentialDefinition should have comment or be unexported (golint)
    • Line 36: warning: exported method CredentialDefinition.UrsaPublicKey should have comment or be unexported (golint)
    • Line 45: warning: exported method CredentialDefinition.KeyCorrectnessProof should have comment or be unexported (golint)
    • Line 58: warning: exported method CredentialDefinition.PrivateKey should have comment or be unexported (golint)
    • Line 71: warning: exported method CredentialDefinition.PublicKey should have comment or be unexported (golint)
    • Line 85: warning: exported function NewCredentailDefinition should have comment or be unexported (golint)
    • Line 89: warning: exported method CredentialDefinition.AddSchemaFields should have comment or be unexported (golint)
    • Line 93: warning: exported method CredentialDefinition.AddNonSchemaField should have comment or be unexported (golint)
    • Line 97: warning: exported method CredentialDefinition.Finalize should have comment or be unexported (golint)
    • canis/pkg/credential/engine/indy/engine.go
    • Line 22: warning: exported const Indy should have comment or be unexported (golint)
    • Line 29: warning: exported type CredentialEngine should have comment or be unexported (golint)
    • Line 36: warning: exported function New should have comment or be unexported (golint)
    • Line 56: warning: exported method CredentialEngine.Accept should have comment or be unexported (golint)
    • Line 60: warning: exported method CredentialEngine.CreateSchema should have comment or be unexported (golint)
    • Line 91: warning: exported method CredentialEngine.RegisterSchema should have comment or be unexported (golint)
    • Line 149: warning: exported const CLSignatureType should have comment (or a comment on this block) or be unexported (golint)
    • Line 153: warning: exported method CredentialEngine.CreateCredentialOffer should have comment or be unexported (golint)
    • Line 192: warning: exported method CredentialEngine.IssueCredential should have comment or be unexported (golint)
    • Line 250: warning: exported method CredentialEngine.GetSchemaForProposal should have comment or be unexported (golint)
    • canis/cmd/subject-lds/main.go
    • Line 259: warning: exported function NewCredHandler should have comment or be unexported (golint)
    • Line 364: warning: exported function NewProofHandler should have comment or be unexported (golint)
    • canis/pkg/didcomm/doorman/cmd/root.go
    • Line 46: warning: exported type Provider should have comment or be unexported (golint)
    • Line 52: warning: exported function Execute should have comment or be unexported (golint)
    • Line 113: warning: exported method Provider.GetDatastore should have comment or be unexported (golint)
    • Line 127: warning: exported method Provider.GetAMQPPublisher should have comment or be unexported (golint)
    • Line 141: warning: exported method Provider.GetAriesContext should have comment or be unexported (golint)
    • canis/pkg/didcomm/mediator/cmd/root.go
    • Line 44: warning: exported type Provider should have comment or be unexported (golint)
    • Line 50: warning: exported function Execute should have comment or be unexported (golint)
    • Line 107: warning: exported method Provider.GetDatastore should have comment or be unexported (golint)
    • Line 116: warning: exported method Provider.GetEdgeAgentSecret should have comment or be unexported (golint)
    • Line 130: warning: exported method Provider.GetAriesContext should have comment or be unexported (golint)
    • canis/pkg/util/http.go
    • Line 8: warning: exported function WriteSuccess should have comment or be unexported (golint)
    • Line 14: warning: exported function WriteError should have comment or be unexported (golint)
    • Line 20: warning: exported function WriteErrorf should have comment or be unexported (golint)
    • canis/pkg/credential/supervisor.go
    • Line 18: warning: exported type HandlerFunc should have comment or be unexported (golint)
    • Line 20: warning: exported type Handler should have comment or be unexported (golint)
    • Line 27: warning: exported type Supervisor should have comment or be unexported (golint)
    • Line 37: warning: exported function New should have comment or be unexported (golint)
    • Line 56: warning: exported method Supervisor.Start should have comment or be unexported (golint)
    • canis/pkg/credential/engine/lds/engine.go
    • Line 27: warning: exported const LinkedDataSignature should have comment (or a comment on this block) or be unexported (golint)
    • Line 35: warning: exported type CredentialEngine should have comment or be unexported (golint)
    • Line 53: warning: exported function New should have comment or be unexported (golint)
    • Line 67: warning: exported method CredentialEngine.Accept should have comment or be unexported (golint)
    • Line 71: warning: exported method CredentialEngine.CreateSchema should have comment or be unexported (golint)
    • Line 76: warning: exported method CredentialEngine.RegisterSchema should have comment or be unexported (golint)
    • Line 81: warning: exported method CredentialEngine.CreateCredentialOffer should have comment or be unexported (golint)
    • Line 115: warning: exported method CredentialEngine.IssueCredential should have comment or be unexported (golint)
    • Line 218: warning: exported method CredentialEngine.GetSchemaForProposal should have comment or be unexported (golint)
    • canis/pkg/presentproof/supervisor.go
    • Line 18: warning: exported type HandlerFunc should have comment or be unexported (golint)
    • Line 20: warning: exported type Handler should have comment or be unexported (golint)
    • Line 27: warning: exported type Supervisor should have comment or be unexported (golint)
    • Line 37: warning: exported function New should have comment or be unexported (golint)
    • Line 56: warning: exported method Supervisor.Start should have comment or be unexported (golint)
    • canis/pkg/didcomm/loadbalancer/server.go
    • Line 42: warning: exported type Server should have comment or be unexported (golint)
    • Line 54: warning: comment on exported function New should be of the form "New ..." (golint)
    • Line 75: warning: exported method Server.Close should have comment or be unexported (golint)
    • Line 86: warning: exported method Server.Start should have comment or be unexported (golint)
    • Line 91: warning: exported method Server.RegisterGRPCHandler should have comment or be unexported (golint)
    • Line 95: warning: exported method Server.RegisterGRPCGateway should have comment or be unexported (golint)
    • Line 98: warning: exported method Server.APISpec should have comment or be unexported (golint)
    • Line 102: warning: exported method Server.GetEndpoint should have comment or be unexported (golint)
    • Line 171: warning: exported function Accept should have comment or be unexported (golint)
    • canis/pkg/didcomm/mediator/mediator.go
    • Line 29: warning: exported type Mediator should have comment or be unexported (golint)
    • Line 48: warning: exported function New should have comment or be unexported (golint)
    • Line 96: warning: exported method Mediator.RegisterGRPCHandler should have comment or be unexported (golint)
    • Line 109: warning: exported method Mediator.RegisterEdgeAgent should have comment or be unexported (golint)
    • Line 139: warning: exported method Mediator.GetEndpoint should have comment or be unexported (golint)
    • Line 143: warning: exported method Mediator.Start should have comment or be unexported (golint)
    • canis/pkg/didcomm/cloudagent/presentation_handler.go
    • Line 26: warning: exported type PresentationHandler should have comment or be unexported (golint)
    • Line 34: warning: exported function NewProofHandler should have comment or be unexported (golint)
    • Line 54: warning: exported method PresentationHandler.ProposePresentationMsg should have comment or be unexported (golint)
    • Line 58: warning: exported method PresentationHandler.RequestPresentationMsg should have comment or be unexported (golint)
    • Line 83: warning: exported method PresentationHandler.PresentationMsg should have comment or be unexported (golint)
    • Line 87: warning: exported method PresentationHandler.PresentationPreviewMsg should have comment or be unexported (golint)
    • canis/pkg/presentproof/engine/indy/engine.go
    • Line 20: warning: exported const Format should have comment (or a comment on this block) or be unexported (golint)
    • Line 23: warning: exported type Engine should have comment or be unexported (golint)
    • Line 29: warning: exported function New should have comment or be unexported (golint)
    • Line 44: warning: exported method Engine.Accept should have comment or be unexported (golint)
    • Line 59: warning: comment on exported method Engine.RequestPresentation should be of the form "RequestPresentation ..." (golint)
    • Line 80: warning: comment on exported method Engine.RequestPresentationFormat should be of the form "RequestPresentationFormat ..." (golint)
    • Line 85: warning: exported method Engine.Verify should have comment or be unexported (golint)
    • canis/pkg/apiserver/mocks/mock_vdr_client.go
    • Line 7: warning: exported type MockVDRClient should have comment or be unexported (golint)
    • Line 12: warning: exported method MockVDRClient.CreateNym should have comment or be unexported (golint)
    • Line 16: warning: exported method MockVDRClient.SetEndpoint should have comment or be unexported (golint)
    • Line 20: warning: exported method MockVDRClient.GetNym should have comment or be unexported (golint)
    • Line 28: warning: exported method MockVDRClient.GetPoolStatus should have comment or be unexported (golint)
    • canis/pkg/didcomm/issuer/event.go
    • Line 10: warning: exported const CredentialTopic should have comment (or a comment on this block) or be unexported (golint)
    • Line 14: warning: exported type CredentialProposalEvent should have comment or be unexported (golint)
    • canis/pkg/schema/types.go
    • Line 9: warning: exported type SchemaIDsResult should have comment or be unexported (golint)
    • Line 13: warning: exported type CredentialDefinitionIDsResult should have comment or be unexported (golint)
    • Line 17: warning: exported type CredentialStatus should have comment or be unexported (golint)
    • Line 24: warning: exported const CredentialOffered should have comment (or a comment on this block) or be unexported (golint)
    • canis/pkg/datastore/model.go
    • Line 18: warning: exported type Criteria should have comment or be unexported (golint)
    • Line 20: warning: exported type Attribute should have comment or be unexported (golint)
    • Line 25: warning: exported type AgentList should have comment or be unexported (golint)
    • Line 30: warning: exported type Agent should have comment or be unexported (golint)
    • Line 39: warning: exported method Agent.CanIssue should have comment or be unexported (golint)
    • Line 48: warning: exported type AgentConnection should have comment or be unexported (golint)
    • Line 58: warning: exported type AgentCriteria should have comment or be unexported (golint)
    • Line 63: warning: exported type SchemaCriteria should have comment or be unexported (golint)
    • Line 68: warning: exported type SchemaList should have comment or be unexported (golint)
    • Line 73: warning: exported type Schema should have comment or be unexported (golint)
    • Line 84: warning: exported type Schemas should have comment or be unexported (golint)
    • Line 86: warning: exported type DIDCriteria should have comment or be unexported (golint)
    • Line 90: warning: exported type DIDs should have comment or be unexported (golint)
    • Line 92: warning: exported type DID should have comment or be unexported (golint)
    • Line 101: warning: exported type DIDList should have comment or be unexported (golint)
    • Line 106: warning: exported type KeyPair should have comment or be unexported (golint)
    • Line 111: warning: exported method KeyPair.RawPublicKey should have comment or be unexported (golint)
    • Line 116: warning: exported type Offer should have comment or be unexported (golint)
    • Line 123: warning: exported type Credential should have comment or be unexported (golint)
    • Line 134: warning: exported type IssuedCredential should have comment or be unexported (golint)
    • Line 148: warning: exported type Webhook should have comment or be unexported (golint)
    • Line 153: warning: exported type PresentationRequest should have comment or be unexported (golint)
    • Line 161: warning: exported type Presentation should have comment or be unexported (golint)
    • Line 168: warning: exported type EdgeAgent should have comment or be unexported (golint)
    • Line 176: warning: exported type CloudAgent should have comment or be unexported (golint)
    • Line 182: warning: exported type CloudAgentConnection should have comment or be unexported (golint)
    • Line 194: warning: exported type CloudAgentCredential should have comment or be unexported (golint)
    • Line 209: warning: exported type CloudAgentProofRequest should have comment or be unexported (golint)
    • Line 220: warning: exported type IDName should have comment or be unexported (golint)
    • Line 225: warning: exported type CredentialRequest should have comment or be unexported (golint)
    • Line 233: warning: exported type CredentialRequestMetadata should have comment or be unexported (golint)
    • canis/pkg/controller/controller.go
    • Line 28: warning: exported const SecurityRealm should have comment (or a comment on this block) or be unexported (golint)
    • Line 32: warning: exported type AgentController should have comment or be unexported (golint)
    • Line 38: warning: exported type Runner should have comment or be unexported (golint)
    • Line 53: warning: exported function New should have comment or be unexported (golint)
    • Line 86: warning: exported method Runner.Launch should have comment or be unexported (golint)
    • Line 187: warning: exported function CorsHandler should have comment or be unexported (golint)
    • canis/pkg/didcomm/issuer/dependencies.go
    • Line 10: warning: comment on exported type Provider should be of the form "Provider ..." (with optional leading article) (golint)
    • Line 17: warning: comment on exported type CredentialIssuer should be of the form "CredentialIssuer ..." (with optional leading article) (golint)
    • canis/pkg/didcomm/loadbalancer/cmd/root.go
    • Line 39: warning: exported type Provider should have comment or be unexported (golint)
    • Line 45: warning: exported function Execute should have comment or be unexported (golint)
    • Line 89: warning: exported method Provider.GetAMQPAddress should have comment or be unexported (golint)
    • Line 93: warning: exported method Provider.GetGRPCEndpoint should have comment or be unexported (golint)
    • Line 97: warning: exported method Provider.GetBridgeEndpoint should have comment or be unexported (golint)
    • canis/pkg/apiserver/mocks/mock_kms.go
    • Line 9: warning: exported type MockKMS should have comment or be unexported (golint)
    • Line 15: warning: exported method MockKMS.Create should have comment or be unexported (golint)
    • Line 19: warning: exported method MockKMS.Get should have comment or be unexported (golint)
    • Line 23: warning: exported method MockKMS.Rotate should have comment or be unexported (golint)
    • Line 27: warning: exported method MockKMS.ExportPubKeyBytes should have comment or be unexported (golint)
    • Line 31: warning: exported method MockKMS.CreateAndExportPubKeyBytes should have comment or be unexported (golint)
    • Line 35: warning: exported method MockKMS.PubKeyBytesToHandle should have comment or be unexported (golint)
    • Line 39: warning: exported method MockKMS.ImportPrivateKey should have comment or be unexported (golint)
    • canis/pkg/amqp/rabbitmq/publisher.go
    • Line 8: warning: exported type Publisher should have comment or be unexported (golint)
    • Line 14: warning: exported function NewPublisher should have comment or be unexported (golint)
    • Line 45: warning: exported method Publisher.Publish should have comment or be unexported (golint)
    • Line 60: warning: exported method Publisher.Close should have comment or be unexported (golint)
    • canis/pkg/didexchange/bouncer.go
    • Line 20: warning: comment on exported type Bouncer should be of the form "Bouncer ..." (with optional leading article) (golint)
    • Line 53: warning: exported type NotifySuccess should have comment or be unexported (golint)
    • Line 54: warning: exported type NotifyError should have comment or be unexported (golint)
    • Line 56: warning: exported function NewBouncer should have comment or be unexported (golint)
    • canis/pkg/schema/indy_proof.go
    • Line 7: warning: exported type IndyProof should have comment or be unexported (golint)
    • Line 13: warning: exported type IndyRequestedProof should have comment or be unexported (golint)
    • Line 21: warning: exported type Identifier should have comment or be unexported (golint)
    • Line 28: warning: exported type SubProofReferent should have comment or be unexported (golint)
    • Line 32: warning: exported type RevealedAttributeInfo should have comment or be unexported (golint)
    • Line 38: warning: exported type RevealedAttributeGroupInfo should have comment or be unexported (golint)
    • Line 43: warning: exported type IndyAttributeValue should have comment or be unexported (golint)
    • Line 48: warning: exported type IndyRequestedAttribute should have comment or be unexported (golint)
    • Line 54: warning: exported type ProvingCredentialKey should have comment or be unexported (golint)
    • Line 59: warning: exported type IndyRequestedCredentials should have comment or be unexported (golint)
    • Line 65: warning: exported type IndyRequestedAttributeInfo should have comment or be unexported (golint)
    • Line 71: warning: exported type IndyRequestedPredicateInfo should have comment or be unexported (golint)
    • Line 76: warning: exported type CryptoProof should have comment or be unexported (golint)
    • Line 81: warning: exported type SubProof should have comment or be unexported (golint)
    • Line 86: warning: exported method SubProof.RevealedAttrs should have comment or be unexported (golint)
    • Line 94: warning: exported type PrimaryProof should have comment or be unexported (golint)
    • Line 99: warning: exported type NonRevocProof should have comment or be unexported (golint)
    • Line 102: warning: exported type AggregatedProof should have comment or be unexported (golint)
    • Line 107: warning: exported type PrimaryPredicateInequalityProof should have comment or be unexported (golint)
    • Line 116: warning: exported type PrimaryEqualProof should have comment or be unexported (golint)
    • canis/pkg/ursa/helpers.go
    • Line 13: warning: exported type CryptoOracle should have comment or be unexported (golint)
    • Line 15: warning: exported method CryptoOracle.NewNonce should have comment or be unexported (golint)
    • Line 25: warning: exported function CredDefPublicKey should have comment or be unexported (golint)
    • Line 36: warning: exported function BuildNonCredentialSchema should have comment or be unexported (golint)
    • Line 50: warning: exported function BuildCredentialSchema should have comment or be unexported (golint)
    • Line 66: warning: exported function AttrCommonView should have comment or be unexported (golint)
    • canis/pkg/mock/vdri/indy/mock_indy_client.go
    • Line 7: warning: exported type MockIndyClient should have comment or be unexported (golint)
    • Line 16: warning: exported method MockIndyClient.GetNym should have comment or be unexported (golint)
    • Line 24: warning: exported method MockIndyClient.GetEndpoint should have comment or be unexported (golint)
    • Line 32: warning: exported method MockIndyClient.RefreshPool should have comment or be unexported (golint)
    • Line 36: warning: exported method MockIndyClient.Close should have comment or be unexported (golint)
    • Line 40: warning: exported method MockIndyClient.GetPoolStatus should have comment or be unexported (golint)
    • canis/pkg/mock/config/viper/mock_config.go
    • Line 8: warning: exported type MockConfig should have comment or be unexported (golint)
    • Line 27: warning: exported method MockConfig.GetInt should have comment or be unexported (golint)
    • Line 31: warning: exported method MockConfig.WithAMQP should have comment or be unexported (golint)
    • Line 39: warning: exported method MockConfig.AMQPAddress should have comment or be unexported (golint)
    • Line 43: warning: exported method MockConfig.AMQPConfig should have comment or be unexported (golint)
    • Line 47: warning: exported method MockConfig.WithMasterLockKey should have comment or be unexported (golint)
    • Line 55: warning: exported method MockConfig.MasterLockKey should have comment or be unexported (golint)
    • Line 63: warning: exported method MockConfig.WithDatastore should have comment or be unexported (golint)
    • Line 71: warning: exported method MockConfig.DataStore should have comment or be unexported (golint)
    • Line 83: warning: exported method MockConfig.WithLedgerStore should have comment or be unexported (golint)
    • Line 91: warning: exported method MockConfig.LedgerStore should have comment or be unexported (golint)
    • Line 95: warning: exported method MockConfig.WithVDRI should have comment or be unexported (golint)
    • Line 103: warning: exported method MockConfig.VDRIs should have comment or be unexported (golint)
    • Line 115: warning: exported method MockConfig.GetString should have comment or be unexported (golint)
    • Line 119: warning: exported method MockConfig.Endpoint should have comment or be unexported (golint)
    • Line 131: warning: exported method MockConfig.WithLedgerGenesis should have comment or be unexported (golint)
    • Line 139: warning: exported method MockConfig.LedgerGenesis should have comment or be unexported (golint)
    • Line 147: warning: exported method MockConfig.WithIndyRegistry should have comment or be unexported (golint)
    • Line 155: warning: exported method MockConfig.IndyRegistry should have comment or be unexported (golint)
    • canis/pkg/didcomm/cloudagent/cloudagent.go
    • Line 52: warning: exported const CanisCloudAgentIDHeaderKey should have comment (or a comment on this block) or be unexported (golint)
    • Line 56: warning: exported type CloudAgent should have comment or be unexported (golint)
    • Line 84: warning: exported function New should have comment or be unexported (golint)
    • Line 144: warning: exported method CloudAgent.GetEndpoint should have comment or be unexported (golint)
    • Line 174: warning: exported method CloudAgent.Start should have comment or be unexported (golint)
    • Line 317: warning: exported method CloudAgent.RegisterCloudAgent should have comment or be unexported (golint)
    • Line 334: warning: exported method CloudAgent.AcceptInvitation should have comment or be unexported (golint)
    • Line 376: warning: exported method CloudAgent.AcceptCredential should have comment or be unexported (golint)
    • Line 429: warning: exported method CloudAgent.ListConnections should have comment or be unexported (golint)
    • Line 461: warning: exported method CloudAgent.ListCredentials should have comment or be unexported (golint)
    • Line 514: warning: exported method CloudAgent.ListProofRequests should have comment or be unexported (golint)
    • Line 543: warning: exported method CloudAgent.PresentProof should have comment or be unexported (golint)
    • canis/pkg/didcomm/issuer/cmd/root.go
    • Line 59: warning: exported type Provider should have comment or be unexported (golint)
    • Line 67: warning: exported method Provider.Oracle should have comment or be unexported (golint)
    • Line 71: warning: exported function Execute should have comment or be unexported (golint)
    • Line 134: warning: exported method Provider.Store should have comment or be unexported (golint)
    • Line 138: warning: exported method Provider.GetCredentialIssuer should have comment or be unexported (golint)
    • Line 147: warning: comment on exported method Provider.StorageProvider should be of the form "StorageProvider ..." (golint)
    • Line 162: warning: exported method Provider.VDRIRegistry should have comment or be unexported (golint)
    • Line 171: warning: exported method Provider.GetAriesContext should have comment or be unexported (golint)
    • Line 236: warning: exported method Provider.IndyVDR should have comment or be unexported (golint)
    • Line 247: warning: exported method Provider.KMS should have comment or be unexported (golint)
    • Line 255: warning: exported method Provider.GetCredentialEngineRegistry should have comment or be unexported (golint)
    • Line 268: warning: exported method Provider.SecretLock should have comment or be unexported (golint)
    • canis/pkg/framework/config.go
    • Line 13: warning: exported type Endpoint should have comment or be unexported (golint)
    • Line 21: warning: exported method Endpoint.Address should have comment or be unexported (golint)
    • Line 25: warning: exported type AMQPConfig should have comment or be unexported (golint)
    • Line 33: warning: exported method AMQPConfig.Endpoint should have comment or be unexported (golint)
    • canis/pkg/aries/vdri/indy/vdri.go
    • Line 30: warning: comment on exported type VDRI should be of the form "VDRI ..." (with optional leading article) (golint)
    • Line 37: warning: exported function New should have comment or be unexported (golint)
    • Line 56: warning: exported method VDRI.Store should have comment or be unexported (golint)
    • Line 60: warning: exported method VDRI.Accept should have comment or be unexported (golint)
    • Line 64: warning: exported method VDRI.Close should have comment or be unexported (golint)
    • Line 71: warning: comment on exported function WithRefresh should be of the form "WithRefresh ..." (golint)
    • Line 78: warning: exported function WithIndyClient should have comment or be unexported (golint)
    • Line 84: warning: exported function WithIndyVDRGenesisFile should have comment or be unexported (golint)
    • Line 101: warning: exported function WithIndyVDRGenesisReader should have comment or be unexported (golint)
    • canis/pkg/credential/engine/indy/dependencies.go
    • Line 9: warning: comment on exported type Provider should be of the form "Provider ..." (with optional leading article) (golint)
    • Line 17: warning: comment on exported type Oracle should be of the form "Oracle ..." (with optional leading article) (golint)
    • Line 22: warning: comment on exported type VDRClient should be of the form "VDRClient ..." (with optional leading article) (golint)
    • canis/pkg/didcomm/issuer/issuer.go
    • Line 29: warning: exported type Server should have comment or be unexported (golint)
    • Line 35: warning: exported function New should have comment or be unexported (golint)
    • Line 57: warning: exported method Server.RegisterGRPCHandler should have comment or be unexported (golint)
    • Line 61: warning: exported method Server.RegisterGRPCGateway should have comment or be unexported (golint)
    • Line 65: warning: exported method Server.APISpec should have comment or be unexported (golint)
    • Line 69: warning: exported method Server.IssueCredential should have comment or be unexported (golint)
    • canis/pkg/didcomm/verifier/cmd/root.go
    • Line 57: warning: exported type Provider should have comment or be unexported (golint)
    • Line 66: warning: exported function Execute should have comment or be unexported (golint)
    • Line 140: warning: exported method Provider.Store should have comment or be unexported (golint)
    • Line 144: warning: comment on exported method Provider.StorageProvider should be of the form "StorageProvider ..." (golint)
    • Line 221: warning: exported method Provider.GetPresentProofClient should have comment or be unexported (golint)
    • Line 263: warning: exported method Provider.Oracle should have comment or be unexported (golint)
    • canis/pkg/client/informer/adapter.go
    • Line 13: warning: exported type Update should have comment or be unexported (golint)
    • Line 18: warning: exported type StreamAdapter should have comment or be unexported (golint)
    • Line 33: warning: exported function NewAgentStreamAdapter should have comment or be unexported (golint)
    • canis/pkg/amqp/rabbitmq/listener.go
    • Line 8: warning: exported type Listener should have comment or be unexported (golint)
    • Line 14: warning: exported function NewListener should have comment or be unexported (golint)
    • Line 40: warning: exported method Listener.Listen should have comment or be unexported (golint)
    • Line 57: warning: exported method Listener.Close should have comment or be unexported (golint)
    • canis/pkg/credential/engine/registry.go
    • Line 12: warning: exported type CredentialEngine should have comment or be unexported (golint)
    • Line 22: warning: comment on exported type CredentialRegistry should be of the form "CredentialRegistry ..." (with optional leading article) (golint)
    • Line 32: warning: exported type Option should have comment or be unexported (golint)
    • Line 34: warning: exported type Registry should have comment or be unexported (golint)
    • Line 43: warning: exported function New should have comment or be unexported (golint)
    • Line 53: warning: exported method Registry.CreateSchema should have comment or be unexported (golint)
    • Line 68: warning: exported method Registry.RegisterSchema should have comment or be unexported (golint)
    • Line 79: warning: exported method Registry.CreateCredentialOffer should have comment or be unexported (golint)
    • Line 88: warning: exported method Registry.IssueCredential should have comment or be unexported (golint)
    • Line 98: warning: exported method Registry.GetSchemaForProposal should have comment or be unexported (golint)
    • canis/pkg/didcomm/cloudagent/cmd/root.go
    • Line 46: warning: exported type Provider should have comment or be unexported (golint)
    • Line 53: warning: exported method Provider.GetVDRClient should have comment or be unexported (golint)
    • Line 64: warning: exported function Execute should have comment or be unexported (golint)
    • Line 122: warning: exported method Provider.GetDatastore should have comment or be unexported (golint)
    • Line 131: warning: exported method Provider.GetCloudAgentSecret should have comment or be unexported (golint)
    • Line 145: warning: exported method Provider.GetAriesContext should have comment or be unexported (golint)
    • canis/pkg/schema/indy_proof_request.go
    • Line 9: warning: exported type ProofRequestWebRequest should have comment or be unexported (golint)
    • Line 14: warning: exported type IndyProofRequest should have comment or be unexported (golint)
    • Line 22: warning: exported type IndyProofRequestAttr should have comment or be unexported (golint)
    • Line 29: warning: exported type IndyProofRequestPredicate should have comment or be unexported (golint)
    • Line 37: warning: exported type NonRevokedInterval should have comment or be unexported (golint)
    • canis/pkg/apiserver/mocks/mock_mediator.go
    • Line 11: warning: exported type MockMediator should have comment or be unexported (golint)
    • Line 18: warning: exported method MockMediator.RegisterEdgeAgent should have comment or be unexported (golint)
    • Line 26: warning: exported method MockMediator.GetEndpoint should have comment or be unexported (golint)
    • canis/pkg/presentproof/engine/registry.go
    • Line 12: warning: exported const PresentProofType should have comment or be unexported (golint)
    • Line 14: warning: comment on exported type PresentationEngine should be of the form "PresentationEngine ..." (with optional leading article) (golint)
    • Line 22: warning: comment on exported type PresentationRegistry should be of the form "PresentationRegistry ..." (with optional leading article) (golint)
    • Line 28: warning: exported type Option should have comment or be unexported (golint)
    • Line 30: warning: exported type Registry should have comment or be unexported (golint)
    • Line 39: warning: exported function New should have comment or be unexported (golint)
    • Line 49: warning: comment on exported method Registry.RequestPresentation should be of the form "RequestPresentation ..." (golint)
    • Line 60: warning: exported method Registry.Verify should have comment or be unexported (golint)
    • canis/pkg/didcomm/verifier/verifier.go
    • Line 33: warning: exported type Server should have comment or be unexported (golint)
    • Line 40: warning: exported function New should have comment or be unexported (golint)
    • Line 62: warning: exported method Server.RegisterGRPCHandler should have comment or be unexported (golint)
    • Line 66: warning: exported method Server.RegisterGRPCGateway should have comment or be unexported (golint)
    • Line 70: warning: exported method Server.APISpec should have comment or be unexported (golint)
    • Line 74: warning: exported method Server.RequestPresentation should have comment or be unexported (golint)
    • canis/pkg/didcomm/issuer/credential_handler.go
    • Line 21: warning: exported type CredHandler should have comment or be unexported (golint)
    • Line 27: warning: exported function NewCredentialHandler should have comment or be unexported (golint)
    • Line 41: warning: exported method CredHandler.ProposeCredentialMsg should have comment or be unexported (golint)
    • Line 128: warning: exported method CredHandler.OfferCredentialMsg should have comment or be unexported (golint)
    • Line 132: warning: exported method CredHandler.IssueCredentialMsg should have comment or be unexported (golint)
    • Line 136: warning: exported method CredHandler.RequestCredentialMsg should have comment or be unexported (golint)
    • canis/pkg/apiserver/admin.go
    • Line 37: warning: exported method APIServer.RegisterGRPCGateway should have comment or be unexported (golint)
    • Line 44: warning: exported method APIServer.RegisterGRPCHandler should have comment or be unexported (golint)
    • Line 48: warning: exported method APIServer.APISpec should have comment or be unexported (golint)
    • Line 52: warning: exported method APIServer.CreateSchema should have comment or be unexported (golint)
    • Line 95: warning: exported method APIServer.ListSchema should have comment or be unexported (golint)
    • Line 134: warning: exported method APIServer.GetSchema should have comment or be unexported (golint)
    • Line 162: warning: exported method APIServer.DeleteSchema should have comment or be unexported (golint)
    • Line 171: warning: exported method APIServer.UpdateSchema should have comment or be unexported (golint)
    • Line 202: warning: exported method APIServer.CreateAgent should have comment or be unexported (golint)
    • Line 247: warning: exported method APIServer.ListAgent should have comment or be unexported (golint)
    • Line 275: warning: exported method APIServer.GetAgent should have comment or be unexported (golint)
    • Line 292: warning: exported method APIServer.GetAgentInvitation should have comment or be unexported (golint)
    • Line 308: warning: exported method APIServer.GetAgentInvitationImage should have comment or be unexported (golint)
    • Line 325: warning: exported method APIServer.DeleteAgent should have comment or be unexported (golint)
    • Line 340: warning: exported method APIServer.UpdateAgent should have comment or be unexported (golint)
    • Line 384: warning: exported method APIServer.SeedPublicDID should have comment or be unexported (golint)
    • Line 458: warning: exported method APIServer.IssueCredential should have comment or be unexported (golint)
    • Line 490: warning: exported method APIServer.RequestPresentation should have comment or be unexported (golint)
    • Line 501: warning: exported method APIServer.CreateWebhook should have comment or be unexported (golint)
    • Line 517: warning: exported method APIServer.ListWebhook should have comment or be unexported (golint)
    • Line 536: warning: exported method APIServer.DeleteWebhook should have comment or be unexported (golint)
    • Line 545: warning: exported method APIServer.ListConnections should have comment or be unexported (golint)
    • Line 574: warning: exported method APIServer.DeleteConnection should have comment or be unexported (golint)
    • Line 588: warning: exported method APIServer.AcceptInvitation should have comment or be unexported (golint)
    • Line 597: warning: exported method APIServer.RegisterEdgeAgent should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign96%

IneffAssign detects ineffectual assignments in Go code.

    • canis/cmd/ursa/main.go
    • Line 25: warning: ineffectual assignment to err (ineffassign)
    • Line 31: warning: ineffectual assignment to js (ineffassign)
    • Line 64: warning: ineffectual assignment to js (ineffassign)
    • Line 71: warning: ineffectual assignment to js (ineffassign)
    • Line 74: warning: ineffectual assignment to js (ineffassign)

misspell94%

Misspell Finds commonly misspelled English words