Preparing report...

Report for github.com/aler9/gortsplib

(v1.0.1)

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


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


gocyclo87%

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.

    • client.go
    • Line 1304: warning: cyclomatic complexity 59 of function (*Client).doSetup() is high (> 15) (gocyclo)
    • Line 474: warning: cyclomatic complexity 28 of function (*Client).runInner() is high (> 15) (gocyclo)
    • Line 1018: warning: cyclomatic complexity 21 of function (*Client).do() is high (> 15) (gocyclo)
    • Line 787: warning: cyclomatic complexity 21 of function (*Client).runReader() is high (> 15) (gocyclo)
    • Line 308: warning: cyclomatic complexity 21 of function (*Client).Start() is high (> 15) (gocyclo)
    • Line 686: warning: cyclomatic complexity 16 of function (*Client).playRecordStart() is high (> 15) (gocyclo)
    • pkg/sdp/sdp.go
    • Line 509: warning: cyclomatic complexity 50 of function (*SessionDescription).Unmarshal() is high (> 15) (gocyclo)
    • server_read_test.go
    • Line 367: warning: cyclomatic complexity 28 of function TestServerRead() is high (> 15) (gocyclo)
    • Line 720: warning: cyclomatic complexity 20 of function TestServerReadDecodeErrors() is high (> 15) (gocyclo)
    • track_mpeg4audio.go
    • Line 26: warning: cyclomatic complexity 17 of function newTrackMPEG4AudioFromMediaDescription() is high (> 15) (gocyclo)
    • client_read_test.go
    • Line 2730: warning: cyclomatic complexity 33 of function TestClientReadDecodeErrors() is high (> 15) (gocyclo)
    • Line 191: warning: cyclomatic complexity 16 of function TestClientRead() is high (> 15) (gocyclo)
    • serversession.go
    • Line 451: warning: cyclomatic complexity 108 of function (*ServerSession).handleRequest() is high (> 15) (gocyclo)
    • Line 347: warning: cyclomatic complexity 32 of function (*ServerSession).runInner() is high (> 15) (gocyclo)
    • serverconn.go
    • Line 362: warning: cyclomatic complexity 43 of function (*ServerConn).handleRequest() is high (> 15) (gocyclo)
    • Line 238: warning: cyclomatic complexity 26 of function (*ServerConn).readFuncTCP() is high (> 15) (gocyclo)
    • server.go
    • Line 160: warning: cyclomatic complexity 52 of function (*Server).Start() is high (> 15) (gocyclo)
    • Line 333: warning: cyclomatic complexity 29 of function (*Server).run() is high (> 15) (gocyclo)
    • pkg/h264/sps.go
    • Line 489: warning: cyclomatic complexity 47 of function (*SPS).Unmarshal() is high (> 15) (gocyclo)
    • Line 238: warning: cyclomatic complexity 39 of function (*SPS_VUI).unmarshal() is high (> 15) (gocyclo)
    • track.go
    • Line 84: warning: cyclomatic complexity 23 of function newTrackFromMediaDescription() is high (> 15) (gocyclo)
    • serverstream.go
    • Line 121: warning: cyclomatic complexity 16 of function (*ServerStream).readerAdd() 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!