Preparing report...

Report for github.com/viamrobotics/webrtc/v3

(v3.99.0)

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


gofmt94%

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


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.

    • stats.go
    • Line 22: warning: cyclomatic complexity 21 of function UnmarshalStatsJSON() is high (> 15) (gocyclo)
    • signalingstate.go
    • Line 120: warning: cyclomatic complexity 30 of function checkNextSignalingState() is high (> 15) (gocyclo)
    • peerconnection_media_test.go
    • Line 62: warning: cyclomatic complexity 25 of function TestPeerConnection_Media_Sample() is high (> 15) (gocyclo)
    • Line 1416: warning: cyclomatic complexity 18 of function TestPeerConnection_Simulcast_RTX() is high (> 15) (gocyclo)
    • Line 224: warning: cyclomatic complexity 16 of function TestPeerConnection_Media_Shutdown() is high (> 15) (gocyclo)
    • rtpsender.go
    • Line 231: warning: cyclomatic complexity 16 of function (*RTPSender).ReplaceTrack() is high (> 15) (gocyclo)
    • datachannel_test.go
    • Line 365: warning: cyclomatic complexity 18 of function TestDataChannelParameters() is high (> 15) (gocyclo)
    • Line 222: warning: cyclomatic complexity 16 of function TestDataChannel_Send() is high (> 15) (gocyclo)
    • peerconnection.go
    • Line 1029: warning: cyclomatic complexity 48 of function (*PeerConnection).SetRemoteDescription() is high (> 15) (gocyclo)
    • Line 2369: warning: cyclomatic complexity 35 of function (*PeerConnection).generateMatchedSDP() is high (> 15) (gocyclo)
    • Line 1515: warning: cyclomatic complexity 29 of function (*PeerConnection).handleIncomingSSRC() is high (> 15) (gocyclo)
    • Line 852: warning: cyclomatic complexity 26 of function (*PeerConnection).setDescription() is high (> 15) (gocyclo)
    • Line 601: warning: cyclomatic complexity 26 of function (*PeerConnection).CreateOffer() is high (> 15) (gocyclo)
    • Line 353: warning: cyclomatic complexity 24 of function (*PeerConnection).checkNegotiationNeeded() is high (> 15) (gocyclo)
    • Line 1308: 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 730: warning: cyclomatic complexity 19 of function (*PeerConnection).updateConnectionState() is high (> 15) (gocyclo)
    • Line 206: warning: cyclomatic complexity 16 of function (*PeerConnection).initConfiguration() is high (> 15) (gocyclo)
    • Line 2296: warning: cyclomatic complexity 16 of function (*PeerConnection).generateUnmatchedSDP() is high (> 15) (gocyclo)
    • mediaengine.go
    • Line 580: warning: cyclomatic complexity 25 of function (*MediaEngine).getRTPParametersByKind() is high (> 15) (gocyclo)
    • Line 496: warning: cyclomatic complexity 16 of function (*MediaEngine).updateFromRemoteDescription() is high (> 15) (gocyclo)
    • dtlstransport.go
    • Line 281: warning: cyclomatic complexity 19 of function (*DTLSTransport).Start() is high (> 15) (gocyclo)
    • sdp.go
    • Line 83: warning: cyclomatic complexity 31 of function trackDetailsFromSDP() is high (> 15) (gocyclo)
    • Line 725: warning: cyclomatic complexity 18 of function extractICEDetails() is high (> 15) (gocyclo)
    • Line 560: warning: cyclomatic complexity 17 of function populateSDP() is high (> 15) (gocyclo)
    • Line 415: warning: cyclomatic complexity 16 of function addTransceiverSDP() is high (> 15) (gocyclo)
    • e2e/e2e_test.go
    • Line 43: warning: cyclomatic complexity 25 of function TestE2E_Audio() is high (> 15) (gocyclo)
    • Line 154: warning: cyclomatic complexity 20 of function TestE2E_DataChannel() is high (> 15) (gocyclo)
    • Line 264: warning: cyclomatic complexity 17 of function logParseLoop() is high (> 15) (gocyclo)
    • sctptransport.go
    • Line 164: warning: cyclomatic complexity 16 of function (*SCTPTransport).acceptDataChannels() is high (> 15) (gocyclo)
    • sdp_test.go
    • Line 374: warning: cyclomatic complexity 24 of function TestPopulateSDP() is high (> 15) (gocyclo)
    • datachannel_go_test.go
    • Line 364: warning: cyclomatic complexity 19 of function TestEOF() is high (> 15) (gocyclo)
    • Line 184: warning: cyclomatic complexity 18 of function TestDataChannelBufferedAmount() 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!