Preparing report...

Report for github.com/prStory/webrtc/v3

(v3.11.45)

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


gocyclo86%

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.

    • sdp_test.go
    • Line 371: warning: cyclomatic complexity 23 of function TestPopulateSDP() is high (> 15) (gocyclo)
    • datachannel_test.go
    • Line 362: warning: cyclomatic complexity 18 of function TestDataChannelParameters() is high (> 15) (gocyclo)
    • Line 219: warning: cyclomatic complexity 16 of function TestDataChannel_Send() is high (> 15) (gocyclo)
    • peerconnection.go
    • Line 1016: warning: cyclomatic complexity 48 of function (*PeerConnection).SetRemoteDescription() is high (> 15) (gocyclo)
    • Line 2319: warning: cyclomatic complexity 34 of function (*PeerConnection).generateMatchedSDP() is high (> 15) (gocyclo)
    • Line 1504: warning: cyclomatic complexity 28 of function (*PeerConnection).handleIncomingSSRC() is high (> 15) (gocyclo)
    • Line 838: warning: cyclomatic complexity 26 of function (*PeerConnection).setDescription() is high (> 15) (gocyclo)
    • Line 601: warning: cyclomatic complexity 24 of function (*PeerConnection).CreateOffer() is high (> 15) (gocyclo)
    • Line 357: warning: cyclomatic complexity 23 of function (*PeerConnection).checkNegotiationNeeded() is high (> 15) (gocyclo)
    • Line 1307: warning: cyclomatic complexity 20 of function (*PeerConnection).configureRTPReceivers() is high (> 15) (gocyclo)
    • Line 497: warning: cyclomatic complexity 19 of function (*PeerConnection).SetConfiguration() is high (> 15) (gocyclo)
    • Line 198: warning: cyclomatic complexity 16 of function (*PeerConnection).initConfiguration() is high (> 15) (gocyclo)
    • Line 2247: warning: cyclomatic complexity 16 of function (*PeerConnection).generateUnmatchedSDP() is high (> 15) (gocyclo)
    • signalingstate.go
    • Line 117: warning: cyclomatic complexity 30 of function checkNextSignalingState() is high (> 15) (gocyclo)
    • peerconnection_media_test.go
    • Line 54: warning: cyclomatic complexity 25 of function TestPeerConnection_Media_Sample() is high (> 15) (gocyclo)
    • Line 216: warning: cyclomatic complexity 16 of function TestPeerConnection_Media_Shutdown() is high (> 15) (gocyclo)
    • e2e/e2e_test.go
    • Line 40: warning: cyclomatic complexity 25 of function TestE2E_Audio() is high (> 15) (gocyclo)
    • Line 151: warning: cyclomatic complexity 20 of function TestE2E_DataChannel() is high (> 15) (gocyclo)
    • Line 261: warning: cyclomatic complexity 17 of function logParseLoop() is high (> 15) (gocyclo)
    • mediaengine.go
    • Line 556: warning: cyclomatic complexity 25 of function (*MediaEngine).getRTPParametersByKind() is high (> 15) (gocyclo)
    • Line 472: warning: cyclomatic complexity 16 of function (*MediaEngine).updateFromRemoteDescription() is high (> 15) (gocyclo)
    • sdp.go
    • Line 76: warning: cyclomatic complexity 29 of function trackDetailsFromSDP() is high (> 15) (gocyclo)
    • Line 646: warning: cyclomatic complexity 18 of function extractICEDetails() is high (> 15) (gocyclo)
    • dtlstransport.go
    • Line 277: warning: cyclomatic complexity 18 of function (*DTLSTransport).Start() is high (> 15) (gocyclo)
    • sctptransport.go
    • Line 160: warning: cyclomatic complexity 16 of function (*SCTPTransport).acceptDataChannels() 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!