MicroZig is a toolbox for building embedded applications in Zig.
This report summarizes scanner evidence for ZigEmbeddedGroup/microzig, a Zig project with 2,297 GitHub stars. SynthScan examined 15,260 lines of code across 172 source files, recording 203 pattern matches distributed across 6 syntactic categories. The legacy adjusted pattern signal is 12.9 (Moderate 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.
Can maintainers explain intent, assumptions, and trade-offs? 197 finding(s).
Are imports declared and package/API names verified? 0 finding(s).
Are wrappers, guards, and repeated structures necessary? 6 finding(s).
Which changes need focused human review? 203 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 203 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 | tools/sorcerer/README.md | 81 | # STM32F103C8 stmicro/stm32 - | COMMENT |
| LOW | drivers/README.md | 681 | COMMENT | |
| LOW | examples/espressif/esp/src/lwip/include/lwipopts.h | 1 | #ifndef LWIP_LWIPOPTS_H | COMMENT |
| LOW | examples/espressif/esp/src/lwip/include/lwipopts.h | 21 | #define MEMP_MEM_MALLOC 1 | COMMENT |
| LOW | examples/espressif/esp/src/lwip/include/arch/cc.h | 21 | } while (0) | COMMENT |
| LOW | examples/espressif/esp/src/lwip/include/arch/cc.h | 41 | #define SYS_ARCH_PROTECT(lev) lwip_lock_core_mutex() | COMMENT |
| LOW | …errypi/rp2xxx/src/hal/pio/assembler/comparison_tests.h | 1 | #ifndef _RP2XXX_COMPARISON_TESTS_H_ | COMMENT |
| LOW | …errypi/rp2xxx/src/hal/pio/assembler/comparison_tests.h | 21 | #include "comparison_tests/quadrature_encoder.pio.h" | COMMENT |
| LOW | …/hal/pio/assembler/comparison_tests/resistor_dac.pio.h | 1 | // -------------------------------------------------- // | COMMENT |
| LOW | …xxx/src/hal/pio/assembler/comparison_tests/hub75.pio.h | 1 | // -------------------------------------------------- // | COMMENT |
| LOW | …l/pio/assembler/comparison_tests/squarewave_fast.pio.h | 1 | // -------------------------------------------------- // | COMMENT |
| LOW | …l/pio/assembler/comparison_tests/squarewave_wrap.pio.h | 1 | // -------------------------------------------------- // | COMMENT |
| LOW | …rc/hal/pio/assembler/comparison_tests/squarewave.pio.h | 1 | // -------------------------------------------------- // | COMMENT |
| LOW | …o/assembler/comparison_tests/nec_carrier_control.pio.h | 1 | // -------------------------------------------------- // | COMMENT |
| LOW | …pio/assembler/comparison_tests/nec_carrier_burst.pio.h | 1 | // -------------------------------------------------- // | COMMENT |
| LOW | …pio/assembler/comparison_tests/nec_carrier_burst.pio.h | 41 | } | COMMENT |
| LOW | …o/assembler/comparison_tests/manchester_encoding.pio.h | 1 | // -------------------------------------------------- // | COMMENT |
| LOW | …p2xxx/src/hal/pio/assembler/comparison_tests/pwm.pio.h | 1 | // -------------------------------------------------- // | COMMENT |
| LOW | …al/pio/assembler/comparison_tests/pio_serialiser.pio.h | 1 | // -------------------------------------------------- // | COMMENT |
| LOW | …io/assembler/comparison_tests/quadrature_encoder.pio.h | 1 | // -------------------------------------------------- // | COMMENT |
| LOW | …sembler/comparison_tests/differential_manchester.pio.h | 1 | // -------------------------------------------------- // | COMMENT |
| LOW | …x/src/hal/pio/assembler/comparison_tests/uart_rx.pio.h | 1 | // -------------------------------------------------- // | COMMENT |
| LOW | …hal/pio/assembler/comparison_tests/clocked_input.pio.h | 1 | // -------------------------------------------------- // | COMMENT |
| LOW | …/src/hal/pio/assembler/comparison_tests/addition.pio.h | 1 | // -------------------------------------------------- // | COMMENT |
| LOW | …xx/src/hal/pio/assembler/comparison_tests/ws2812.pio.h | 1 | // -------------------------------------------------- // | COMMENT |
| LOW | …xx/src/hal/pio/assembler/comparison_tests/apa102.pio.h | 1 | // -------------------------------------------------- // | COMMENT |
| LOW | …c/hal/pio/assembler/comparison_tests/nec_receive.pio.h | 1 | // -------------------------------------------------- // | COMMENT |
| LOW | …c/hal/pio/assembler/comparison_tests/nec_receive.pio.h | 61 | // join the FIFOs to make a single large receive FIFO | COMMENT |
| LOW | …rc/hal/pio/assembler/comparison_tests/st7789_lcd.pio.h | 1 | // -------------------------------------------------- // | COMMENT |
| LOW | …xxx/src/hal/pio/assembler/comparison_tests/blink.pio.h | 1 | // -------------------------------------------------- // | COMMENT |
| LOW | …x/src/hal/pio/assembler/comparison_tests/uart_tx.pio.h | 1 | // -------------------------------------------------- // | COMMENT |
| LOW | …xxx/src/hal/pio/assembler/comparison_tests/hello.pio.h | 1 | // -------------------------------------------------- // | COMMENT |
| LOW | …p2xxx/src/hal/pio/assembler/comparison_tests/i2c.pio.h | 1 | // -------------------------------------------------- // | COMMENT |
| LOW | …p2xxx/src/hal/pio/assembler/comparison_tests/spi.pio.h | 1 | // -------------------------------------------------- // | COMMENT |
| LOW | …raspberrypi/rp2xxx/src/bootroms/RP2040/shared/m0plus.h | 1 | /** | COMMENT |
| LOW | …raspberrypi/rp2xxx/src/bootroms/RP2040/shared/m0plus.h | 21 | // ----------------------------------------------------------------------------- | COMMENT |
| LOW | …raspberrypi/rp2xxx/src/bootroms/RP2040/shared/m0plus.h | 41 | #define M0PLUS_SYST_CSR_CLKSOURCE_ACCESS "RW" | COMMENT |
| LOW | …raspberrypi/rp2xxx/src/bootroms/RP2040/shared/m0plus.h | 61 | #define M0PLUS_SYST_CSR_ENABLE_MSB _u(0) | COMMENT |
| LOW | …raspberrypi/rp2xxx/src/bootroms/RP2040/shared/m0plus.h | 81 | // Description : Value to load into the SysTick Current Value Register when the | COMMENT |
| LOW | …raspberrypi/rp2xxx/src/bootroms/RP2040/shared/m0plus.h | 101 | // COUNTFLAG bit of the SysTick Control and Status Register. | COMMENT |
| LOW | …raspberrypi/rp2xxx/src/bootroms/RP2040/shared/m0plus.h | 121 | #define M0PLUS_SYST_CALIB_NOREF_MSB _u(31) | COMMENT |
| LOW | …raspberrypi/rp2xxx/src/bootroms/RP2040/shared/m0plus.h | 141 | #define M0PLUS_SYST_CALIB_TENMS_LSB _u(0) | COMMENT |
| LOW | …raspberrypi/rp2xxx/src/bootroms/RP2040/shared/m0plus.h | 161 | // Read: | COMMENT |
| LOW | …raspberrypi/rp2xxx/src/bootroms/RP2040/shared/m0plus.h | 181 | // 1 = Disable interrupt. | COMMENT |
| LOW | …raspberrypi/rp2xxx/src/bootroms/RP2040/shared/m0plus.h | 201 | // 0 = No effect. | COMMENT |
| LOW | …raspberrypi/rp2xxx/src/bootroms/RP2040/shared/m0plus.h | 221 | #define M0PLUS_NVIC_ICPR_BITS _u(0xffffffff) | COMMENT |
| LOW | …raspberrypi/rp2xxx/src/bootroms/RP2040/shared/m0plus.h | 241 | // priority, and 3 is the lowest. | COMMENT |
| LOW | …raspberrypi/rp2xxx/src/bootroms/RP2040/shared/m0plus.h | 261 | #define M0PLUS_NVIC_IPR0_IP_2_MSB _u(23) | COMMENT |
| LOW | …raspberrypi/rp2xxx/src/bootroms/RP2040/shared/m0plus.h | 281 | // Register : M0PLUS_NVIC_IPR1 | COMMENT |
| LOW | …raspberrypi/rp2xxx/src/bootroms/RP2040/shared/m0plus.h | 301 | #define M0PLUS_NVIC_IPR1_IP_6_MSB _u(23) | COMMENT |
| LOW | …raspberrypi/rp2xxx/src/bootroms/RP2040/shared/m0plus.h | 321 | // Register : M0PLUS_NVIC_IPR2 | COMMENT |
| LOW | …raspberrypi/rp2xxx/src/bootroms/RP2040/shared/m0plus.h | 341 | #define M0PLUS_NVIC_IPR2_IP_10_MSB _u(23) | COMMENT |
| LOW | …raspberrypi/rp2xxx/src/bootroms/RP2040/shared/m0plus.h | 361 | // Register : M0PLUS_NVIC_IPR3 | COMMENT |
| LOW | …raspberrypi/rp2xxx/src/bootroms/RP2040/shared/m0plus.h | 381 | #define M0PLUS_NVIC_IPR3_IP_14_MSB _u(23) | COMMENT |
| LOW | …raspberrypi/rp2xxx/src/bootroms/RP2040/shared/m0plus.h | 401 | // Register : M0PLUS_NVIC_IPR4 | COMMENT |
| LOW | …raspberrypi/rp2xxx/src/bootroms/RP2040/shared/m0plus.h | 421 | #define M0PLUS_NVIC_IPR4_IP_18_MSB _u(23) | COMMENT |
| LOW | …raspberrypi/rp2xxx/src/bootroms/RP2040/shared/m0plus.h | 441 | // Register : M0PLUS_NVIC_IPR5 | COMMENT |
| LOW | …raspberrypi/rp2xxx/src/bootroms/RP2040/shared/m0plus.h | 461 | #define M0PLUS_NVIC_IPR5_IP_22_MSB _u(23) | COMMENT |
| LOW | …raspberrypi/rp2xxx/src/bootroms/RP2040/shared/m0plus.h | 481 | // Register : M0PLUS_NVIC_IPR6 | COMMENT |
| LOW | …raspberrypi/rp2xxx/src/bootroms/RP2040/shared/m0plus.h | 501 | #define M0PLUS_NVIC_IPR6_IP_26_MSB _u(23) | COMMENT |
| 133 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | modules/freertos/src/picosdk_stubs.c | 12 | // ── IRQ / Panic ───────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | modules/freertos/src/picosdk_stubs.c | 27 | // ── Multicore (no-ops for single-core FreeRTOS) ───────────────────────── | COMMENT |
| MEDIUM | modules/freertos/src/picosdk_stubs.c | 48 | // ── Clocks ────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | modules/freertos/src/picosdk_stubs.c | 63 | // ── Spinlocks ─────────────────────────────────────────────────────────── | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | scripts/usb/device_loopback.py | 68 | except usb.core.USBTimeoutError: | CODE |
| HIGH | scripts/usb/device_loopback.py | 34 | except: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM⚡ | .github/workflows/publish-github-pages.yml | 34 | # Create an array to store releases with the artifact | COMMENT |
| MEDIUM⚡ | .github/workflows/publish-github-pages.yml | 43 | # Create the target directory if it doesn't exist | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | .github/workflows/publish-github-pages.yml | 49 | # Check if the tarball was downloaded and unpack it | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | modules/foundation-libc/include/foundation/libc.h | 30 | /// NOTE: This function must never return, because otherwise, the undefined | COMMENT |