Preparing report...

Report for github.com/datarhei/gosrt

(v0.2.0)

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


gocyclo78%

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.

    • contrib/client/main.go
    • Line 143: warning: cyclomatic complexity 16 of function openReader() is high (> 15) (gocyclo)
    • Line 218: warning: cyclomatic complexity 16 of function openWriter() is high (> 15) (gocyclo)
    • config.go
    • Line 238: warning: cyclomatic complexity 74 of function (*Config).UnmarshalQuery() is high (> 15) (gocyclo)
    • Line 630: warning: cyclomatic complexity 37 of function (Config).Validate() is high (> 15) (gocyclo)
    • Line 480: warning: cyclomatic complexity 37 of function (*Config).MarshalQuery() is high (> 15) (gocyclo)
    • internal/packet/packet.go
    • Line 534: warning: cyclomatic complexity 31 of function (*CIFHandshake).Unmarshal() is high (> 15) (gocyclo)
    • Line 67: warning: cyclomatic complexity 22 of function (HandshakeType).String() is high (> 15) (gocyclo)
    • Line 669: warning: cyclomatic complexity 22 of function (*CIFHandshake).Marshal() is high (> 15) (gocyclo)
    • Line 849: warning: cyclomatic complexity 18 of function (*CIFKM).Unmarshal() is high (> 15) (gocyclo)
    • dial.go
    • Line 314: warning: cyclomatic complexity 27 of function (*dialer).handleHandshake() is high (> 15) (gocyclo)
    • Line 72: warning: cyclomatic complexity 19 of function Dial() is high (> 15) (gocyclo)
    • connection.go
    • Line 548: warning: cyclomatic complexity 22 of function (*srtConn).handlePacket() is high (> 15) (gocyclo)
    • listen.go
    • Line 532: warning: cyclomatic complexity 20 of function (*listener).handleHandshake() is high (> 15) (gocyclo)
    • Line 163: warning: cyclomatic complexity 18 of function Listen() is high (> 15) (gocyclo)

ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


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!