Preparing report...

Report for berty.tech/go-orbit-db

A+    Excellent!    Found 44 issues across 73 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!


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.


golint42%

Golint is a linter for Go source code.

    • /berty.tech/go-orbit-db/iface/interface.go
    • Line 98: warning: comment on exported type OrbitDBKVStoreProvider should be of the form "OrbitDBKVStoreProvider ..." (with optional leading article) (golint)
    • Line 219: warning: comment on exported type KeyValueStore should be of the form "KeyValueStore ..." (with optional leading article) (golint)
    • Line 277: warning: exported type DirectChannelOptions should have comment or be unexported (golint)
    • Line 281: warning: exported type DirectChannel should have comment or be unexported (golint)
    • Line 294: warning: exported type DirectChannelFactory should have comment or be unexported (golint)
    • Line 326: warning: exported type PubSubInterface should have comment or be unexported (golint)
    • Line 331: warning: exported type PubSubSubscriptionOptions should have comment or be unexported (golint)
    • /berty.tech/go-orbit-db/stores/basestore/base_store.go
    • Line 71: warning: exported method BaseStore.DBName should have comment or be unexported (golint)
    • Line 75: warning: exported method BaseStore.IPFS should have comment or be unexported (golint)
    • Line 79: warning: exported method BaseStore.Identity should have comment or be unexported (golint)
    • Line 83: warning: exported method BaseStore.OpLog should have comment or be unexported (golint)
    • Line 90: warning: exported method BaseStore.AccessController should have comment or be unexported (golint)
    • Line 94: warning: exported method BaseStore.Replicator should have comment or be unexported (golint)
    • Line 98: warning: exported method BaseStore.Cache should have comment or be unexported (golint)
    • Line 105: warning: exported method BaseStore.Logger should have comment or be unexported (golint)
    • Line 109: warning: exported method BaseStore.Tracer should have comment or be unexported (golint)
    • Line 113: warning: exported method BaseStore.IO should have comment or be unexported (golint)
    • Line 117: warning: exported method BaseStore.SharedKey should have comment or be unexported (golint)
    • Line 255: warning: exported method BaseStore.Close should have comment or be unexported (golint)
    • Line 278: warning: exported method BaseStore.Address should have comment or be unexported (golint)
    • Line 282: warning: exported method BaseStore.Index should have comment or be unexported (golint)
    • Line 289: warning: exported method BaseStore.Type should have comment or be unexported (golint)
    • Line 293: warning: exported method BaseStore.ReplicationStatus should have comment or be unexported (golint)
    • Line 297: warning: exported method BaseStore.Drop should have comment or be unexported (golint)
    • Line 332: warning: exported method BaseStore.Load should have comment or be unexported (golint)
    • Line 455: warning: exported method BaseStore.Sync should have comment or be unexported (golint)
    • Line 515: warning: exported method BaseStore.LoadMoreFrom should have comment or be unexported (golint)
    • Line 527: warning: exported method BaseStore.LoadFromSnapshot should have comment or be unexported (golint)
    • Line 665: warning: exported method BaseStore.AddOperation should have comment or be unexported (golint)
    • Line 790: warning: exported method BaseStore.SortFn should have comment or be unexported (golint)
    • Line 794: warning: exported type CanAppendContext should have comment or be unexported (golint)
    • Line 798: warning: exported method CanAppendContext.GetLogEntries should have comment or be unexported (golint)
    • /berty.tech/go-orbit-db/events/events.go
    • Line 31: warning: exported method EventEmitter.UnsubscribeAll should have comment or be unexported (golint)
    • Line 93: warning: exported method EventEmitter.Emit should have comment or be unexported (golint)
    • Line 130: warning: exported method EventEmitter.Subscribe should have comment or be unexported (golint)
    • /berty.tech/go-orbit-db/accesscontroller/manifest.go
    • Line 34: warning: exported function CloneManifestParams should have comment or be unexported (golint)
    • Line 44: warning: exported method CreateAccessControllerOptions.GetName should have comment or be unexported (golint)
    • Line 48: warning: exported method CreateAccessControllerOptions.SetName should have comment or be unexported (golint)
    • Line 52: warning: exported method CreateAccessControllerOptions.SetAccess should have comment or be unexported (golint)
    • Line 63: warning: exported method CreateAccessControllerOptions.GetAccess should have comment or be unexported (golint)
    • Line 70: warning: exported method CreateAccessControllerOptions.GetAllAccess should have comment or be unexported (golint)
    • Line 86: warning: exported method CreateAccessControllerOptions.GetType should have comment or be unexported (golint)
    • Line 90: warning: exported method CreateAccessControllerOptions.SetType should have comment or be unexported (golint)
    • Line 94: warning: comment on exported function NewManifestParams should be of the form "NewManifestParams ..." (golint)
    • Line 103: warning: exported function NewEmptyManifestParams should have comment or be unexported (golint)
    • Line 107: warning: exported function NewSimpleManifestParams should have comment or be unexported (golint)
    • Line 115: warning: exported method CreateAccessControllerOptions.GetSkipManifest should have comment or be unexported (golint)
    • Line 119: warning: exported method CreateAccessControllerOptions.GetAddress should have comment or be unexported (golint)
    • Line 123: warning: exported method CreateAccessControllerOptions.SetAddress should have comment or be unexported (golint)
    • Line 199: warning: exported function WithLogger should have comment or be unexported (golint)
    • /berty.tech/go-orbit-db/stores/events.go
    • Line 11: warning: exported type EventReplicate should have comment or be unexported (golint)
    • Line 16: warning: exported function NewEventReplicate should have comment or be unexported (golint)
    • Line 41: warning: comment on exported type EventReplicated should be of the form "EventReplicated ..." (with optional leading article) (golint)
    • Line 55: warning: comment on exported type EventLoad should be of the form "EventLoad ..." (with optional leading article) (golint)
    • Line 85: warning: comment on exported type EventReady should be of the form "EventReady ..." (with optional leading article) (golint)
    • Line 99: warning: comment on exported type EventWrite should be of the form "EventWrite ..." (with optional leading article) (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign97%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!