Preparing report...

Report for github.com/diodechain/diode_client

(v0.13.3)

A+    Excellent!    Found 29 issues across 131 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!


gofmt92%

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


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


gocyclo84%

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.

    • rpc/client.go
    • Line 329: warning: cyclomatic complexity 16 of function (*Client).validateNetwork() is high (> 15) (gocyclo)
    • rpc/bridge.go
    • Line 21: warning: cyclomatic complexity 23 of function (*Client).handleInboundRequest() is high (> 15) (gocyclo)
    • rlp/encode.go
    • Line 345: warning: cyclomatic complexity 19 of function makeWriter() is high (> 15) (gocyclo)
    • cmd/diode/publish.go
    • Line 202: warning: cyclomatic complexity 40 of function publishHandler() is high (> 15) (gocyclo)
    • Line 62: warning: cyclomatic complexity 24 of function parsePorts() is high (> 15) (gocyclo)
    • rpc/resolver.go
    • Line 35: warning: cyclomatic complexity 24 of function (*Resolver).ResolveDevice() is high (> 15) (gocyclo)
    • rlp/decode.go
    • Line 195: warning: cyclomatic complexity 16 of function makeDecoder() is high (> 15) (gocyclo)
    • rpc/socks.go
    • Line 289: warning: cyclomatic complexity 24 of function (*Server).doConnectDevice() is high (> 15) (gocyclo)
    • edge/protocol.go
    • Line 602: warning: cyclomatic complexity 19 of function NewMessage() is high (> 15) (gocyclo)
    • Line 55: warning: cyclomatic complexity 17 of function parseResponse() is high (> 15) (gocyclo)
    • rpc/proxy.go
    • Line 247: warning: cyclomatic complexity 16 of function (*ProxyServer).Start() is high (> 15) (gocyclo)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell96%

Misspell Finds commonly misspelled English words

    • cmd/diode/fetch.go
    • Line 97: warning: "transfered" is a misspelling of "transferred" (misspell)
    • Line 98: warning: "transfered" is a misspelling of "transferred" (misspell)
    • cmd/diode/token.go
    • Line 42: warning: "transfered" is a misspelling of "transferred" (misspell)
    • Line 43: warning: "transfered" is a misspelling of "transferred" (misspell)