An open source cross-platform USB stack for embedded system
This report presents the forensic synthetic code analysis of hathach/tinyusb, a C project with 6,973 GitHub stars. SynthScan v2.0 examined 319,530 lines of code across 1576 source files, recording 3027 pattern matches distributed across 16 syntactic categories. The overall adjusted score of 9.0 places this repository in the Low AI signal band.
The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).
This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.
Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.
This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.
The scanner identified 3027 distinct pattern matches across 16 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. 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 diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | .pre-commit-config.yaml | 41 | types_or: [c, header] | COMMENT |
| LOW | hw/bsp/ansi_escape.h | 41 | COMMENT | |
| LOW | hw/bsp/ansi_escape.h | 61 | /** @} */ | COMMENT |
| LOW | hw/bsp/ansi_escape.h | 81 | #define ANSI_BG_RED CSI_SGR(41) | COMMENT |
| LOW | hw/bsp/board.c | 21 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | COMMENT |
| LOW | hw/bsp/board_api.h | 41 | COMMENT | |
| LOW | hw/bsp/board_api.h | 61 | COMMENT | |
| LOW | hw/bsp/stm32wba/stm32wbaxx_hal_conf.h | 41 | // #define HAL_CRYP_MODULE_ENABLED | COMMENT |
| LOW | hw/bsp/stm32wba/stm32wbaxx_hal_conf.h | 61 | // #define HAL_RTC_MODULE_ENABLED | COMMENT |
| LOW | hw/bsp/stm32wba/stm32wbaxx_hal_conf.h | 101 | #endif /* LSI_VALUE */ /*!< Value of the Internal Low Speed oscillator in Hz | COMMENT |
| LOW | hw/bsp/stm32wba/stm32wbaxx_hal_conf.h | 161 | #define USE_HAL_ADC_REGISTER_CALLBACKS 0U /* ADC register callback disabled */ | COMMENT |
| LOW | hw/bsp/stm32wba/stm32wbaxx_hal_conf.h | 201 | COMMENT | |
| LOW | hw/bsp/stm32wba/stm32wbaxx_hal_conf.h | 221 | COMMENT | |
| LOW | hw/bsp/stm32wba/stm32wbaxx_hal_conf.h | 241 | COMMENT | |
| LOW | hw/bsp/stm32wba/stm32wbaxx_hal_conf.h | 261 | COMMENT | |
| LOW | hw/bsp/stm32wba/stm32wbaxx_hal_conf.h | 281 | COMMENT | |
| LOW | hw/bsp/stm32wba/stm32wbaxx_hal_conf.h | 301 | COMMENT | |
| LOW | hw/bsp/stm32wba/stm32wbaxx_hal_conf.h | 321 | COMMENT | |
| LOW | hw/bsp/stm32wba/boards/stm32wba_nucleo/board.h | 41 | #define LED_PIN GPIO_PIN_8 | COMMENT |
| LOW | hw/bsp/stm32wba/boards/stm32wba_nucleo/board.h | 61 | // These pints are only used for USB and must be in analog mode when not used. | COMMENT |
| LOW | hw/bsp/stm32wba/FreeRTOSConfig/FreeRTOSConfig.h | 41 | * | COMMENT |
| LOW | hw/bsp/stm32wba/FreeRTOSConfig/FreeRTOSConfig.h | 61 | #define configUSE_PORT_OPTIMISED_TASK_SELECTION 0 | COMMENT |
| LOW | hw/bsp/stm32wba/FreeRTOSConfig/FreeRTOSConfig.h | 81 | #define configSUPPORT_DYNAMIC_ALLOCATION 0 | COMMENT |
| LOW | hw/bsp/stm32wba/FreeRTOSConfig/FreeRTOSConfig.h | 101 | #define configUSE_TIMERS 1 | COMMENT |
| LOW | hw/bsp/stm32wba/FreeRTOSConfig/FreeRTOSConfig.h | 121 | #define INCLUDE_xEventGroupSetBitFromISR 0 | COMMENT |
| LOW | hw/bsp/msp432e4/FreeRTOSConfig/FreeRTOSConfig.h | 41 | * | COMMENT |
| LOW | hw/bsp/msp432e4/FreeRTOSConfig/FreeRTOSConfig.h | 61 | #define configMINIMAL_STACK_SIZE ( 128 ) | COMMENT |
| LOW | hw/bsp/msp432e4/FreeRTOSConfig/FreeRTOSConfig.h | 81 | #define configUSE_TICK_HOOK 0 | COMMENT |
| LOW | hw/bsp/msp432e4/FreeRTOSConfig/FreeRTOSConfig.h | 101 | COMMENT | |
| LOW | hw/bsp/mm32/boards/mm32f327x_mb39/board.h | 1 | /* metadata: | COMMENT |
| LOW | hw/bsp/mm32/boards/mm32f327x_mb39/board.h | 21 | #define UART_TX_PIN 9 | COMMENT |
| LOW | hw/bsp/mm32/FreeRTOSConfig/FreeRTOSConfig.h | 41 | * | COMMENT |
| LOW | hw/bsp/mm32/FreeRTOSConfig/FreeRTOSConfig.h | 61 | #define configMAX_PRIORITIES ( 5 ) | COMMENT |
| LOW | hw/bsp/mm32/FreeRTOSConfig/FreeRTOSConfig.h | 81 | #define configUSE_IDLE_HOOK 0 | COMMENT |
| LOW | hw/bsp/mm32/FreeRTOSConfig/FreeRTOSConfig.h | 101 | #define configTIMER_TASK_STACK_DEPTH configMINIMAL_STACK_SIZE | COMMENT |
| LOW | hw/bsp/rp2040/family.c | 41 | COMMENT | |
| LOW | hw/bsp/rp2040/family.c | 61 | #endif | COMMENT |
| LOW | hw/bsp/rp2040/family.c | 81 | //--------------------------------------------------------------------+ | COMMENT |
| LOW | hw/bsp/rp2040/family.c | 161 | //--------------------------------------------------------------------+ | COMMENT |
| LOW | hw/bsp/rp2040/family.c | 201 | #ifdef UART_DEV | COMMENT |
| LOW | hw/bsp/rp2040/boards/raspberry_pi_pico_w/board.h | 41 | //--------------------------------------------------------------------+ | COMMENT |
| LOW | hw/bsp/rp2040/boards/raspberry_pi_pico_w/board.h | 61 | #define MAX3421_MISO_PIN PICO_DEFAULT_SPI_RX_PIN | COMMENT |
| LOW | hw/bsp/rp2040/boards/feather_rp2040_max3421/board.h | 41 | #define PICO_DEFAULT_PIO_USB_VBUSEN_PIN 18 | COMMENT |
| LOW | hw/bsp/rp2040/boards/raspberry_pi_pico/board.h | 41 | //--------------------------------------------------------------------+ | COMMENT |
| LOW | hw/bsp/rp2040/boards/raspberry_pi_pico/board.h | 61 | #define MAX3421_MISO_PIN PICO_DEFAULT_SPI_RX_PIN | COMMENT |
| LOW | …0/boards/adafruit_metro_rp2350/adafruit_metro_rp2350.h | 21 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | COMMENT |
| LOW | …0/boards/adafruit_metro_rp2350/adafruit_metro_rp2350.h | 41 | #endif | COMMENT |
| LOW | …0/boards/adafruit_metro_rp2350/adafruit_metro_rp2350.h | 61 | #ifndef PICO_DEFAULT_LED_PIN | COMMENT |
| LOW | …0/boards/adafruit_metro_rp2350/adafruit_metro_rp2350.h | 81 | #ifndef PICO_DEFAULT_SPI | COMMENT |
| LOW | …0/boards/adafruit_metro_rp2350/adafruit_metro_rp2350.h | 101 | #endif | COMMENT |
| LOW | hw/bsp/rp2040/boards/adafruit_metro_rp2350/board.h | 41 | //--------------------------------------------------------------------+ | COMMENT |
| LOW | …/rp2040/boards/adafruit_fruit_jam/adafruit_fruit_jam.h | 21 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | COMMENT |
| LOW | …/rp2040/boards/adafruit_fruit_jam/adafruit_fruit_jam.h | 41 | #endif | COMMENT |
| LOW | …/rp2040/boards/adafruit_fruit_jam/adafruit_fruit_jam.h | 61 | #ifndef PICO_DEFAULT_LED_PIN | COMMENT |
| LOW | …/rp2040/boards/adafruit_fruit_jam/adafruit_fruit_jam.h | 81 | #ifndef PICO_DEFAULT_SPI | COMMENT |
| LOW | …/rp2040/boards/adafruit_fruit_jam/adafruit_fruit_jam.h | 101 | #endif | COMMENT |
| LOW | hw/bsp/rp2040/boards/adafruit_fruit_jam/board.h | 41 | //--------------------------------------------------------------------+ | COMMENT |
| LOW | hw/bsp/rp2040/boards/raspberry_pi_pico2/board.h | 41 | //--------------------------------------------------------------------+ | COMMENT |
| LOW | hw/bsp/rp2040/boards/raspberry_pi_pico2/board.h | 61 | #define MAX3421_MISO_PIN PICO_DEFAULT_SPI_RX_PIN | COMMENT |
| LOW | …rp2040/boards/adafruit_feather_rp2040_usb_host/board.h | 41 | //--------------------------------------------------------------------+ | COMMENT |
| 2773 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | tools/build.py | 49 | # ----------------------------- | COMMENT |
| MEDIUM | tools/build.py | 51 | # ----------------------------- | COMMENT |
| MEDIUM | tools/build.py | 106 | # ----------------------------- | COMMENT |
| MEDIUM | tools/build.py | 108 | # ----------------------------- | COMMENT |
| MEDIUM⚡ | tools/build.py | 147 | # ----------------------------- | COMMENT |
| MEDIUM⚡ | tools/build.py | 149 | # ----------------------------- | COMMENT |
| MEDIUM | tools/build.py | 193 | # ----------------------------- | COMMENT |
| MEDIUM | tools/build.py | 195 | # ----------------------------- | COMMENT |
| MEDIUM | tools/build.py | 250 | # ----------------------------- | COMMENT |
| MEDIUM | tools/build.py | 252 | # ----------------------------- | COMMENT |
| MEDIUM | tools/gen_doc.py | 12 | # ----------------------------------------- | COMMENT |
| MEDIUM | tools/gen_doc.py | 14 | # ----------------------------------------- | COMMENT |
| MEDIUM | tools/gen_doc.py | 35 | # ----------------------------------------- | STRING |
| MEDIUM | tools/gen_doc.py | 37 | # ----------------------------------------- | STRING |
| MEDIUM | tools/gen_doc.py | 112 | # ----------------------------------------- | COMMENT |
| MEDIUM | tools/gen_doc.py | 114 | # ----------------------------------------- | COMMENT |
| MEDIUM | test/unit-test/project.yml | 1 | # ========================================================================= | COMMENT |
| MEDIUM | test/unit-test/project.yml | 6 | # ========================================================================= | COMMENT |
| MEDIUM | test/hil/pymtp.py | 43 | # ---------- | COMMENT |
| MEDIUM | test/hil/pymtp.py | 45 | # ---------- | COMMENT |
| MEDIUM⚡ | test/hil/pymtp.py | 91 | # ---------- | COMMENT |
| MEDIUM⚡ | test/hil/pymtp.py | 93 | # ---------- | COMMENT |
| MEDIUM⚡ | test/hil/pymtp.py | 95 | # ---------- | COMMENT |
| MEDIUM⚡ | test/hil/pymtp.py | 97 | # ---------- | COMMENT |
| MEDIUM⚡ | test/hil/pymtp.py | 399 | # ---------- | COMMENT |
| MEDIUM⚡ | test/hil/pymtp.py | 401 | # ---------- | COMMENT |
| MEDIUM⚡ | test/hil/pymtp.py | 403 | # ---------- | COMMENT |
| MEDIUM⚡ | test/hil/pymtp.py | 405 | # ---------- | COMMENT |
| MEDIUM | test/hil/pymtp.py | 430 | # ---------- | COMMENT |
| MEDIUM | test/hil/pymtp.py | 432 | # ---------- | COMMENT |
| MEDIUM⚡ | test/hil/hil_test.py | 582 | # ------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | test/hil/hil_test.py | 584 | # ------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | test/hil/hil_test.py | 890 | # ------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | test/hil/hil_test.py | 892 | # ------------------------------------------------------------- | COMMENT |
| MEDIUM | test/hil/hil_test.py | 371 | # ------------------------------------------------------------- | COMMENT |
| MEDIUM | test/hil/hil_test.py | 373 | # ------------------------------------------------------------- | COMMENT |
| MEDIUM | test/hil/hil_test.py | 629 | # ------------------------------------------------------------- | COMMENT |
| MEDIUM | test/hil/hil_test.py | 631 | # ------------------------------------------------------------- | COMMENT |
| MEDIUM | test/hil/hil_test.py | 1527 | # ------------------------------------------------------------- | COMMENT |
| MEDIUM | test/hil/hil_test.py | 1529 | # ------------------------------------------------------------- | COMMENT |
| MEDIUM | test/hil/hil_test.py | 229 | # ------------------------------------------------------------- | STRING |
| MEDIUM | test/hil/hil_test.py | 231 | # ------------------------------------------------------------- | STRING |
| MEDIUM | .github/workflows/pr_comment.yml | 73 | # --------------------------------------- | COMMENT |
| MEDIUM | .github/workflows/pr_comment.yml | 78 | # --------------------------------------- | COMMENT |
| MEDIUM | .github/workflows/build.yml | 68 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM | .github/workflows/build.yml | 72 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM | .github/workflows/build.yml | 190 | # --------------------------------------- | COMMENT |
| MEDIUM | .github/workflows/build.yml | 195 | # --------------------------------------- | COMMENT |
| MEDIUM | .github/workflows/build.yml | 220 | # --------------------------------------- | COMMENT |
| MEDIUM | .github/workflows/build.yml | 222 | # --------------------------------------- | COMMENT |
| MEDIUM | .github/workflows/build.yml | 239 | # --------------------------------------- | COMMENT |
| MEDIUM | .github/workflows/build.yml | 241 | # --------------------------------------- | COMMENT |
| MEDIUM | .github/workflows/build.yml | 263 | # --------------------------------------- | COMMENT |
| MEDIUM | .github/workflows/build.yml | 266 | # --------------------------------------- | COMMENT |
| MEDIUM | .github/workflows/build.yml | 284 | # --------------------------------------- | COMMENT |
| MEDIUM | .github/workflows/build.yml | 287 | # --------------------------------------- | COMMENT |
| MEDIUM | .github/workflows/build.yml | 355 | # --------------------------------------- | COMMENT |
| MEDIUM | .github/workflows/build.yml | 359 | # --------------------------------------- | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | test/hil/hil_test.py | 585 | def test_dual_host_info_to_device_cdc(board): | CODE |
| LOW⚡ | test/hil/hil_test.py | 886 | def test_host_msc_file_explorer_freertos(board): | CODE |
| LOW⚡ | test/hil/hil_test.py | 898 | def test_device_cdc_dual_ports(board): | CODE |
| LOW | test/hil/hil_test.py | 802 | def test_host_msc_file_explorer(board): | CODE |
| LOW | test/hil/hil_test.py | 966 | def test_device_cdc_msc_freertos(board): | CODE |
| LOW | test/hil/hil_test.py | 970 | def test_device_cdc_msc_throughput(board): | CODE |
| LOW | test/hil/hil_test.py | 1101 | def test_device_hid_boot_interface(board): | CODE |
| LOW | test/hil/hil_test.py | 1117 | def test_device_hid_composite_freertos(id): | CODE |
| LOW | test/hil/hil_test.py | 1122 | def test_device_printer_to_cdc(board): | CODE |
| LOW | test/hil/hil_test.py | 1292 | def test_device_net_lwip_webserver(board): | CODE |
| LOW | test/hil/hil_test.py | 1421 | def test_device_audio_test_freertos(board): | CODE |
| LOW | test/hil/hil_test.py | 1490 | def test_device_hid_generic_inout(board): | CODE |
| LOW | examples/device/audio_test/src/plot_audio_samples.py | 9 | def find_windows_input_device(name_hint, channels, preferred_apis=None): | CODE |
| LOW | …s/device/audio_4_channel_mic/src/plot_audio_samples.py | 8 | def find_windows_input_device(name_hint, channels, preferred_apis=None): | CODE |
| LOW | …s/device/audio_test_freertos/src/plot_audio_samples.py | 8 | def find_windows_input_device(name_hint, channels, preferred_apis=None): | CODE |
| LOW | …device/audio_test_multi_rate/src/plot_audio_samples.py | 9 | def find_windows_input_device(name_hint, channels, preferred_apis=None): | CODE |
| LOW | …audio_4_channel_mic_freertos/src/plot_audio_samples.py | 8 | def find_windows_input_device(name_hint, channels, preferred_apis=None): | CODE |
| LOW⚡ | src/class/video/video.h | 204 | typedef tusb_desc_video_control_header_nitf_t() tusb_desc_video_control_header_t; //-V2586 incorrectly detected as flex | CODE |
| LOW⚡ | src/class/video/video.h | 205 | typedef tusb_desc_video_control_header_nitf_t(1) tusb_desc_video_control_header_1itf_t; //-V2586 incorrectly detected as | CODE |
| LOW⚡ | src/class/video/video.h | 206 | typedef tusb_desc_video_control_header_nitf_t(2) tusb_desc_video_control_header_2itf_t; //-V2586 incorrectly detected as | CODE |
| LOW⚡ | src/class/video/video.h | 207 | typedef tusb_desc_video_control_header_nitf_t(3) tusb_desc_video_control_header_3itf_t; //-V2586 incorrectly detected as | CODE |
| LOW⚡ | src/class/video/video.h | 208 | typedef tusb_desc_video_control_header_nitf_t(4) tusb_desc_video_control_header_4itf_t; //-V2586 incorrectly detected as | CODE |
| LOW⚡ | src/class/video/video.h | 275 | typedef tusb_desc_video_streaming_input_header_nbyte_t() tusb_desc_video_streaming_input_header_t; | CODE |
| LOW⚡ | src/class/video/video.h | 276 | typedef tusb_desc_video_streaming_input_header_nbyte_t(1) tusb_desc_video_streaming_input_header_1byte_t; | CODE |
| LOW⚡ | src/class/video/video.h | 277 | typedef tusb_desc_video_streaming_input_header_nbyte_t(2) tusb_desc_video_streaming_input_header_2byte_t; | CODE |
| LOW⚡ | src/class/video/video.h | 278 | typedef tusb_desc_video_streaming_input_header_nbyte_t(3) tusb_desc_video_streaming_input_header_3byte_t; | CODE |
| LOW⚡ | src/class/video/video.h | 279 | typedef tusb_desc_video_streaming_input_header_nbyte_t(4) tusb_desc_video_streaming_input_header_4byte_t; | CODE |
| LOW⚡ | src/class/video/video.h | 374 | typedef tusb_desc_video_frame_uncompressed_nint_t() tusb_desc_video_frame_uncompressed_t; | CODE |
| LOW⚡ | src/class/video/video.h | 375 | typedef tusb_desc_video_frame_uncompressed_nint_t(1) tusb_desc_video_frame_uncompressed_1int_t; | CODE |
| LOW⚡ | src/class/video/video.h | 376 | typedef tusb_desc_video_frame_uncompressed_nint_t(2) tusb_desc_video_frame_uncompressed_2int_t; | CODE |
| LOW⚡ | src/class/video/video.h | 377 | typedef tusb_desc_video_frame_uncompressed_nint_t(3) tusb_desc_video_frame_uncompressed_3int_t; | CODE |
| LOW⚡ | src/class/video/video.h | 378 | typedef tusb_desc_video_frame_uncompressed_nint_t(4) tusb_desc_video_frame_uncompressed_4int_t; | CODE |
| LOW | src/class/midi/midi.h | 164 | typedef midi_desc_cs_endpoint_n_t() midi_desc_cs_endpoint_t; // empty/flexible jack list | CODE |
| LOW | src/class/midi/midi.h | 165 | typedef midi_desc_cs_endpoint_n_t(1) midi_desc_cs_endpoint_1jack_t; | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | examples/device/audio_test/src/plot_audio_samples.py | 0 | pick a windows input device index from query_devices() output. | STRING |
| HIGH | …s/device/audio_4_channel_mic/src/plot_audio_samples.py | 0 | pick a windows input device index from query_devices() output. | STRING |
| HIGH | …s/device/audio_test_freertos/src/plot_audio_samples.py | 0 | pick a windows input device index from query_devices() output. | STRING |
| HIGH | …device/audio_test_multi_rate/src/plot_audio_samples.py | 0 | pick a windows input device index from query_devices() output. | STRING |
| HIGH | …audio_4_channel_mic_freertos/src/plot_audio_samples.py | 0 | pick a windows input device index from query_devices() output. | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tools/build.py | 84 | CODE | |
| LOW | tools/build.py | 109 | CODE | |
| LOW | tools/metrics.py | 86 | CODE | |
| LOW | tools/metrics.py | 135 | CODE | |
| LOW | tools/iar_gen.py | 8 | CODE | |
| LOW | tools/gen_presets.py | 6 | CODE | |
| LOW | tools/get_deps.py | 372 | CODE | |
| LOW | tools/metrics_compare_base.py | 156 | CODE | |
| LOW | tools/gen_doc.py | 38 | CODE | |
| LOW | tools/gen_doc.py | 58 | CODE | |
| LOW | hw/mcu/sony/cxd56/tools/flash_writer.py | 143 | CODE | |
| LOW | hw/mcu/sony/cxd56/tools/flash_writer.py | 237 | CODE | |
| LOW | hw/mcu/sony/cxd56/tools/xmodem.py | 211 | CODE | |
| LOW | hw/mcu/sony/cxd56/tools/xmodem.py | 370 | CODE | |
| LOW | test/hil/pymtp.py | 465 | CODE | |
| LOW | test/hil/pymtp.py | 824 | CODE | |
| LOW | test/hil/pymtp.py | 1163 | CODE | |
| LOW | test/hil/hil_ci_set_matrix.py | 17 | CODE | |
| LOW | test/hil/board_lock.py | 151 | CODE | |
| LOW | test/hil/hil_test.py | 326 | CODE | |
| LOW | test/hil/hil_test.py | 681 | CODE | |
| LOW | test/hil/hil_test.py | 1122 | CODE | |
| LOW | test/hil/hil_test.py | 1365 | CODE | |
| LOW | test/hil/hil_test.py | 1580 | CODE | |
| LOW | test/hil/hil_test.py | 1703 | CODE | |
| LOW | test/hil/hil_test.py | 1833 | CODE | |
| LOW | test/hil/hil_test.py | 1191 | CODE | |
| LOW | src/portable/synopsys/dwc2/dwc2_info.py | 166 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | tools/metrics_compare_base.py | 214 | # Step 1: Create worktree for base branch | COMMENT |
| LOW⚡ | tools/metrics_compare_base.py | 263 | # Step 4: Generate metrics | COMMENT |
| LOW⚡ | tools/metrics_compare_base.py | 272 | # Step 5: Compare | COMMENT |
| LOW⚡ | src/portable/synopsys/dwc2/dwc2_nrf.h | 50 | // Step 1: Power up core only (PHY not yet) | COMMENT |
| LOW⚡ | src/portable/synopsys/dwc2/dwc2_nrf.h | 53 | // Step 2: Override ID=Device (bit 31), and temporarily override VBUSVALID | COMMENT |
| LOW⚡ | src/portable/synopsys/dwc2/dwc2_nrf.h | 57 | // Step 3: Release PHY power-on reset by enabling PHY | COMMENT |
| LOW⚡ | src/portable/synopsys/dwc2/dwc2_nrf.h | 60 | // Step 4: Wait 45us for PHY clock to start | COMMENT |
| LOW⚡ | src/portable/synopsys/dwc2/dwc2_nrf.h | 63 | // Step 5: Release DWC2 reset | COMMENT |
| LOW⚡ | src/portable/synopsys/dwc2/dwc2_nrf.h | 66 | // Step 6: Wait for clock to start to avoid hang on too early register read | COMMENT |
| LOW⚡ | src/portable/synopsys/dwc2/dwc2_nrf.h | 69 | // Step 7: Clear VBUSVALID override (keep ID=Device override) | COMMENT |
| LOW | src/class/cdc/cdc_host.h | 83 | // NOTE: This function does not make any USB transfer request to device. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | tools/metrics_compare_base.py | 214 | # Step 1: Create worktree for base branch | COMMENT |
| LOW⚡ | tools/metrics_compare_base.py | 263 | # Step 4: Generate metrics | COMMENT |
| LOW⚡ | tools/metrics_compare_base.py | 272 | # Step 5: Compare | COMMENT |
| LOW⚡ | src/portable/synopsys/dwc2/dwc2_nrf.h | 50 | // Step 1: Power up core only (PHY not yet) | COMMENT |
| LOW⚡ | src/portable/synopsys/dwc2/dwc2_nrf.h | 53 | // Step 2: Override ID=Device (bit 31), and temporarily override VBUSVALID | COMMENT |
| LOW⚡ | src/portable/synopsys/dwc2/dwc2_nrf.h | 57 | // Step 3: Release PHY power-on reset by enabling PHY | COMMENT |
| LOW⚡ | src/portable/synopsys/dwc2/dwc2_nrf.h | 60 | // Step 4: Wait 45us for PHY clock to start | COMMENT |
| LOW⚡ | src/portable/synopsys/dwc2/dwc2_nrf.h | 63 | // Step 5: Release DWC2 reset | COMMENT |
| LOW⚡ | src/portable/synopsys/dwc2/dwc2_nrf.h | 66 | // Step 6: Wait for clock to start to avoid hang on too early register read | COMMENT |
| LOW⚡ | src/portable/synopsys/dwc2/dwc2_nrf.h | 69 | // Step 7: Clear VBUSVALID override (keep ID=Device override) | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tools/gen_presets.py | 4 | CODE | |
| LOW | tools/file2carray.py | 3 | CODE | |
| LOW | tools/file2carray.py | 6 | CODE | |
| LOW | tools/file2carray.py | 7 | CODE | |
| LOW | tools/file2carray.py | 8 | CODE | |
| LOW | tools/file2carray.py | 9 | CODE | |
| LOW | tools/file2carray.py | 10 | CODE | |
| LOW | hw/mcu/sony/cxd56/tools/flash_writer.py | 36 | CODE | |
| LOW | hw/mcu/sony/cxd56/tools/flash_writer.py | 37 | CODE | |
| LOW | hw/mcu/sony/cxd56/tools/flash_writer.py | 38 | CODE | |
| LOW | hw/mcu/sony/cxd56/tools/flash_writer.py | 42 | CODE | |
| LOW | hw/mcu/sony/cxd56/tools/xmodem.py | 576 | CODE | |
| LOW | examples/device/audio_test/src/plot_audio_samples.py | 6 | CODE | |
| LOW | …device/audio_test_multi_rate/src/plot_audio_samples.py | 6 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | tools/build.py | 151 | # Check if board is skipped | COMMENT |
| LOW | tools/get_deps.py | 343 | # Check if commit is already fetched | COMMENT |
| LOW | tools/make_release.py | 21 | # Write the file out again | COMMENT |
| LOW | test/hil/pymtp.py | 1185 | # Check if this ID exists, if not, add it | COMMENT |
| LOW | test/hil/pymtp.py | 1228 | ## Check if this folder is in the dict | COMMENT |
| LOW | .github/workflows/build.yml | 16 | # Check if the code changes and we need to run ci build | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tools/metrics.py | 128 | except Exception as e: # pragma: no cover - defensive | CODE |
| MEDIUM⚡ | tools/metrics_compare_base.py | 224 | print(f'Error creating worktree: {ret.stderr}') | CODE |
| LOW | hw/mcu/sony/cxd56/tools/flash_writer.py | 223 | except Exception as e: | CODE |
| LOW | hw/mcu/sony/cxd56/tools/flash_writer.py | 308 | except Exception as e: | CODE |
| MEDIUM | test/hil/hil_test.py | 1191 | def lp_reader(): | CODE |
| LOW | test/hil/hil_test.py | 1205 | except Exception as e: | CODE |
| LOW | test/hil/hil_test.py | 1635 | except Exception as e: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | examples/device/uac2_speaker_fb/src/audio_debug.py | 40 | # This function is called periodically from FuncAnimation | COMMENT |
| MEDIUM | src/portable/synopsys/dwc2/dwc2_info.py | 172 | # Create an empty list to hold the dictionaries | COMMENT |
| MEDIUM | src/portable/synopsys/dwc2/dwc2_info.py | 202 | # Create a Pandas DataFrame from the list of dictionaries | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | test/hil/hil_test.py | 447 | CODE | |
| LOW | test/hil/hil_test.py | 462 | CODE | |
| LOW | test/hil/hil_test.py | 474 | CODE | |
| LOW | test/hil/hil_test.py | 481 | CODE | |
| LOW | test/hil/hil_test.py | 493 | CODE | |
| LOW | test/hil/hil_test.py | 504 | CODE | |
| LOW | test/hil/hil_test.py | 513 | CODE | |
| LOW | test/hil/hil_test.py | 522 | CODE | |
| LOW | test/hil/hil_test.py | 529 | CODE | |
| LOW | test/hil/hil_test.py | 536 | CODE | |
| LOW | test/hil/hil_test.py | 550 | CODE | |
| LOW | test/hil/hil_test.py | 561 | CODE | |
| LOW | test/hil/hil_test.py | 573 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | docs/superpowers/plans/2026-07-09-smoke-results.md | 1 | # Smoke Test Results — multi-agent dev/test harness | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | src/portable/st/stm32_fsdev/hcd_stm32_fsdev.c | 438 | // TODO: Handle error | COMMENT |
| LOW | src/osal/osal_rtx4.h | 103 | // TODO: implement | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | .claude/skills/pvs/run_pvs.sh | 9 | # Usage: | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | test/hil/hil_test.py | 243 | # just use id: mostly for cp210x/ftdi flasher | STRING |