Preparing report...

Report for github.com/bluenviron/goroslib

(v1.2.0)

A+    Excellent!    Found 13 issues across 137 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!


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


gocyclo90%

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.

    • subscriber.go
    • Line 171: warning: cyclomatic complexity 17 of function (*Subscriber).run() is high (> 15) (gocyclo)
    • action_client.go
    • Line 151: warning: cyclomatic complexity 71 of function (*ActionClientGoalHandler).onStatus() is high (> 15) (gocyclo)
    • Line 390: warning: cyclomatic complexity 16 of function NewActionClient() is high (> 15) (gocyclo)
    • pkg/protocommon/message.go
    • Line 50: warning: cyclomatic complexity 58 of function binaryDecodeValue() is high (> 15) (gocyclo)
    • Line 328: warning: cyclomatic complexity 30 of function binaryEncodeValue() is high (> 15) (gocyclo)
    • node.go
    • Line 587: warning: cyclomatic complexity 57 of function (*Node).run() is high (> 15) (gocyclo)
    • Line 262: warning: cyclomatic complexity 33 of function NewNode() is high (> 15) (gocyclo)
    • Line 475: warning: cyclomatic complexity 20 of function (*Node).Log() is high (> 15) (gocyclo)
    • publisher.go
    • Line 150: warning: cyclomatic complexity 42 of function (*Publisher).run() is high (> 15) (gocyclo)
    • subscriber_pub.go
    • Line 340: warning: cyclomatic complexity 29 of function (*subscriberPublisher).runInnerUDP() is high (> 15) (gocyclo)
    • Line 184: warning: cyclomatic complexity 29 of function (*subscriberPublisher).runInnerTCP() is high (> 15) (gocyclo)
    • pkg/xmlrpc/value.go
    • Line 173: warning: cyclomatic complexity 27 of function valueDecode() is high (> 15) (gocyclo)
    • Line 283: warning: cyclomatic complexity 24 of function valueEncode() is high (> 15) (gocyclo)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!