[mirror] Go on Mobile
This report summarizes scanner evidence for golang/mobile, a Go project with 6,226 GitHub stars. SynthScan examined 54,355 lines of code across 265 source files, recording 131 pattern matches distributed across 2 syntactic categories. The legacy adjusted pattern signal is 2.3 (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? 131 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? 131 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 131 distinct pattern matches across 2 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 | cmd/gomobile/env.go | 81 | switch platform { | COMMENT |
| LOW | cmd/gomobile/env.go | 221 | clang, cflags, err = envClang(sdk) | COMMENT |
| LOW | cmd/gomobile/gendex.go | 1 | // Copyright 2015 The Go Authors. All rights reserved. | COMMENT |
| LOW | cmd/gomobile/writer.go | 1 | // Copyright 2015 The Go Authors. All rights reserved. | COMMENT |
| LOW | cmd/gomobile/writer.go | 21 | // | COMMENT |
| LOW | cmd/gomobile/writer.go | 41 | // Note the \r\n line breaks. | COMMENT |
| LOW | cmd/gomobile/build_apple.go | 561 | // rfc1034Label sanitizes the name to be usable in a uniform type identifier. | COMMENT |
| LOW | app/x11.c | 1 | // Copyright 2014 The Go Authors. All rights reserved. | COMMENT |
| LOW | app/darwin_desktop.m | 1 | // Copyright 2014 The Go Authors. All rights reserved. | COMMENT |
| LOW | app/darwin_desktop.m | 61 | // pixels to actual pixels, but both of these units vary | COMMENT |
| LOW | app/darwin_desktop.go | 1 | // Copyright 2014 The Go Authors. All rights reserved. | COMMENT |
| LOW | app/darwin_desktop.go | 61 | }() | COMMENT |
| LOW | app/android.c | 1 | // Copyright 2014 The Go Authors. All rights reserved. | COMMENT |
| LOW | app/app.go | 21 | main(f) | COMMENT |
| LOW | app/darwin_ios.m | 1 | // Copyright 2015 The Go Authors. All rights reserved. | COMMENT |
| LOW | app/darwin_ios.go | 1 | // Copyright 2015 The Go Authors. All rights reserved. | COMMENT |
| LOW | app/android.go | 21 | COMMENT | |
| LOW | app/internal/callfn/callfn.go | 1 | // Copyright 2015 The Go Authors. All rights reserved. | COMMENT |
| LOW | asset/doc.go | 1 | // Copyright 2015 The Go Authors. All rights reserved. | COMMENT |
| LOW | example/ivy/doc.go | 1 | // Copyright 2021 The Go Authors. All rights reserved. | COMMENT |
| LOW | example/network/main.go | 1 | // Copyright 2015 The Go Authors. All rights reserved. | COMMENT |
| LOW | example/network/main.go | 21 | // program as an Android APK using the gomobile tool. | COMMENT |
| LOW | example/basic/main.go | 1 | // Copyright 2014 The Go Authors. All rights reserved. | COMMENT |
| LOW | internal/binres/binres.go | 1 | // Copyright 2015 The Go Authors. All rights reserved. | COMMENT |
| LOW | internal/binres/binres.go | 21 | // | COMMENT |
| LOW | internal/binres/binres_test.go | 241 | if err := compareElements(bx, bxml); err != nil { | COMMENT |
| LOW | internal/binres/pool.go | 21 | func (ref PoolRef) Resolve(pl *Pool) string { | COMMENT |
| LOW | internal/binres/pool.go | 41 | // uint16 [optional] low word if high bit of length set | COMMENT |
| LOW | internal/binres/table.go | 21 | COMMENT | |
| LOW | internal/importers/ast.go | 1 | // Copyright 2016 The Go Authors. All rights reserved. | COMMENT |
| LOW | internal/importers/ast.go | 41 | COMMENT | |
| LOW | internal/importers/ast.go | 121 | COMMENT | |
| LOW | internal/importers/java/java.go | 181 | // | COMMENT |
| LOW | internal/importers/java/java.go | 401 | } else { | COMMENT |
| LOW | internal/importers/java/java.go | 421 | // } | COMMENT |
| LOW | internal/mobileinit/mobileinit.go | 1 | // Copyright 2015 The Go Authors. All rights reserved. | COMMENT |
| LOW | gl/work.h | 1 | // Copyright 2015 The Go Authors. All rights reserved. | COMMENT |
| LOW | gl/work.h | 21 | #ifdef os_macos | COMMENT |
| LOW | gl/interface.go | 1 | // Copyright 2014 The Go Authors. All rights reserved. | COMMENT |
| LOW | gl/interface.go | 21 | // Contexts are independent. Two contexts can be used concurrently. | COMMENT |
| LOW | gl/interface.go | 41 | // http://www.khronos.org/opengles/sdk/docs/man3/html/glBindBuffer.xhtml | COMMENT |
| LOW | gl/interface.go | 61 | // http://www.khronos.org/opengles/sdk/docs/man3/html/glBindVertexArray.xhtml | COMMENT |
| LOW | gl/interface.go | 81 | // http://www.khronos.org/opengles/sdk/docs/man3/html/glBlendFunc.xhtml | COMMENT |
| LOW | gl/interface.go | 101 | // http://www.khronos.org/opengles/sdk/docs/man3/html/glBufferSubData.xhtml | COMMENT |
| LOW | gl/interface.go | 121 | ClearColor(red, green, blue, alpha float32) | COMMENT |
| LOW | gl/interface.go | 141 | // http://www.khronos.org/opengles/sdk/docs/man3/html/glCompileShader.xhtml | COMMENT |
| LOW | gl/interface.go | 161 | // | COMMENT |
| LOW | gl/interface.go | 181 | // | COMMENT |
| LOW | gl/interface.go | 201 | // | COMMENT |
| LOW | gl/interface.go | 221 | COMMENT | |
| LOW | gl/interface.go | 241 | COMMENT | |
| LOW | gl/interface.go | 261 | COMMENT | |
| LOW | gl/interface.go | 281 | DisableVertexAttribArray(a Attrib) | COMMENT |
| LOW | gl/interface.go | 301 | // | COMMENT |
| LOW | gl/interface.go | 321 | // http://www.khronos.org/opengles/sdk/docs/man3/html/glFramebufferRenderbuffer.xhtml | COMMENT |
| LOW | gl/interface.go | 341 | // GetActiveAttrib returns details about an active attribute variable. | COMMENT |
| LOW | gl/interface.go | 361 | COMMENT | |
| LOW | gl/interface.go | 381 | // Single values may be queried more easily using GetInteger. | COMMENT |
| LOW | gl/interface.go | 401 | // GetFramebufferAttachmentParameteri returns attachment parameters | COMMENT |
| LOW | gl/interface.go | 421 | COMMENT | |
| 70 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | cmd/gomobile/build_apple.go | 580 | // greater than U+007f. In this implementation, we just replace everything non | COMMENT |