Go compiler for small places. Microcontrollers, WebAssembly (WASM/WASI), and command-line tools. Based on LLVM.
This report summarizes scanner evidence for tinygo-org/tinygo, a Go project with 17,868 GitHub stars. SynthScan examined 238,430 lines of code across 2044 source files, recording 654 pattern matches distributed across 9 syntactic categories. The legacy adjusted pattern signal is 2.8 (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? 651 finding(s).
Are imports declared and package/API names verified? 1 finding(s).
Are wrappers, guards, and repeated structures necessary? 2 finding(s).
Which changes need focused human review? 654 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 654 distinct pattern matches across 9 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 | diff.go | 21 | // | COMMENT |
| LOW | main.go | 2381 | // handleChdirFlag handles the -C flag before doing anything else. | COMMENT |
| LOW | testdata/corpus.yaml | 1 | # This contains code from https://github.com/dgryski/tinygo-test-corpus | COMMENT |
| LOW | testdata/corpus.yaml | 241 | - pkg: stat/distmat | COMMENT |
| LOW | testdata/corpus.yaml | 261 | #- pkg: spatial/vptree # panic: unimplemented: (reflect.Value).MapKeys() | COMMENT |
| LOW | testdata/gc-liveness-repro.go | 1 | // A pointer that is live in a frame is not necessarily rooted by that frame. | COMMENT |
| LOW | testdata/cgo/main.go | 1 | package main | COMMENT |
| LOW | testdata/errors/compiler.go | 21 | // ERROR: compiler.go:4:6: can only use //go:wasmimport on declarations | COMMENT |
| LOW | testdata/errors/pragma.go | 61 | } | COMMENT |
| LOW | testdata/errors/interp.go | 21 | // ERROR: # main | COMMENT |
| LOW | tools/gen-device-svd/gen-device-svd.go | 941 | return fields | COMMENT |
| LOW | interp/memory.go | 1 | package interp | COMMENT |
| LOW | interp/memory.go | 61 | // A memoryView is bound to a function activation. Loads are done from this view | COMMENT |
| LOW | interp/memory.go | 1101 | } | COMMENT |
| LOW | interp/compiler.go | 281 | // Encode operands in a special way. The elementOffset | COMMENT |
| LOW | interp/interpreter.go | 81 | startRTInsts = len(mem.instructions) | COMMENT |
| LOW | interp/interp_test.go | 121 | // around). | COMMENT |
| LOW | goenv/goenv.go | 341 | // -resource-dir flag. If it isn't available, an empty string is returned and | COMMENT |
| LOW | tests/text/template/smoke/smoke_test.go | 41 | t := template.Must(template.New("letter").Parse(letter)) | COMMENT |
| LOW | tests/text/template/smoke/smoke_test.go | 61 | // | COMMENT |
| LOW | tests/text/template/smoke/smoke_test.go | 101 | // Output: | COMMENT |
| LOW | internal/diff/diff.go | 21 | // | COMMENT |
| LOW | internal/diff/diff.go | 181 | // tgs returns the pairs of indexes of the longest common subsequence | COMMENT |
| LOW | docs/conf.py | 1 | # -*- coding: utf-8 -*- | COMMENT |
| LOW | docs/conf.py | 21 | # sys.path.insert(0, os.path.abspath('.')) | COMMENT |
| LOW | docs/conf.py | 61 | # The full version, including alpha/beta/rc tags. | COMMENT |
| LOW | docs/conf.py | 81 | # directories to ignore when looking for source files. | COMMENT |
| LOW | docs/conf.py | 101 | # | COMMENT |
| LOW | docs/conf.py | 121 | # | COMMENT |
| LOW | docs/conf.py | 141 | COMMENT | |
| LOW | docs/conf.py | 161 | COMMENT | |
| LOW | docs/conf.py | 181 | # html_sidebars = {} | COMMENT |
| LOW | docs/conf.py | 201 | # | COMMENT |
| LOW | docs/conf.py | 221 | # Language to be used for generating the HTML full-text search index. | COMMENT |
| LOW | docs/conf.py | 241 | COMMENT | |
| LOW | docs/conf.py | 261 | COMMENT | |
| LOW | docs/conf.py | 281 | # | COMMENT |
| LOW | docs/conf.py | 321 | # dir menu entry, description, category) | COMMENT |
| LOW | docs/conf.py | 341 | # | COMMENT |
| LOW | cgo/libclang_config_llvm22.go | 1 | //go:build !byollvm && llvm22 | COMMENT |
| LOW | cgo/libclang_config_llvm16.go | 1 | //go:build !byollvm && llvm16 | COMMENT |
| LOW | cgo/libclang_config_llvm23.go | 1 | //go:build !byollvm && llvm23 | COMMENT |
| LOW | cgo/libclang_config_llvm17.go | 1 | //go:build !byollvm && llvm17 | COMMENT |
| LOW | cgo/libclang_config_llvm18.go | 1 | //go:build !byollvm && llvm18 | COMMENT |
| LOW | cgo/cgo_test.go | 241 | func TestCGoBuildConstraints(t *testing.T) { | COMMENT |
| LOW | cgo/security.go | 1 | // Copyright 2018 The Go Authors. All rights reserved. | COMMENT |
| LOW | cgo/libclang_config_llvm19.go | 1 | //go:build !byollvm && llvm19 | COMMENT |
| LOW | cgo/libclang.go | 21 | ) | COMMENT |
| LOW | cgo/libclang.go | 661 | // Starting with LLVM 16, the elaborated type is used for more types. | COMMENT |
| LOW | cgo/cgo.go | 1 | // Package cgo implements CGo by modifying a loaded AST. It does this by parsing | COMMENT |
| LOW | cgo/cgo.go | 701 | // return (*float64)(unsafe.Pointer(&union.$union)) | COMMENT |
| LOW | cgo/cgo.go | 921 | } | COMMENT |
| LOW | cgo/libclang_config_llvm20.go | 1 | //go:build !byollvm && !llvm15 && !llvm16 && !llvm17 && !llvm18 && !llvm19 && !llvm21 && !llvm22 && !llvm23 | COMMENT |
| LOW | cgo/libclang_config_llvm21.go | 1 | //go:build !byollvm && llvm21 | COMMENT |
| LOW | cgo/libclang_config_llvm15.go | 1 | //go:build !byollvm && llvm15 | COMMENT |
| LOW | cgo/testdata/flags.go | 1 | package main | COMMENT |
| LOW | cgo/testdata/errors.out.go | 1 | // CGo errors: | COMMENT |
| LOW | cgo/testdata/errors.go | 21 | #define SOME_CONST_b 3 ) // const with lots of weird whitespace (to test error locations) | COMMENT |
| LOW | loader/goroot.go | 301 | // Note that while Windows 10 does support symlinks and allows them to be | COMMENT |
| LOW | loader/loader.go | 241 | Err: err, | COMMENT |
| 563 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | src/reflect/type.go | 397 | // TODO: implement canRangeFunc | COMMENT |
| LOW | src/reflect/type.go | 411 | // TODO: implement canRangeFunc2 | COMMENT |
| LOW | src/internal/cm/stream.go | 15 | // TODO: implement methods on type stream | COMMENT |
| LOW | src/internal/cm/future.go | 15 | // TODO: implement methods on type future | COMMENT |
| LOW | src/testing/testing_test.go | 3 | // TODO: implement readdir for windows, then enable this file | COMMENT |
| LOW | src/machine/machine_mimxrt1062_i2c.go | 165 | // TODO: implement | COMMENT |
| LOW | src/machine/machine_stm32f103.go | 337 | // TODO: implement SPI2 and SPI3. | COMMENT |
| LOW | src/machine/machine_stm32f103.go | 384 | // TODO: implement I2C2. | COMMENT |
| LOW | src/machine/machine_stm32u031.go | 178 | // TODO: implement output channels | COMMENT |
| LOW | src/machine/board_stm32f469disco.go | 62 | // TODO: implement SPI2 and SPI3. | COMMENT |
| LOW | src/machine/board_stm32f4disco.go | 89 | // TODO: implement SPI2 and SPI3. | COMMENT |
| LOW | src/machine/machine_stm32_i2c_reva.go | 162 | // TODO: implement | COMMENT |
| LOW | src/device/arm/semihosting.go | 62 | // TODO: implement it here using inline assembly. | COMMENT |
| LOW | src/os/removeall_test.go | 3 | // TODO: implement ReadDir on windows | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | src/machine/machine_nrf52840.go | 83 | // Step 1: wait for new sampling to start for target buffer | COMMENT |
| LOW⚡ | src/machine/machine_nrf52840.go | 88 | // Step 2: swap out buffers for next recording so we don't continue to | COMMENT |
| LOW⚡ | src/machine/machine_nrf52840.go | 94 | // Step 3: wait for original event to end | COMMENT |
| LOW⚡ | src/machine/machine_nrf52840.go | 98 | // Step 4: wait for default buffer to start recording before proceeding | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | src/machine/machine_nrf52840.go | 83 | // Step 1: wait for new sampling to start for target buffer | COMMENT |
| LOW⚡ | src/machine/machine_nrf52840.go | 88 | // Step 2: swap out buffers for next recording so we don't continue to | COMMENT |
| LOW⚡ | src/machine/machine_nrf52840.go | 94 | // Step 3: wait for original event to end | COMMENT |
| LOW⚡ | src/machine/machine_nrf52840.go | 98 | // Step 4: wait for default buffer to start recording before proceeding | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tools/tgtestjson.sh | 6 | # TODO: let's just add -json support to tinygo test. | COMMENT |
| MEDIUM | src/runtime/complex.go | 24 | // Algorithm for robust complex division as described in | COMMENT |
| MEDIUM | src/runtime/pprof/label.go | 75 | // Currently only the CPU and goroutine profiles utilize any labels | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | src/machine/machine_esp32c6_adc.go | 107 | // ── regI2C: internal I2C-bus (LP_I2C_ANA_MST) for SAR ADC calibration ─────── | COMMENT |
| MEDIUM | src/machine/machine_esp32c6_adc.go | 334 | // ── Self-calibration ────────────────────────────────────────────────────────── | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | docs/conf.py | 6 | # This file is execfile()d with the current directory set to its | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | compiler/llvm.go | 22 | // This is useful for creating temporary allocas for intrinsics. Don't forget to | COMMENT |
| LOW | compiler/llvmutil/llvm.go | 38 | // This is useful for creating temporary allocas for intrinsics. Don't forget to | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | docs/conf.py | 123 | CODE |