Preparing report...

Report for github.com/status-im/mvds

(v0.0.25)

A    Great!    Found 21 issues across 37 files

Tweet

gofmt78%

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!


gocyclo100%

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.

No problems detected. Good job!


golint51%

Golint is a linter for Go source code.

    • state/state_sqlite.go
    • Line 10: warning: exported var ErrStateNotFound should have comment or be unexported (golint)
    • Line 20: warning: exported function NewPersistentSyncState should have comment or be unexported (golint)
    • state/sync_types.go
    • Line 3: warning: exported type MessageID should have comment or be unexported (golint)
    • Line 4: warning: exported type GroupID should have comment or be unexported (golint)
    • store/messagestore_sqlite.go
    • Line 14: warning: exported var ErrMessageNotFound should have comment or be unexported (golint)
    • Line 21: warning: exported function NewPersistentMessageStore should have comment or be unexported (golint)
    • node/node.go
    • Line 28: warning: exported const InteractiveMode should have comment (or a comment on this block) or be unexported (golint)
    • Line 77: warning: exported function NewPersistentNode should have comment or be unexported (golint)
    • Line 109: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 115: warning: exported function NewEphemeralNode should have comment or be unexported (golint)
    • Line 182: warning: exported method Node.CurrentEpoch should have comment or be unexported (golint)
    • main.go
    • Line 151: warning: exported function Calc should have comment or be unexported (golint)
    • peers/persistence_sqlite.go
    • Line 11: warning: exported var ErrPeerNotFound should have comment or be unexported (golint)
    • Line 18: warning: exported function NewSQLitePersistence should have comment or be unexported (golint)
    • state/state.go
    • Line 8: warning: exported const OFFER should have comment (or a comment on this block) or be unexported (golint)
    • Line 24: warning: exported type SyncState should have comment or be unexported (golint)
    • transport/channel_transport.go
    • Line 23: warning: exported function NewChannelTransport should have comment or be unexported (golint)
    • Line 31: warning: exported method ChannelTransport.AddOutput should have comment or be unexported (golint)
    • Line 35: warning: exported method ChannelTransport.Watch should have comment or be unexported (golint)
    • Line 39: warning: exported method ChannelTransport.Send should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


misspell97%

Misspell Finds commonly misspelled English words