Preparing report...

Report for github.com/samsamfire/gocanopen

(v1.1.1)

A+    Excellent!    Found 17 issues across 54 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!


gofmt100%

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

No problems detected. Good job!


gocyclo72%

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.

    • sync.go
    • Line 67: warning: cyclomatic complexity 20 of function (*SYNC).process() is high (> 15) (gocyclo)
    • node_local.go
    • Line 137: warning: cyclomatic complexity 16 of function NewLocalNode() is high (> 15) (gocyclo)
    • sdo_server.go
    • Line 313: warning: cyclomatic complexity 143 of function (*SDOServer).process() is high (> 15) (gocyclo)
    • Line 161: warning: cyclomatic complexity 28 of function (*SDOServer).writeObjectDictionary() is high (> 15) (gocyclo)
    • Line 978: warning: cyclomatic complexity 19 of function NewSDOServer() is high (> 15) (gocyclo)
    • Line 45: warning: cyclomatic complexity 16 of function (*SDOServer).Handle() is high (> 15) (gocyclo)
    • Line 236: warning: cyclomatic complexity 16 of function (*SDOServer).readObjectDictionary() is high (> 15) (gocyclo)
    • nmt.go
    • Line 84: warning: cyclomatic complexity 35 of function (*NMT).process() is high (> 15) (gocyclo)
    • pdo_rpdo.go
    • Line 97: warning: cyclomatic complexity 27 of function (*RPDO).process() is high (> 15) (gocyclo)
    • sdo_common.go
    • Line 127: warning: cyclomatic complexity 21 of function (*SDOResponse).isResponseValid() is high (> 15) (gocyclo)
    • od_extensions.go
    • Line 576: warning: cyclomatic complexity 28 of function WriteEntry18xx() is high (> 15) (gocyclo)
    • Line 412: warning: cyclomatic complexity 27 of function WriteEntry14xx() is high (> 15) (gocyclo)
    • Line 294: warning: cyclomatic complexity 24 of function WriteEntry1201() is high (> 15) (gocyclo)
    • Line 358: warning: cyclomatic complexity 23 of function WriteEntry1280() is high (> 15) (gocyclo)
    • Line 521: warning: cyclomatic complexity 18 of function WriteEntry16xxOr1Axx() is high (> 15) (gocyclo)
    • Line 67: warning: cyclomatic complexity 16 of function WriteEntry1005() is high (> 15) (gocyclo)
    • Line 177: warning: cyclomatic complexity 16 of function WriteEntry1014() is high (> 15) (gocyclo)
    • http_gateway_server.go
    • Line 259: warning: cyclomatic complexity 25 of function (*HTTPGatewayServer).processCANopenRequest() is high (> 15) (gocyclo)
    • emergency.go
    • Line 326: warning: cyclomatic complexity 22 of function (*EM).process() is high (> 15) (gocyclo)
    • sdo_client_main.go
    • Line 722: warning: cyclomatic complexity 80 of function (*SDOClient).upload() is high (> 15) (gocyclo)
    • Line 170: warning: cyclomatic complexity 47 of function (*SDOClient).downloadMain() is high (> 15) (gocyclo)
    • Line 429: warning: cyclomatic complexity 32 of function (*SDOClient).downloadLocal() is high (> 15) (gocyclo)
    • Line 642: warning: cyclomatic complexity 26 of function (*SDOClient).uploadLocal() is high (> 15) (gocyclo)
    • Line 61: warning: cyclomatic complexity 16 of function (*SDOClient).Handle() is high (> 15) (gocyclo)
    • pdo_tpdo.go
    • Line 69: warning: cyclomatic complexity 31 of function (*TPDO).process() is high (> 15) (gocyclo)
    • node_remote.go
    • Line 108: warning: cyclomatic complexity 18 of function (*RemoteNode).InitPDOs() is high (> 15) (gocyclo)
    • od_parser.go
    • Line 69: warning: cyclomatic complexity 16 of function parseEDS() is high (> 15) (gocyclo)

ineffassign96%

IneffAssign detects ineffectual assignments in Go code.

    • sdo_server.go
    • Line 954: warning: ineffectual assignment to ret (ineffassign)
    • Line 956: warning: ineffectual assignment to ret (ineffassign)
    • Line 954: warning: ineffectual assignment to ret (ineffassign)
    • Line 956: warning: ineffectual assignment to ret (ineffassign)
    • node_local.go
    • Line 68: warning: ineffectual assignment to reset (ineffassign)
    • Line 68: warning: ineffectual assignment to reset (ineffassign)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell92%

Misspell Finds commonly misspelled English words

    • virtual.go
    • Line 115: warning: "trafic" is a misspelling of "traffic" (misspell)
    • Line 154: warning: "trafic" is a misspelling of "traffic" (misspell)