Pure Go implementation of the WebRTC API
This report summarizes scanner evidence for pion/webrtc, a Go project with 16,867 GitHub stars. SynthScan examined 79,331 lines of code across 371 source files, recording 96 pattern matches distributed across 6 syntactic categories. The legacy adjusted pattern signal is 1.1 (Low pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.
Can maintainers explain intent, assumptions, and trade-offs? 89 finding(s).
Are imports declared and package/API names verified? 7 finding(s).
Are wrappers, guards, and repeated structures necessary? 2 finding(s).
Which changes need focused human review? 96 finding(s).
This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 96 distinct pattern matches across 6 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | settingengine.go | 221 | // it only works if DetachDataChannels is enabled. | COMMENT |
| LOW | settingengine.go | 321 | COMMENT | |
| LOW | settingengine.go | 341 | // The public IP address will be used for the host candidate in the SDP. | COMMENT |
| LOW | icecandidatetype.go | 21 | // candidate obtained by binding to a specific port from an IP address on | COMMENT |
| LOW | peerconnectionstate.go | 21 | // "checking" state and none of them is in the "failed" state. | COMMENT |
| LOW | datachannel_js.go | 301 | // value, it will not change. | COMMENT |
| LOW | configuration.go | 1 | // SPDX-FileCopyrightText: 2026 The Pion community <https://pion.ly> | COMMENT |
| LOW | configuration.go | 21 | COMMENT | |
| LOW | configuration.go | 41 | // handshake, which establishes which certificates are allowed. The | COMMENT |
| LOW | bundlepolicy.go | 21 | COMMENT | |
| LOW | offeransweroptions.go | 1 | // SPDX-FileCopyrightText: 2026 The Pion community <https://pion.ly> | COMMENT |
| LOW | peerconnection_js.go | 181 | // if len(configuration.Certificates) != len(existingConfiguration.Certificates) { | COMMENT |
| LOW | mimetype.go | 1 | // SPDX-FileCopyrightText: 2026 The Pion community <https://pion.ly> | COMMENT |
| LOW | mimetype.go | 21 | MimeTypeVP9 = "video/VP9" | COMMENT |
| LOW | track_local.go | 101 | COMMENT | |
| LOW | webrtc.go | 1 | // SPDX-FileCopyrightText: 2026 The Pion community <https://pion.ly> | COMMENT |
| LOW | datachannelinit.go | 1 | // SPDX-FileCopyrightText: 2026 The Pion community <https://pion.ly> | COMMENT |
| LOW | stats.go | 341 | FIRCount uint32 `json:"firCount"` | COMMENT |
| LOW | stats.go | 361 | // can be calculated by dividing the JitterBufferDelay with the JitterBufferEmittedCount. | COMMENT |
| LOW | stats.go | 381 | COMMENT | |
| LOW | stats.go | 401 | // Does not exist for video. | COMMENT |
| LOW | stats.go | 441 | // TotalDecodeTime is the total number of seconds that have been spent decoding the FramesDecoded | COMMENT |
| LOW | stats.go | 521 | COMMENT | |
| LOW | stats.go | 541 | COMMENT | |
| LOW | stats.go | 561 | AverageRTCPInterval float64 `json:"averageRtcpInterval"` | COMMENT |
| LOW | stats.go | 581 | FramesReceived uint32 `json:"framesReceived"` | COMMENT |
| LOW | stats.go | 601 | COMMENT | |
| LOW | stats.go | 701 | COMMENT | |
| LOW | stats.go | 761 | // been discarded due to socket errors, i.e. a socket error occurred when handing | COMMENT |
| LOW | stats.go | 781 | // which the statistics were generated by the local endpoint. | COMMENT |
| LOW | stats.go | 801 | // FrameHeight represents the height of the last encoded frame. The resolution of the | COMMENT |
| LOW | stats.go | 821 | COMMENT | |
| LOW | stats.go | 841 | // a packet is emitted from the RTP packetizer until it is handed over to the OS network socket. | COMMENT |
| LOW | stats.go | 861 | // The counter is initially zero and increases when the resolution goes up or down. | COMMENT |
| LOW | stats.go | 1081 | // PacketsSent is the total number of RTP packets sent for this SSRC. | COMMENT |
| LOW | stats.go | 1101 | // reasons, including full buffer or no available memory. | COMMENT |
| LOW | stats.go | 1161 | // by inspecting the same underlying object. | COMMENT |
| LOW | stats.go | 1221 | // the sound pressure level from 0 dBov. | COMMENT |
| LOW | stats.go | 1241 | EchoReturnLoss float64 `json:"echoReturnLoss"` | COMMENT |
| LOW | stats.go | 1341 | // Timestamp is the timestamp associated with this object. | COMMENT |
| LOW | stats.go | 1361 | SynthesizedSamplesDuration float64 `json:"synthesizedSamplesDuration"` | COMMENT |
| LOW | stats.go | 1401 | // Type is the object's StatsType | COMMENT |
| LOW | stats.go | 1561 | // | COMMENT |
| LOW | stats.go | 1581 | // V bit in the extension header, as defined in [RFC6464]. | COMMENT |
| LOW | stats.go | 1601 | TotalSamplesSent uint64 `json:"totalSamplesSent"` | COMMENT |
| LOW | stats.go | 1621 | COMMENT | |
| LOW | stats.go | 1641 | COMMENT | |
| LOW | stats.go | 1661 | // e.g slide changes in the streamed presentation. If a huge frame is also a key frame, | COMMENT |
| LOW | stats.go | 1761 | // Type is the object's StatsType | COMMENT |
| LOW | stats.go | 1781 | // is 0.5, the AudioLevel is expected to be half that value. | COMMENT |
| LOW | stats.go | 1801 | // Can be used with TotalAudioEnergy to compute an average audio level over different intervals. | COMMENT |
| LOW | stats.go | 1821 | JitterBufferDelay float64 `json:"jitterBufferDelay"` | COMMENT |
| LOW | stats.go | 1861 | // FrameWidth represents the width of the last processed frame for this track. | COMMENT |
| LOW | stats.go | 1881 | // | COMMENT |
| LOW | stats.go | 1901 | COMMENT | |
| LOW | stats.go | 2141 | Type StatsType `json:"type"` | COMMENT |
| LOW | stats.go | 2181 | // not including headers or padding. | COMMENT |
| LOW | stats.go | 2201 | COMMENT | |
| LOW | stats.go | 2221 | // that are sent in order to verify consent. The average round trip time can | COMMENT |
| LOW | stats.go | 2241 | // IP or other transport layers like TCP or UDP. It is similar to the TIAS defined | COMMENT |
| 24 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | peerconnection_js_test.go | 81 | Credential: "placeholder", | CODE |
| LOW | peerconnection_js_test.go | 87 | Credential: "placeholder", | CODE |
| LOW | iceserver_test.go | 26 | Credential: "placeholder", | CODE |
| LOW | iceserver_test.go | 32 | Credential: "placeholder", | CODE |
| LOW⚡ | iceserver_test.go | 99 | []byte(`{"urls":"NOTAURL","username":"unittest","credential":"placeholder","credentialType":"password"}`), | CODE |
| LOW⚡ | iceserver_test.go | 100 | []byte(`{"urls":["turn:[2001:db8:1234:5678::1]?transport=udp"],"username":"unittest","credential":"placeholder","cred | CODE |
| LOW⚡ | iceserver_test.go | 101 | []byte(`{"urls":["turn:[2001:db8:1234:5678::1]?transport=udp"],"username":6,"credential":"placeholder","credentialTyp | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | sdp.go | 114 | // Essentially lines like `a=ssrc-group:FID 2231627014 632943048` are processed by this section | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | examples/sctp-interleaving-inspect/index.html | 344 | function waitForIceGatheringComplete(peer) { | CODE |
| LOW | examples/sctp-interleaving-inspect/index.html | 452 | function recordServerPressureProbe(message) { | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | gathering_complete_promise.go | 21 | // promise might have been created after the gathering is finished. Therefore, we need to check if the ICE gathering | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | .golangci.yml | 28 | - godot # Check if comments end in a period | CODE |