Repository Analysis

hathach/tinyusb

An open source cross-platform USB stack for embedded system

10.1 Low AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of hathach/tinyusb, a C project with 7,065 GitHub stars. SynthScan v2.0 examined 355,965 lines of code across 1659 source files, recording 3797 pattern matches distributed across 18 syntactic categories. The overall adjusted score of 10.1 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).

10.1
Adjusted Score
10.1
Raw Score
100%
Time Factor
2026-08-28
Last Push
7.1K
Stars
C
Language
356.0K
Lines of Code
1.7K
Files
3.8K
Pattern Hits
2026-08-29
Scan Date
0.00
HC Hit Rate

What These Metrics Mean

Adjusted Score
Primary synthetic code indicator. Raw score normalised per 1,000 lines of code and multiplied by the temporal discount factor. This is the definitive comparative metric — use it to rank repositories by AI authorship density.
Raw Score
The unmodified sum of all severity-weighted, context-multiplied pattern match scores before temporal discounting. Reflects the absolute signal strength independent of when the repository was last active.
Time Factor
The temporal discount multiplier (0–100%) applied to the raw score. Repositories last updated before ChatGPT's launch (Nov 2022) receive a 5% factor. Full signal is only assigned to repositories active in the post-adoption era (Jan 2024+).
Pattern Hits
Total count of individual pattern matches across all files and categories. A high hit count with a low score may indicate a very large codebase with isolated AI snippets; a low count with a high score indicates dense, concentrated AI signatures.
HC Hit Rate
High+Critical pattern hits per file, averaged across the repository. This orthogonal signal catches repositories where a few files are densely packed with high-severity AI tells — a strong indicator even when the normalised score appears moderate due to codebase size.
Lines of Code / Files
Total lines and files analysed. The scanner examines 94 file extensions. These denominators are used to normalise the score, enabling fair comparison between repositories of vastly different sizes.

Score History

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.

Severity Breakdown

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.

CRITICAL 0HIGH 6MEDIUM 101LOW 3690

Directory Score Breakdown

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.

Pattern Findings

The scanner identified 3797 distinct pattern matches across 18 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.

Over-Commented Block2940 hits · 2581 pts
SeverityFileLineSnippetContext
LOW.pre-commit-config.yaml61 # examples (tusb_config.h, skip/only.txt), hw/mcu, the rig rosters under test/hilCOMMENT
LOW.pre-commit-config.yaml101# for h in $fuzz_harnessCOMMENT
LOWtools/ci_select.py81 - a ValueError, which every `except OSError` fail-open below would let through as aCOMMENT
LOWtools/ci_select.py121 r'tools/(build_doc|check_example_pids|file2carray|gen_doc|gen_presets|iar_gen|'COMMENT
LOWtools/ci_select.py361 isinstance(node.targets[0], ast.Name) andCOMMENT
LOWtools/ci_select.py481 return outCOMMENT
LOWtools/ci_select.py981 print(f'ci_select[build]: {r}', file=sys.stderr)COMMENT
LOWtools/rtt.py461 cmd += ['-c', f'adapter serial {serial_no}']COMMENT
LOWhw/bsp/ansi_escape.h41COMMENT
LOWhw/bsp/ansi_escape.h61/** @} */COMMENT
LOWhw/bsp/ansi_escape.h81#define ANSI_BG_RED CSI_SGR(41)COMMENT
LOWhw/bsp/board.c21 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS INCOMMENT
LOWhw/bsp/board_api.h41COMMENT
LOWhw/bsp/board_api.h61COMMENT
LOWhw/bsp/stm32wba/stm32wbaxx_hal_conf.h41// #define HAL_CRYP_MODULE_ENABLEDCOMMENT
LOWhw/bsp/stm32wba/stm32wbaxx_hal_conf.h61// #define HAL_RTC_MODULE_ENABLEDCOMMENT
LOWhw/bsp/stm32wba/stm32wbaxx_hal_conf.h101#endif /* LSI_VALUE */ /*!< Value of the Internal Low Speed oscillator in HzCOMMENT
LOWhw/bsp/stm32wba/stm32wbaxx_hal_conf.h161#define USE_HAL_ADC_REGISTER_CALLBACKS 0U /* ADC register callback disabled */COMMENT
LOWhw/bsp/stm32wba/stm32wbaxx_hal_conf.h201COMMENT
LOWhw/bsp/stm32wba/stm32wbaxx_hal_conf.h221COMMENT
LOWhw/bsp/stm32wba/stm32wbaxx_hal_conf.h241COMMENT
LOWhw/bsp/stm32wba/stm32wbaxx_hal_conf.h261COMMENT
LOWhw/bsp/stm32wba/stm32wbaxx_hal_conf.h281COMMENT
LOWhw/bsp/stm32wba/stm32wbaxx_hal_conf.h301COMMENT
LOWhw/bsp/stm32wba/stm32wbaxx_hal_conf.h321COMMENT
LOWhw/bsp/stm32wba/boards/stm32wba_nucleo/board.h41#define LED_PIN GPIO_PIN_8COMMENT
LOWhw/bsp/stm32wba/boards/stm32wba_nucleo/board.h61// These pints are only used for USB and must be in analog mode when not used.COMMENT
LOWhw/bsp/stm32wba/FreeRTOSConfig/FreeRTOSConfig.h41 *COMMENT
LOWhw/bsp/stm32wba/FreeRTOSConfig/FreeRTOSConfig.h61#define configUSE_PORT_OPTIMISED_TASK_SELECTION 0COMMENT
LOWhw/bsp/stm32wba/FreeRTOSConfig/FreeRTOSConfig.h81#define configSUPPORT_DYNAMIC_ALLOCATION 0COMMENT
LOWhw/bsp/stm32wba/FreeRTOSConfig/FreeRTOSConfig.h101#define configUSE_TIMERS 1COMMENT
LOWhw/bsp/stm32wba/FreeRTOSConfig/FreeRTOSConfig.h121#define INCLUDE_xEventGroupSetBitFromISR 0COMMENT
LOWhw/bsp/msp432e4/FreeRTOSConfig/FreeRTOSConfig.h41 *COMMENT
LOWhw/bsp/msp432e4/FreeRTOSConfig/FreeRTOSConfig.h61#define configMINIMAL_STACK_SIZE ( 128 )COMMENT
LOWhw/bsp/msp432e4/FreeRTOSConfig/FreeRTOSConfig.h81#define configUSE_TICK_HOOK 0COMMENT
LOWhw/bsp/msp432e4/FreeRTOSConfig/FreeRTOSConfig.h101COMMENT
LOWhw/bsp/mm32/boards/mm32f327x_mb39/board.h1/* metadata:COMMENT
LOWhw/bsp/mm32/boards/mm32f327x_mb39/board.h21#define UART_TX_PIN 9COMMENT
LOWhw/bsp/mm32/FreeRTOSConfig/FreeRTOSConfig.h41 *COMMENT
LOWhw/bsp/mm32/FreeRTOSConfig/FreeRTOSConfig.h61#define configMAX_PRIORITIES ( 5 )COMMENT
LOWhw/bsp/mm32/FreeRTOSConfig/FreeRTOSConfig.h81#define configUSE_IDLE_HOOK 0COMMENT
LOWhw/bsp/mm32/FreeRTOSConfig/FreeRTOSConfig.h101#define configTIMER_TASK_STACK_DEPTH configMINIMAL_STACK_SIZECOMMENT
LOWhw/bsp/rp2040/family.c41COMMENT
LOWhw/bsp/rp2040/family.c61#endifCOMMENT
LOWhw/bsp/rp2040/family.c81//--------------------------------------------------------------------+COMMENT
LOWhw/bsp/rp2040/family.c161#if defined(TRACE_ETM) && defined(PICO_RP2350) && PICO_RP2350 == 1COMMENT
LOWhw/bsp/rp2040/family.c201#if (CFG_TUH_ENABLED && CFG_TUH_RPI_PIO_USB) || (CFG_TUD_ENABLED && CFG_TUD_RPI_PIO_USB)COMMENT
LOWhw/bsp/rp2040/family.c241COMMENT
LOWhw/bsp/rp2040/family.c341 (void) pcTaskName;COMMENT
LOWhw/bsp/rp2040/boards/raspberry_pi_pico_w/board.h41//--------------------------------------------------------------------+COMMENT
LOWhw/bsp/rp2040/boards/raspberry_pi_pico_w/board.h61#define MAX3421_MISO_PIN PICO_DEFAULT_SPI_RX_PINCOMMENT
LOWhw/bsp/rp2040/boards/feather_rp2040_max3421/board.h41#define PICO_DEFAULT_PIO_USB_VBUSEN_PIN 18COMMENT
LOWhw/bsp/rp2040/boards/raspberry_pi_pico/board.h41//--------------------------------------------------------------------+COMMENT
LOWhw/bsp/rp2040/boards/raspberry_pi_pico/board.h61#define MAX3421_MISO_PIN PICO_DEFAULT_SPI_RX_PINCOMMENT
LOW…0/boards/adafruit_metro_rp2350/adafruit_metro_rp2350.h21 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS INCOMMENT
LOW…0/boards/adafruit_metro_rp2350/adafruit_metro_rp2350.h41#endifCOMMENT
LOW…0/boards/adafruit_metro_rp2350/adafruit_metro_rp2350.h61#ifndef PICO_DEFAULT_LED_PINCOMMENT
LOW…0/boards/adafruit_metro_rp2350/adafruit_metro_rp2350.h81#ifndef PICO_DEFAULT_SPICOMMENT
LOW…0/boards/adafruit_metro_rp2350/adafruit_metro_rp2350.h101#endifCOMMENT
LOWhw/bsp/rp2040/boards/adafruit_metro_rp2350/board.h41//--------------------------------------------------------------------+COMMENT
2880 more matches not shown…
Hyper-Verbose Identifiers602 hits · 505 pts
SeverityFileLineSnippetContext
LOWtools/build.py104def resolve_example_target_groups(build_targets, examples, board, extra_defines=()):CODE
LOWtools/ci_select.py385def get_deps_changed_families(base_text: str, head_text: str, repo_root: str):CODE
LOWtools/ci_select.py905def selection_args_by_flasher(sel, rosters):CODE
LOWtools/ci_select.py939def get_deps_families_from_git(base, repo_root):CODE
LOWtest/hil/hil_test.py517def test_dual_host_info_to_device_cdc(board):CODE
LOWtest/hil/hil_test.py825def test_host_msc_file_explorer_freertos(board):CODE
LOWtest/hil/hil_test.py836def test_device_cdc_dual_ports(board):CODE
LOWtest/hil/hil_test.py743def test_host_msc_file_explorer(board):CODE
LOWtest/hil/hil_test.py904def test_device_cdc_msc_freertos(board):CODE
LOWtest/hil/hil_test.py922def test_device_cdc_msc_throughput(board):CODE
LOWtest/hil/hil_test.py1085def test_device_hid_boot_interface(board):CODE
LOWtest/hil/hil_test.py1100def test_device_hid_composite_freertos(id):CODE
LOWtest/hil/hil_test.py1105def test_device_printer_to_cdc(board):CODE
LOWtest/hil/hil_test.py1282def test_device_net_lwip_webserver(board):CODE
LOWtest/hil/hil_test.py1415def test_device_audio_test_freertos(board):CODE
LOWtest/hil/hil_test.py1476def test_device_hid_generic_inout(board):CODE
LOWtest/hil/test/test_ci_metrics.py270 def test_each_sentinel_appears_once_on_a_default_line(self):CODE
LOWtest/hil/test/test_ci_metrics.py277 def test_the_selection_travels_as_a_file(self):CODE
LOWtest/hil/test/test_ci_metrics.py285 def test_the_rewriter_names_the_same_sentinels(self):CODE
LOWtest/hil/test/test_ci_metrics.py292 def test_the_rewrite_precedes_the_scoped_entries(self):CODE
LOWtest/hil/test/test_ci_metrics.py327 def test_no_step_execs_with_the_selection_in_its_environment(self):CODE
LOWtest/hil/test/test_ci_metrics.py333 def test_the_file_is_written_before_its_first_reader(self):CODE
LOWtest/hil/test/test_ci_metrics.py338 def test_pr_derived_env_values_are_character_guarded(self):CODE
LOWtest/hil/test/test_ci_metrics.py497 def test_a_real_family_list_stays_scoped(self):CODE
LOWtest/hil/test/test_ci_metrics.py505 def test_a_regex_metacharacter_in_a_family_name_falls_open(self):CODE
LOWtest/hil/test/test_ci_metrics.py514 def test_membrowse_upload_is_not_scoped_by_the_pr_filter(self):CODE
LOWtest/hil/test/test_ci_metrics.py53 def test_by_example_json_roundtrips_as_combine_input(self):CODE
LOWtest/hil/test/test_ci_metrics.py72 def test_by_example_expansion_is_keyed_on_the_filename(self):CODE
LOWtest/hil/test/test_ci_metrics.py100 def test_intersection_compare(self):CODE
LOWtest/hil/test/test_ci_metrics.py120 def test_a_different_board_of_the_same_family_is_not_compared(self):CODE
LOWtest/hil/test/test_ci_metrics.py141 def test_empty_intersection_writes_note(self):CODE
LOWtest/hil/test/test_ci_metrics.py153 def test_malformed_files_are_skipped_with_stderr_note(self):CODE
LOWtest/hil/test/test_ci_metrics.py184 def test_missing_base_baseline_gets_its_own_note(self):CODE
LOWtest/hil/test/test_ci_metrics.py203 def test_a_partially_malformed_file_contributes_nothing(self):CODE
LOWtest/hil/test/test_ci_metrics.py232 def test_dropped_footer_is_summarised_not_dumped(self):CODE
LOWtest/hil/test/test_ci_metrics.py310 def test_the_selector_gate_runs_both_suites(self):CODE
LOWtest/hil/test/test_ci_metrics.py358 def test_the_guards_accept_what_the_selector_actually_emits(self):CODE
LOWtest/hil/test/test_ci_metrics.py424 def test_an_unusable_selection_is_unusable_for_both_matrices(self):CODE
LOWtest/hil/test/test_ci_metrics.py431 def test_the_build_extras_drop_when_the_matrix_falls_open(self):CODE
LOWtest/hil/test/test_ci_metrics.py482 def test_an_empty_family_list_is_not_treated_as_unusable(self):CODE
LOWtest/hil/test/test_ci_metrics.py530 def test_the_upload_board_can_diverge_from_the_built_board(self):CODE
LOWtest/hil/test/test_hil_report.py34 def test_icon_prefixed_metrics_carry_their_verdict(self):CODE
LOWtest/hil/test/test_hil_report.py39 def test_an_unprefixed_metric_is_a_pass(self):CODE
LOWtest/hil/test/test_hil_report.py45 def test_a_non_string_cell_does_not_raise(self):CODE
LOWtest/hil/test/test_hil_report.py95 def test_table_comes_from_rows(self):CODE
LOWtest/hil/test/test_hil_report.py100 def test_scope_note_appears_above_the_table(self):CODE
LOWtest/hil/test/test_hil_report.py104 def test_banner_outranks_the_scope_note(self):CODE
LOWtest/hil/test/test_hil_report.py114 def test_a_document_with_no_rows_still_renders(self):CODE
LOWtest/hil/test/test_hil_report.py118 def test_a_malformed_row_does_not_raise(self):CODE
LOWtest/hil/test/test_hil_report.py413 def test_a_torn_sidecar_does_not_lose_the_stuck_boards(self):CODE
LOWtest/hil/test/test_hil_report.py422 def test_a_roster_entry_without_a_name_does_not_escape(self):CODE
LOWtest/hil/test/test_hil_report.py432 def test_unwritable_dir_does_not_raise(self):CODE
LOWtest/hil/test/test_hil_report.py471 def test_one_failing_variant_fails_the_board(self):CODE
LOWtest/hil/test/test_hil_report.py479 def test_lock_contention_is_a_field_not_a_prefix(self):CODE
LOWtest/hil/test/test_hil_report.py484 def test_a_board_with_no_row_is_marked_not_run(self):CODE
LOWtest/hil/test/test_hil_report.py490 def test_a_metric_cell_counts_by_its_icon(self):CODE
LOWtest/hil/test/test_hil_report.py496 def test_skipped_cells_do_not_fail_a_board(self):CODE
LOWtest/hil/test/test_hil_report.py500 def test_a_plain_metric_cell_is_a_pass(self):CODE
LOWtest/hil/test/test_hil_report.py508 def test_a_declared_variant_of_another_board_is_not_stolen(self):CODE
LOWtest/hil/test/test_hil_report.py828 def test_every_spelling_argparse_accepts_is_detected(self):CODE
542 more matches not shown…
Decorative Section Separators68 hits · 221 pts
SeverityFileLineSnippetContext
MEDIUMtools/build.py51# -----------------------------COMMENT
MEDIUMtools/build.py53# -----------------------------COMMENT
MEDIUMtools/build.py156# -----------------------------COMMENT
MEDIUMtools/build.py158# -----------------------------COMMENT
MEDIUMtools/build.py229# -----------------------------COMMENT
MEDIUMtools/build.py231# -----------------------------COMMENT
MEDIUMtools/build.py281# -----------------------------COMMENT
MEDIUMtools/build.py283# -----------------------------COMMENT
MEDIUMtools/build.py374# -----------------------------COMMENT
MEDIUMtools/build.py376# -----------------------------COMMENT
MEDIUMtools/ci_select.py993# -------------------------------------------------------------COMMENT
MEDIUMtools/ci_select.py997# -------------------------------------------------------------COMMENT
MEDIUMtools/gen_doc.py13# -----------------------------------------COMMENT
MEDIUMtools/gen_doc.py15# -----------------------------------------COMMENT
MEDIUMtools/gen_doc.py36# -----------------------------------------STRING
MEDIUMtools/gen_doc.py38# -----------------------------------------STRING
MEDIUMtools/gen_doc.py113# -----------------------------------------COMMENT
MEDIUMtools/gen_doc.py115# -----------------------------------------COMMENT
MEDIUMtools/gen_doc.py163# -----------------------------------------COMMENT
MEDIUMtools/gen_doc.py165# -----------------------------------------COMMENT
MEDIUMtest/unit-test/project.yml1# =========================================================================COMMENT
MEDIUMtest/unit-test/project.yml6# =========================================================================COMMENT
MEDIUMtest/hil/pymtp.py43# ----------COMMENT
MEDIUMtest/hil/pymtp.py45# ----------COMMENT
MEDIUMtest/hil/pymtp.py91# ----------COMMENT
MEDIUMtest/hil/pymtp.py93# ----------COMMENT
MEDIUMtest/hil/pymtp.py95# ----------COMMENT
MEDIUMtest/hil/pymtp.py97# ----------COMMENT
MEDIUMtest/hil/pymtp.py399# ----------COMMENT
MEDIUMtest/hil/pymtp.py401# ----------COMMENT
MEDIUMtest/hil/pymtp.py403# ----------COMMENT
MEDIUMtest/hil/pymtp.py405# ----------COMMENT
MEDIUMtest/hil/pymtp.py432# ----------COMMENT
MEDIUMtest/hil/pymtp.py434# ----------COMMENT
MEDIUMtest/hil/hil_flash.py35# -------------------------------------------------------------COMMENT
MEDIUMtest/hil/hil_flash.py37# -------------------------------------------------------------COMMENT
MEDIUMtest/hil/hil_test.py514# -------------------------------------------------------------COMMENT
MEDIUMtest/hil/hil_test.py516# -------------------------------------------------------------COMMENT
MEDIUMtest/hil/hil_test.py829# -------------------------------------------------------------COMMENT
MEDIUMtest/hil/hil_test.py831# -------------------------------------------------------------COMMENT
MEDIUMtest/hil/hil_test.py559# -------------------------------------------------------------COMMENT
MEDIUMtest/hil/hil_test.py561# -------------------------------------------------------------COMMENT
MEDIUMtest/hil/hil_test.py1673# -------------------------------------------------------------COMMENT
MEDIUMtest/hil/hil_test.py1675# -------------------------------------------------------------COMMENT
MEDIUMtest/hil/helper/hil_lock.py162# -------------------------------------------------------------COMMENT
MEDIUMtest/hil/helper/hil_lock.py164# -------------------------------------------------------------COMMENT
MEDIUMtest/hil/helper/hil_util.py22# -------------------------------------------------------------COMMENT
MEDIUMtest/hil/helper/hil_util.py26# -------------------------------------------------------------COMMENT
MEDIUM…superpowers/plans/2026-08-19-ci-build-family-filter.md413# -------------------------------------------------------------COMMENT
MEDIUM…superpowers/plans/2026-08-19-ci-build-family-filter.md417# -------------------------------------------------------------COMMENT
MEDIUM.github/workflows/pr_comment.yml73 # ---------------------------------------COMMENT
MEDIUM.github/workflows/pr_comment.yml78 # ---------------------------------------COMMENT
MEDIUM.github/workflows/build.yml240 # ------------------------------------------------------------------------------COMMENT
MEDIUM.github/workflows/build.yml244 # ------------------------------------------------------------------------------COMMENT
MEDIUM.github/workflows/build.yml411 # ---------------------------------------COMMENT
MEDIUM.github/workflows/build.yml416 # ---------------------------------------COMMENT
MEDIUM.github/workflows/build.yml441 # ---------------------------------------COMMENT
MEDIUM.github/workflows/build.yml443 # ---------------------------------------COMMENT
MEDIUM.github/workflows/build.yml460 # ---------------------------------------COMMENT
MEDIUM.github/workflows/build.yml462 # ---------------------------------------COMMENT
8 more matches not shown…
AI Slop Vocabulary25 hits · 74 pts
SeverityFileLineSnippetContext
MEDIUM.pre-commit-config.yaml54 # (~45s: deliberate hang and timeout simulations) and is scoped to the rig harnessCOMMENT
MEDIUMtools/ci_select.py111 # test/hil/test/ holds the harness's own unit tests, not the harness: nothing onCOMMENT
MEDIUMtools/ci_select.py114 # The harness itself stays under _FULL_RE's test/hil/ prefix.COMMENT
MEDIUMtools/ci_select.py135 # tools/rtt.py is part of the harness, not a standalone tool: hil_util imports itCOMMENT
MEDIUMtools/rtt.py72# whole-call deadline for write() — same env knob as the harness's serial twinCOMMENT
MEDIUMtools/rtt.py220 # stream exactly like an orderly EOF. Raising here raced the harness'sCOMMENT
MEDIUMtest/hil/mtp_test.py6# something the harness can abandon: hil_test.test_device_mtp runs it underCOMMENT
MEDIUMtest/hil/mtp_test.py8# pymtp: nothing here may pull in the harness.COMMENT
MEDIUMtest/hil/hil_test.py308 # RTT route is validated manually on native probes but has no harness backendCOMMENT
MEDIUMtest/hil/hil_test.py329 # drain-stopped meaning as the serial timeout -- a test failure, not a harnessCOMMENT
MEDIUMtest/hil/hil_test.py332 # harness bug must not be reported as this board misbehaving.COMMENT
MEDIUMtest/hil/hil_test.py1262 # the only thing the harness can walk away from.COMMENT
MEDIUMtest/hil/hil_test.py2193 # a live worker after terminate() is what distinguishes a wedge from a harness bug.COMMENT
MEDIUMtest/hil/hil_test.py2195 # including it made n >= 1 always and the harness-error branch unreachable. It is killedCOMMENT
MEDIUMtest/hil/usbtest.py508 # writable, so sudo is the exception, and the harness must never sudo-kill a pidCOMMENT
MEDIUMtest/hil/hil_ci.sh291# the rtt console/capture tool (rtt skill), harness-critical: hil_util imports itCOMMENT
MEDIUMtest/hil/test/test_hil_rtt.py201 # LATCH eof (so the harness's `assert not ser.eof` triage fires) and neverSTRING
MEDIUMtest/hil/test/test_hil_rtt.py276 # unstaged rig tree kills every harness importSTRING
MEDIUMtest/hil/test/test_hil_rtt.py402 # both harness consumers (device_info verdict, pool_check aliveness) judgeSTRING
MEDIUMtest/hil/helper/hil_util.py3# Bottom layer of the HIL harness: the bounded command runner plus the shared helpers andCOMMENT
MEDIUMtest/hil/helper/hil_util.py435# stdlib-only, harness-critical — see its module docstring). Loaded by file path soCOMMENT
MEDIUMtest/hil/helper/hil_util.py437# harness keeps addressing hil_util.JlinkRtt.COMMENT
MEDIUMtest/hil/helper/hil_util.py443 # as a harness bug, when the actual problem is an incompletely staged treeCOMMENT
MEDIUMtest/hil/helper/hil_util.py513 # root child does not. Abandon it and let the report name it; the harness neverCOMMENT
LOWtest/hil/helper/hil_util.py566 # just use id: mostly for cp210x/ftdi flasherCOMMENT
Deep Nesting61 hits · 54 pts
SeverityFileLineSnippetContext
LOWtools/build.py86CODE
LOWtools/build.py159CODE
LOWtools/metrics.py86CODE
LOWtools/metrics.py153CODE
LOWtools/ci_select.py226CODE
LOWtools/ci_select.py385CODE
LOWtools/ci_select.py890CODE
LOWtools/ci_select.py905CODE
LOWtools/ci_select.py1196CODE
LOWtools/iar_gen.py8CODE
LOWtools/gen_presets.py6CODE
LOWtools/get_deps.py381CODE
LOWtools/build_utils.py126CODE
LOWtools/rtt.py563CODE
LOWtools/rtt.py182CODE
LOWtools/rtt.py218CODE
LOWtools/rtt.py325CODE
LOWtools/metrics_compare_base.py156CODE
LOWtools/gen_doc.py39CODE
LOWtools/gen_doc.py59CODE
LOWhw/mcu/sony/cxd56/tools/flash_writer.py143CODE
LOWhw/mcu/sony/cxd56/tools/flash_writer.py237CODE
LOWhw/mcu/sony/cxd56/tools/xmodem.py211CODE
LOWhw/mcu/sony/cxd56/tools/xmodem.py370CODE
LOWtest/hil/pymtp.py465CODE
LOWtest/hil/pymtp.py824CODE
LOWtest/hil/pymtp.py1163CODE
LOWtest/hil/mtp_test.py143CODE
LOWtest/hil/hil_flash.py308CODE
LOWtest/hil/hil_test.py562CODE
LOWtest/hil/hil_test.py628CODE
LOWtest/hil/hil_test.py1678CODE
LOWtest/hil/hil_test.py1909CODE
LOWtest/hil/hil_test.py2354CODE
LOWtest/hil/usbtest.py157CODE
LOWtest/hil/usbtest.py553CODE
LOWtest/hil/test/test_ci_metrics.py530CODE
LOWtest/hil/test/test_hil_bounded.py249CODE
LOWtest/hil/test/test_hil_bounded.py259CODE
LOWtest/hil/test/test_ci_select.py809CODE
LOWtest/hil/test/test_ci_select.py1158CODE
LOWtest/hil/test/test_ci_select.py2210CODE
LOWtest/hil/test/test_ci_select.py2296CODE
LOWtest/hil/test/test_hil_util.py130CODE
LOWtest/hil/helper/hil_lock.py404CODE
LOWtest/hil/helper/hil_lock.py258CODE
LOWtest/hil/helper/hil_health.py206CODE
LOWtest/hil/helper/hil_health.py254CODE
LOWtest/hil/helper/hil_pool_check.py301CODE
LOWtest/hil/helper/hil_pool_check.py354CODE
LOWtest/hil/helper/hil_pool_check.py508CODE
LOWtest/hil/helper/hil_report.py320CODE
LOWtest/hil/helper/hil_report.py493CODE
LOWtest/hil/helper/hil_util.py229CODE
LOW.claude/skills/etm-trace/scripts/etm_capture.py108CODE
LOW.claude/skills/etm-trace/scripts/etm_profile.py27CODE
LOW.claude/skills/etm-trace/scripts/etm_profile.py126CODE
LOW.claude/skills/etm-trace/scripts/etm_profile.py197CODE
LOW.github/scripts/ci_set_matrix.py158CODE
LOW.github/scripts/hil_ci_set_matrix.py21CODE
1 more matches not shown…
Excessive Try-Catch Wrapping36 hits · 33 pts
SeverityFileLineSnippetContext
LOWtools/metrics.py146 except Exception as e: # pragma: no cover - defensiveCODE
MEDIUMtools/metrics_compare_base.py224 print(f'Error creating worktree: {ret.stderr}')CODE
LOWhw/mcu/sony/cxd56/tools/flash_writer.py223 except Exception as e:CODE
LOWhw/mcu/sony/cxd56/tools/flash_writer.py308 except Exception as e:CODE
LOWtest/hil/mtp_test.py171 except Exception as e:CODE
LOWtest/hil/mtp_test.py179 except Exception:CODE
MEDIUMtest/hil/mtp_test.py56def _read():CODE
LOWtest/hil/hil_test.py1739 except Exception as e:CODE
LOWtest/hil/hil_test.py1775 except Exception as e:CODE
LOWtest/hil/hil_test.py2050 except Exception as se: # noqa: BLE001 - never mask the original failureCODE
LOWtest/hil/hil_test.py2301 except Exception as werr: # noqa: BLE001 - it mkdir()s and open()s the very report dirCODE
LOWtest/hil/hil_test.py2313 except Exception as rerr: # noqa: BLE001 - the caller's raise must still happenCODE
LOWtest/hil/hil_test.py2326 except Exception as re2: # noqa: BLE001CODE
LOWtest/hil/hil_test.py2594 except Exception as e:CODE
LOWtest/hil/hil_test.py2628 except Exception as e:CODE
LOWtest/hil/hil_test.py2633 except Exception as e:CODE
LOWtest/hil/hil_test.py2646 except Exception as e:CODE
LOWtest/hil/usbtest.py680 except Exception as e: # malformed/short json, import failure, unknown flasherCODE
LOWtest/hil/usbtest.py720 except Exception as e:CODE
LOWtest/hil/usbtest.py742 except Exception as e:CODE
LOWtest/hil/usbtest.py764 except Exception as e:CODE
LOWtest/hil/hil_ci.sh250except Exception:CODE
LOWtest/hil/test/test_ci_metrics.py557 except Exception:CODE
LOWtest/hil/test/test_ci_metrics.py565 except Exception:CODE
LOWtest/hil/test/test_hil_rtt.py213 except Exception as e: # noqa: BLE001 - the regression this guardsSTRING
MEDIUMtest/hil/test/test_hil_bounded.py65def wrapper():CODE
LOWtest/hil/test/test_hil_bounded.py1438 except Exception:CODE
LOWtest/hil/helper/hil_pool_check.py297 except Exception as e:CODE
LOWtest/hil/helper/hil_pool_check.py408 except Exception as e:CODE
LOWtest/hil/helper/hil_pool_check.py893 except Exception as e:CODE
LOWtest/hil/helper/hil_report.py461 except Exception as e: # noqa: BLE001CODE
LOWtest/hil/helper/hil_report.py482 except Exception as e2: # noqa: BLE001CODE
LOW…superpowers/plans/2026-08-19-ci-build-family-filter.md876 except Exception as e: # fail-open: an unusable selection must never turn into a red jobCODE
LOWdocs/superpowers/plans/2026-08-21-hil-report-module.md482 except Exception as e: # noqa: BLE001CODE
LOW.github/scripts/ci_set_matrix.py182 except Exception as e: # fail-open: an unusable selection must never turn into a red jobCODE
LOW.github/scripts/hil_ci_set_matrix.py42 except Exception as e: # fail-open: an unusable selection must never red the jobCODE
Cross-File Repetition5 hits · 25 pts
SeverityFileLineSnippetContext
HIGHexamples/device/audio_test/src/plot_audio_samples.py0pick a windows input device index from query_devices() output.STRING
HIGH…s/device/audio_4_channel_mic/src/plot_audio_samples.py0pick a windows input device index from query_devices() output.STRING
HIGH…s/device/audio_test_freertos/src/plot_audio_samples.py0pick a windows input device index from query_devices() output.STRING
HIGH…device/audio_test_multi_rate/src/plot_audio_samples.py0pick a windows input device index from query_devices() output.STRING
HIGH…audio_4_channel_mic_freertos/src/plot_audio_samples.py0pick a windows input device index from query_devices() output.STRING
Structural Annotation Overuse11 hits · 24 pts
SeverityFileLineSnippetContext
LOWtools/metrics_compare_base.py214 # Step 1: Create worktree for base branchCOMMENT
LOWtools/metrics_compare_base.py263 # Step 4: Generate metricsCOMMENT
LOWtools/metrics_compare_base.py272 # Step 5: CompareCOMMENT
LOWsrc/portable/synopsys/dwc2/dwc2_nrf.h50 // Step 1: Power up core only (PHY not yet)COMMENT
LOWsrc/portable/synopsys/dwc2/dwc2_nrf.h53 // Step 2: Override ID=Device (bit 31), and temporarily override VBUSVALIDCOMMENT
LOWsrc/portable/synopsys/dwc2/dwc2_nrf.h57 // Step 3: Release PHY power-on reset by enabling PHYCOMMENT
LOWsrc/portable/synopsys/dwc2/dwc2_nrf.h60 // Step 4: Wait 45us for PHY clock to startCOMMENT
LOWsrc/portable/synopsys/dwc2/dwc2_nrf.h63 // Step 5: Release DWC2 resetCOMMENT
LOWsrc/portable/synopsys/dwc2/dwc2_nrf.h66 // Step 6: Wait for clock to start to avoid hang on too early register readCOMMENT
LOWsrc/portable/synopsys/dwc2/dwc2_nrf.h69 // Step 7: Clear VBUSVALID override (keep ID=Device override)COMMENT
LOWsrc/class/cdc/cdc_host.h83// NOTE: This function does not make any USB transfer request to device.COMMENT
Verbosity Indicators10 hits · 22 pts
SeverityFileLineSnippetContext
LOWtools/metrics_compare_base.py214 # Step 1: Create worktree for base branchCOMMENT
LOWtools/metrics_compare_base.py263 # Step 4: Generate metricsCOMMENT
LOWtools/metrics_compare_base.py272 # Step 5: CompareCOMMENT
LOWsrc/portable/synopsys/dwc2/dwc2_nrf.h50 // Step 1: Power up core only (PHY not yet)COMMENT
LOWsrc/portable/synopsys/dwc2/dwc2_nrf.h53 // Step 2: Override ID=Device (bit 31), and temporarily override VBUSVALIDCOMMENT
LOWsrc/portable/synopsys/dwc2/dwc2_nrf.h57 // Step 3: Release PHY power-on reset by enabling PHYCOMMENT
LOWsrc/portable/synopsys/dwc2/dwc2_nrf.h60 // Step 4: Wait 45us for PHY clock to startCOMMENT
LOWsrc/portable/synopsys/dwc2/dwc2_nrf.h63 // Step 5: Release DWC2 resetCOMMENT
LOWsrc/portable/synopsys/dwc2/dwc2_nrf.h66 // Step 6: Wait for clock to start to avoid hang on too early register readCOMMENT
LOWsrc/portable/synopsys/dwc2/dwc2_nrf.h69 // Step 7: Clear VBUSVALID override (keep ID=Device override)COMMENT
Unused Imports16 hits · 16 pts
SeverityFileLineSnippetContext
LOWtools/gen_presets.py4CODE
LOWtools/file2carray.py3CODE
LOWtools/file2carray.py6CODE
LOWtools/file2carray.py7CODE
LOWtools/file2carray.py8CODE
LOWtools/file2carray.py9CODE
LOWtools/file2carray.py10CODE
LOWhw/mcu/sony/cxd56/tools/flash_writer.py36CODE
LOWhw/mcu/sony/cxd56/tools/flash_writer.py37CODE
LOWhw/mcu/sony/cxd56/tools/flash_writer.py38CODE
LOWhw/mcu/sony/cxd56/tools/flash_writer.py42CODE
LOWhw/mcu/sony/cxd56/tools/xmodem.py576CODE
LOWtest/hil/hil_flash.py9CODE
LOWtest/hil/helper/hil_util.py9CODE
LOWexamples/device/audio_test/src/plot_audio_samples.py6CODE
LOW…device/audio_test_multi_rate/src/plot_audio_samples.py6CODE
Redundant / Tautological Comments6 hits · 10 pts
SeverityFileLineSnippetContext
LOWtools/build.py233 # Check if board is skipped. Make semantics: family.mk decides, not theCOMMENT
LOWtools/get_deps.py352 # Check if commit is already fetchedCOMMENT
LOWtools/make_release.py21# Write the file out againCOMMENT
LOWtest/hil/pymtp.py1185 # Check if this ID exists, if not, add itCOMMENT
LOWtest/hil/pymtp.py1228 ## Check if this folder is in the dictCOMMENT
LOW.github/workflows/build.yml16 # Check if the code changes and we need to run ci buildCOMMENT
Self-Referential Comments3 hits · 9 pts
SeverityFileLineSnippetContext
MEDIUMexamples/device/uac2_speaker_fb/src/audio_debug.py40 # This function is called periodically from FuncAnimationCOMMENT
MEDIUMsrc/portable/synopsys/dwc2/dwc2_info.py172 # Create an empty list to hold the dictionariesCOMMENT
MEDIUMsrc/portable/synopsys/dwc2/dwc2_info.py202 # Create a Pandas DataFrame from the list of dictionariesCOMMENT
Modern AI Meta-Vocabulary2 hits · 6 pts
SeverityFileLineSnippetContext
MEDIUMdocs/superpowers/plans/2026-07-09-smoke-results.md1# Smoke Test Results — multi-agent dev/test harnessCOMMENT
MEDIUMdocs/superpowers/plans/2026-08-18-claude-doc-audit.md48### Task 1: Ledger schema and the anti-hallucination validatorCOMMENT
Docstring Block Structure1 hit · 5 pts
SeverityFileLineSnippetContext
HIGHtools/build.py305Get list of boards for a family. Args: family: Family name one_random: If True, return only one ranSTRING
AI Structural Patterns5 hits · 5 pts
SeverityFileLineSnippetContext
LOWtest/hil/hil_flash.py58CODE
LOWtest/hil/hil_flash.py125CODE
LOWtest/hil/hil_flash.py135CODE
LOWtest/hil/hil_flash.py267CODE
LOWtest/hil/hil_flash.py285CODE
Example Usage Blocks3 hits · 4 pts
SeverityFileLineSnippetContext
LOW.claude/skills/pvs/run_pvs.sh9# Usage:COMMENT
LOW…laude/skills/usb-kernel-recover/scripts/usb_recover.sh5# Usage:COMMENT
LOW.claude/skills/usb-kernel-debug/scripts/usb_dyndbg.sh6# Usage:COMMENT
TODO Padding2 hits · 3 pts
SeverityFileLineSnippetContext
LOWsrc/portable/st/stm32_fsdev/hcd_stm32_fsdev.c438 // TODO: Handle errorCOMMENT
LOWsrc/osal/osal_rtx4.h103 // TODO: implementCOMMENT
Dead Code1 hit · 2 pts
SeverityFileLineSnippetContext
MEDIUMtest/hil/test/test_hil_bounded.py1744CODE