Simple Go HTTP client with Black Magic
This report summarizes scanner evidence for imroc/req, a Go project with 4,869 GitHub stars. SynthScan examined 37,198 lines of code across 151 source files, recording 83 pattern matches distributed across 1 syntactic category. The legacy adjusted pattern signal is 2.2 (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? 83 finding(s).
Are imports declared and package/API names verified? 0 finding(s).
Are wrappers, guards, and repeated structures necessary? 0 finding(s).
Which changes need focused human review? 83 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 83 distinct pattern matches across 1 syntactic category. 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 | transport.go | 61 | // h1 represents "HTTP/1.1" | COMMENT |
| LOW | transport.go | 81 | // Transports should be reused instead of created as needed. | COMMENT |
| LOW | transport.go | 381 | // StrictMaxConcurrentStreams, which controls whether the | COMMENT |
| LOW | transport.go | 481 | // to return a proxy for a given Request. If the function returns a non-nil error, the request | COMMENT |
| LOW | transport.go | 501 | // The dial function runs concurrently with calls to RoundTrip. | COMMENT |
| LOW | transport.go | 1181 | // requests at once, they can all pick the same conn | COMMENT |
| LOW | transport.go | 1501 | delivered := false | COMMENT |
| LOW | transport.go | 1701 | // It is split into two stages - head[headPos:] and tail. | COMMENT |
| LOW | transport.go | 2341 | // such as sendfile. | COMMENT |
| LOW | transport.go | 2621 | pc.close(errIdleConnTimeout) | COMMENT |
| LOW | transport.go | 3121 | // The server can (and will, if it's a net/http server) reject | COMMENT |
| LOW | transport.go | 3321 | COMMENT | |
| LOW | transport.go | 3441 | // own value for Accept-Encoding. We only attempt to | COMMENT |
| LOW | transport.go | 3641 | // bodyEOFSignal is used by the HTTP/1 transport when reading response | COMMENT |
| LOW | transport.go | 3761 | // client or server. | COMMENT |
| LOW | curl.go | 1 | package req | COMMENT |
| LOW | response.go | 161 | COMMENT | |
| LOW | response.go | 281 | COMMENT | |
| LOW | request.go | 481 | // SetBearerAuthToken set bearer auth token for the request. | COMMENT |
| LOW | request.go | 561 | // | COMMENT |
| LOW | request.go | 1281 | // unless you intentionally want to change retry behavior from middleware. | COMMENT |
| LOW | request.go | 1301 | // } | COMMENT |
| LOW | client.go | 201 | // and result will be unmarshalled if Request.SetSuccessResult | COMMENT |
| LOW | client.go | 821 | // Closing early may prevent connection reuse for that request. | COMMENT |
| LOW | client.go | 881 | COMMENT | |
| LOW | client.go | 941 | // valid for HTTP/1.1. | COMMENT |
| LOW | client.go | 1421 | } | COMMENT |
| LOW | client.go | 1501 | return d.DialContext(ctx, "unix", file) | COMMENT |
| LOW | client.go | 1521 | // client.SetResolver(r) | COMMENT |
| LOW | client.go | 1541 | // clear error instead. | COMMENT |
| LOW | client.go | 1641 | COMMENT | |
| LOW | roundtrip_js.go | 21 | var uint8Array = js.Global().Get("Uint8Array") | COMMENT |
| LOW | roundtrip_js.go | 41 | // Valid values are: "follow", "error", "manual" | COMMENT |
| LOW | textproto_reader.go | 201 | return string(p) | COMMENT |
| LOW | textproto_reader.go | 361 | // header-field = field-name ":" OWS field-value OWS | COMMENT |
| LOW | textproto_reader.go | 421 | // case, so a copy of a's bytes into a new string does not | COMMENT |
| LOW | http.go | 21 | // makes that struct also non-comparable, and generally doesn't add | COMMENT |
| LOW | http.go | 141 | // maxPostHandlerReadBytes is the max number of Request.Body bytes not | COMMENT |
| LOW | transfer.go | 121 | } | COMMENT |
| LOW | transfer.go | 161 | return true | COMMENT |
| LOW | transfer.go | 641 | } | COMMENT |
| LOW | roundtrip.go | 1 | // Copyright 2018 The Go Authors. All rights reserved. | COMMENT |
| LOW | internal/chunked.go | 181 | // "chunked" format before writing them to w. Closing the returned chunkedWriter | COMMENT |
| LOW | internal/transport/option.go | 21 | // "https", "socks5", "socks5h", "socks4", and "socks4a" are supported. | COMMENT |
| LOW | internal/transport/option.go | 41 | // If DialContext is nil, then the transport dials using package net. | COMMENT |
| LOW | internal/transport/option.go | 61 | // it works even if a proxy is set, can be used to customize the tls fingerprint. | COMMENT |
| LOW | internal/transport/option.go | 81 | // DisableCompression, if true, prevents the Transport from | COMMENT |
| LOW | internal/transport/option.go | 101 | // connections across all hosts. Zero means no limit. | COMMENT |
| LOW | internal/transport/option.go | 121 | COMMENT | |
| LOW | internal/transport/option.go | 141 | COMMENT | |
| LOW | internal/godebug/godebug.go | 1 | // Copyright 2021 The Go Authors. All rights reserved. | COMMENT |
| LOW | internal/godebug/godebug.go | 21 | // ... | COMMENT |
| LOW | internal/godebug/godebug.go | 121 | // name of a Setting for which Value has been called | COMMENT |
| LOW | internal/bisect/bisect.go | 1 | // Copyright 2023 The Go Authors. All rights reserved. | COMMENT |
| LOW | internal/bisect/bisect.go | 21 | // 3. Enable each change that the pattern says should be enabled. | COMMENT |
| LOW | internal/bisect/bisect.go | 41 | // Then, each time a potential change is considered, the program computes | COMMENT |
| LOW | internal/bisect/bisect.go | 61 | // Finally, note that New returns a nil Matcher when there is no pattern, | COMMENT |
| LOW | internal/bisect/bisect.go | 81 | // still exploring the space of possible changes and will not be showing the | COMMENT |
| LOW | internal/bisect/bisect.go | 101 | // provided by the [Matcher.FileLine] method. | COMMENT |
| LOW | internal/bisect/bisect.go | 121 | // In the expression, all the + operators must appear before all the - operators. | COMMENT |
| 23 more matches not shown… | ||||