Public scan — anyone with this URL can view this analysis. Sign up to track your own repos privately, run scheduled re-scans, and get AI fix prompts via your dashboard.

ghc/ghc

https://github.com/ghc/ghc.git · scanned 2026-05-16 13:30 UTC (1 day, 8 hours ago) · 10 languages

249 findings (9 legacy + 240 scanner) 8/10 scanners ran Scanner says 84 (lower by 30)

UNIFIED Repobility · multi-layer engine · AI coders

Complete repo analysis

Last scanned 1 day, 11 hours ago · v2 · 128 findings from 2 sources. Findings combine the legacy security pipeline AND the multi-layer engine (atlas, wiring, flows, ranked) AND verified AI agent contributions.

JSON
{# ── 2026-05-17 R27 #5: score breakdown panel ────────────────────── Surfaces the score_breakdown JSON that's been silently stored on Repository for months. Turns hidden math into a trust signal. #}
Severity distribution — click a segment to filter
Active filters: severity: low × excluding tests × Reset all
Severity: Critical 1 High 4 Medium 19 Low 76 Source: Legacy 8 9-layer 120 Crowd 0 Layer: Quality 54 Security 9 Software 40 Api 1 Frontend 22 Network 2
Scan summary Repository scanned at 83.5/100 with 100.0% coverage. It contains 4281 nodes across 0 cross-layer flows, written primarily in mixed languages. Engine surfaced 120 findings — concentrated in quality (49), software (38), frontend (22). Risk profile is high: 1 critical, 2 high, 16 medium. Recommended next step: open the quality layer findings first — that's where the highest-impact wins live.

Showing 76 of 128 findings. Click TP / FP to vote on a finding's accuracy — votes adjust the confidence weighting and improve detection across the platform.

low Legacy quality quality conf 0.86 Duplicated implementation block across source files
Extract the shared behavior into one function/module or delete the inactive duplicate after proving which path is used.
rts/adjustor/NativeAmd64Mingw.c:20 qualitylegacy
low Legacy quality quality conf 0.86 Duplicated implementation block across source files
Extract the shared behavior into one function/module or delete the inactive duplicate after proving which path is used.
hadrian/bindist/cwrappers/getLocation.c:1 qualitylegacy
low Legacy quality quality conf 0.86 Duplicated implementation block across source files
Extract the shared behavior into one function/module or delete the inactive duplicate after proving which path is used.
hadrian/bindist/cwrappers/cwrapper.c:1 qualitylegacy
low 9-layer quality maintenance conf 1.00 47 TODO/FIXME markers
High count of TODO/FIXME/HACK markers — track them as issues so they're not forgotten.
maintenance
low 9-layer software dead-code-candidate conf 1.00 File has no detected symbols: .gitlab/rel_eng/fetch-gitlab-artifacts/setup.py
Source file with no class/function declarations — possible config, dead code, or scratch file.
dead-code-candidate
low 9-layer software dead-code-candidate conf 1.00 File has no detected symbols: .gitlab/rel_eng/mk-ghcup-metadata/setup.py
Source file with no class/function declarations — possible config, dead code, or scratch file.
dead-code-candidate
low 9-layer software dead-code-candidate conf 1.00 File has no detected symbols: compiler/jsbits/genSym.js
Source file with no class/function declarations — possible config, dead code, or scratch file.
dead-code-candidate
low 9-layer software dead-code-candidate conf 1.00 File has no detected symbols: docs/users_guide/rtd-theme/static/js/modernizr.min.js
Source file with no class/function declarations — possible config, dead code, or scratch file.
dead-code-candidate
low 9-layer software dead-code-candidate conf 1.00 File has no detected symbols: rts/js/node-exports.js
Source file with no class/function declarations — possible config, dead code, or scratch file.
dead-code-candidate
low 9-layer software dead-code-candidate conf 1.00 File has no detected symbols: rts/js/unicode.js
Source file with no class/function declarations — possible config, dead code, or scratch file.
dead-code-candidate
low 9-layer software dead-code-candidate conf 1.00 File has no detected symbols: testsuite/driver/my_typing.py
Source file with no class/function declarations — possible config, dead code, or scratch file.
dead-code-candidate
low 9-layer software dead-code-candidate conf 1.00 File has no detected symbols: testsuite/tests/codeGen/should_compile/mk-big-obj.py
Source file with no class/function declarations — possible config, dead code, or scratch file.
dead-code-candidate
low 9-layer software dead-code-candidate conf 1.00 File has no detected symbols: testsuite/tests/linters/regex-linters/check-cpp.py
Source file with no class/function declarations — possible config, dead code, or scratch file.
dead-code-candidate
low 9-layer software dead-code-candidate conf 1.00 File has no detected symbols: testsuite/tests/linters/regex-linters/check-makefiles.py
Source file with no class/function declarations — possible config, dead code, or scratch file.
dead-code-candidate
low 9-layer software dead-code-candidate conf 1.00 File has no detected symbols: testsuite/tests/perf/compiler/genT14766.py
Source file with no class/function declarations — possible config, dead code, or scratch file.
dead-code-candidate
low 9-layer software dead-code-candidate conf 1.00 File has no detected symbols: utils/check-sphinx/conf.py
Source file with no class/function declarations — possible config, dead code, or scratch file.
dead-code-candidate
low 9-layer software dead-code-candidate conf 1.00 File has no detected symbols: utils/haddock/doc/conf.py
Source file with no class/function declarations — possible config, dead code, or scratch file.
dead-code-candidate
low 9-layer software dead-code-candidate conf 1.00 File has no detected symbols: utils/haddock/haddock-api/resources/html/highlight.js
Source file with no class/function declarations — possible config, dead code, or scratch file.
dead-code-candidate
low 9-layer quality integrity conf 1.00 Legacy-named symbol `cmp_legacy` in testsuite/driver/cpuinfo.py:1347
Names with suffixes like `_old`, `_v1`, `_deprecated` usually indicate replaced-but-not-removed code (typical AI-coder leftover). Confirm and delete, or rename if it's the active version.
integritylegacy-markerdead-code
low 9-layer quality integrity conf 1.00 Legacy-named symbol `do_not_copy` in testsuite/driver/testlib.py:1564
Names with suffixes like `_old`, `_v1`, `_deprecated` usually indicate replaced-but-not-removed code (typical AI-coder leftover). Confirm and delete, or rename if it's the active version.
integritylegacy-markerdead-code
low 9-layer quality integrity conf 1.00 Legacy-named symbol `force_copy` in testsuite/driver/testutil.py:68
Names with suffixes like `_old`, `_v1`, `_deprecated` usually indicate replaced-but-not-removed code (typical AI-coder leftover). Confirm and delete, or rename if it's the active version.
integritylegacy-markerdead-code
low 9-layer quality integrity conf 1.00 Near-duplicate function bodies in 2 places
Functions with the same first-5-line body hash: .gitlab/rel_eng/upload_ghc_libs.py:prep_ghc_internal, .gitlab/rel_eng/upload_ghc_libs.py:prep_ghc This is *the* AI-coder failure mode (4× more duplication in vibe-coded repos — see https://jw.hn/ai-code-hygiene). Consolidate or document why they're s…
integrityduplicatedry
low 9-layer quality integrity conf 1.00 Near-duplicate function bodies in 2 places
Functions with the same first-5-line body hash: .gitlab/rel_eng/upload_ghc_libs.py:upload_pkg_sdist, .gitlab/rel_eng/upload_ghc_libs.py:upload_pkg This is *the* AI-coder failure mode (4× more duplication in vibe-coded repos — see https://jw.hn/ai-code-hygiene). Consolidate or document why they're …
integrityduplicatedry
low 9-layer quality integrity conf 1.00 Near-duplicate function bodies in 2 places
Functions with the same first-5-line body hash: .gitlab/rel_eng/mk-ghcup-metadata/mk_ghcup_metadata.py:mk_one_metadata, .gitlab/rel_eng/mk-ghcup-metadata/mk_ghcup_metadata.py:mk This is *the* AI-coder failure mode (4× more duplication in vibe-coded repos — see https://jw.hn/ai-code-hygiene). Conso…
integrityduplicatedry
low 9-layer quality integrity conf 1.00 Near-duplicate function bodies in 2 places
Functions with the same first-5-line body hash: testsuite/driver/testlib.py:req_c_rts, testsuite/driver/testlib.py:req_c This is *the* AI-coder failure mode (4× more duplication in vibe-coded repos — see https://jw.hn/ai-code-hygiene). Consolidate or document why they're separate.
integrityduplicatedry
low 9-layer quality integrity conf 1.00 Near-duplicate function bodies in 2 places
Functions with the same first-5-line body hash: testsuite/driver/testlib.py:pre_cmd_timeout_multiplier, testsuite/driver/testlib.py:pre_cmd This is *the* AI-coder failure mode (4× more duplication in vibe-coded repos — see https://jw.hn/ai-code-hygiene). Consolidate or document why they're separat…
integrityduplicatedry
low 9-layer quality integrity conf 1.00 Near-duplicate function bodies in 2 places
Functions with the same first-5-line body hash: testsuite/driver/testlib.py:compile_timeout_multiplier, testsuite/driver/testlib.py:compile This is *the* AI-coder failure mode (4× more duplication in vibe-coded repos — see https://jw.hn/ai-code-hygiene). Consolidate or document why they're separat…
integrityduplicatedry
low 9-layer quality integrity conf 1.00 Near-duplicate function bodies in 2 places
Functions with the same first-5-line body hash: testsuite/driver/testlib.py:collect_generic_stats, testsuite/driver/testlib.py:collect_generic_stat This is *the* AI-coder failure mode (4× more duplication in vibe-coded repos — see https://jw.hn/ai-code-hygiene). Consolidate or document why they're…
integrityduplicatedry
low 9-layer quality integrity conf 1.00 Near-duplicate function bodies in 2 places
Functions with the same first-5-line body hash: testsuite/driver/testlib.py:normalise_prof_fun, testsuite/driver/testlib.py:normalise_prof This is *the* AI-coder failure mode (4× more duplication in vibe-coded repos — see https://jw.hn/ai-code-hygiene). Consolidate or document why they're separate.
integrityduplicatedry
low 9-layer quality integrity conf 1.00 Near-duplicate function bodies in 2 places
Functions with the same first-5-line body hash: testsuite/driver/testlib.py:normalise_errmsg_fun, testsuite/driver/testlib.py:normalise_errmsg This is *the* AI-coder failure mode (4× more duplication in vibe-coded repos — see https://jw.hn/ai-code-hygiene). Consolidate or document why they're sepa…
integrityduplicatedry
low 9-layer quality integrity conf 1.00 Near-duplicate function bodies in 2 places
Functions with the same first-5-line body hash: testsuite/driver/testlib.py:grep_errmsg_norm, testsuite/driver/testlib.py:grep_errmsg This is *the* AI-coder failure mode (4× more duplication in vibe-coded repos — see https://jw.hn/ai-code-hygiene). Consolidate or document why they're separate.
integrityduplicatedry
low 9-layer quality integrity conf 1.00 Near-duplicate function bodies in 2 places
Functions with the same first-5-line body hash: testsuite/driver/testlib.py:normalise_whitespace_fun, testsuite/driver/testlib.py:normalise_whitespace This is *the* AI-coder failure mode (4× more duplication in vibe-coded repos — see https://jw.hn/ai-code-hygiene). Consolidate or document why they…
integrityduplicatedry
low 9-layer quality integrity conf 1.00 Near-duplicate function bodies in 2 places
Functions with the same first-5-line body hash: testsuite/driver/testlib.py:normalise_version_, testsuite/driver/testlib.py:normalise_version This is *the* AI-coder failure mode (4× more duplication in vibe-coded repos — see https://jw.hn/ai-code-hygiene). Consolidate or document why they're separ…
integrityduplicatedry
low 9-layer quality integrity conf 1.00 Near-duplicate function bodies in 2 places
Functions with the same first-5-line body hash: testsuite/driver/testlib.py:normalise_version__, testsuite/driver/testlib.py:normalise_version__ This is *the* AI-coder failure mode (4× more duplication in vibe-coded repos — see https://jw.hn/ai-code-hygiene). Consolidate or document why they're se…
integrityduplicatedry
low 9-layer quality integrity conf 1.00 Near-duplicate function bodies in 2 places
Functions with the same first-5-line body hash: testsuite/driver/testlib.py:compile_and_run__, testsuite/driver/testlib.py:compile_and_run This is *the* AI-coder failure mode (4× more duplication in vibe-coded repos — see https://jw.hn/ai-code-hygiene). Consolidate or document why they're separate.
integrityduplicatedry
low 9-layer quality integrity conf 1.00 Near-duplicate function bodies in 2 places
Functions with the same first-5-line body hash: testsuite/driver/testlib.py:read_stderr_for, testsuite/driver/testlib.py:read_stderr This is *the* AI-coder failure mode (4× more duplication in vibe-coded repos — see https://jw.hn/ai-code-hygiene). Consolidate or document why they're separate.
integrityduplicatedry
low 9-layer quality integrity conf 1.00 Near-duplicate function bodies in 2 places
Functions with the same first-5-line body hash: testsuite/driver/testlib.py:dump_stderr_for, testsuite/driver/testlib.py:dump_stderr This is *the* AI-coder failure mode (4× more duplication in vibe-coded repos — see https://jw.hn/ai-code-hygiene). Consolidate or document why they're separate.
integrityduplicatedry
low 9-layer quality integrity conf 1.00 Near-duplicate function bodies in 2 places
Functions with the same first-5-line body hash: testsuite/driver/testlib.py:runCmdPerf, testsuite/driver/testlib.py:runCmd This is *the* AI-coder failure mode (4× more duplication in vibe-coded repos — see https://jw.hn/ai-code-hygiene). Consolidate or document why they're separate.
integrityduplicatedry
low 9-layer quality integrity conf 1.00 Near-duplicate function bodies in 4 places
Functions with the same first-5-line body hash: testsuite/driver/testlib.py:normal, testsuite/driver/testlib.py:norm, testsuite/driver/testlib.py:norm, testsuite/driver/testlib.py:norm This is *the* AI-coder failure mode (4× more duplication in vibe-coded repos — see https://jw.hn/ai-code-hygiene)…
integrityduplicatedry
low 9-layer quality integrity conf 1.00 Near-duplicate function bodies in 5 places
Functions with the same first-5-line body hash: testsuite/driver/testlib.py:fragile, testsuite/driver/testlib.py:f, testsuite/driver/testlib.py:f, testsuite/driver/testlib.py:f This is *the* AI-coder failure mode (4× more duplication in vibe-coded repos — see https://jw.hn/ai-code-hygiene). Consol…
integrityduplicatedry
low 9-layer quality integrity conf 1.00 Near-duplicate function bodies in 7 places
Functions with the same first-5-line body hash: testsuite/driver/testlib.py:helper, testsuite/driver/testlib.py:helper, testsuite/driver/testlib.py:helper, testsuite/driver/testlib.py:helper This is *the* AI-coder failure mode (4× more duplication in vibe-coded repos — see https://jw.hn/ai-code-hy…
integrityduplicatedry
low 9-layer software dead-code conf 1.00 Possibly dead Python function: after_content
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
docs/users_guide/flags.py:302 dead-code
low 9-layer software dead-code conf 1.00 Possibly dead Python function: config_initiated
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
docs/users_guide/rtd-theme/__init__.py:27 dead-code
low 9-layer software dead-code conf 1.00 Possibly dead Python function: extend_html_context
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
docs/users_guide/rtd-theme/__init__.py:35 dead-code
low 9-layer software dead-code conf 1.00 Possibly dead Python function: fetch_arch
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
mk/get-win32-tarballs.py:26 dead-code
low 9-layer software dead-code conf 1.00 Possibly dead Python function: generate_extension_table
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
docs/users_guide/flags.py:510 dead-code
low 9-layer software dead-code conf 1.00 Possibly dead Python function: generate_flag_list
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
docs/users_guide/flags.py:382 dead-code
low 9-layer software dead-code conf 1.00 Possibly dead Python function: generate_flag_summary
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
docs/users_guide/flags.py:404 dead-code
low 9-layer software dead-code conf 1.00 Possibly dead Python function: generate_flag_table
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
docs/users_guide/flags.py:356 dead-code
low 9-layer software dead-code conf 1.00 Possibly dead Python function: list_arch
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
mk/get-win32-tarballs.py:41 dead-code
low 9-layer software dead-code conf 1.00 Possibly dead Python function: no_prep
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
.gitlab/rel_eng/upload_ghc_libs.py:45 dead-code
low 9-layer software dead-code conf 1.00 Possibly dead Python function: parse_flag
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
docs/users_guide/conf.py:185 dead-code
low 9-layer software dead-code conf 1.00 Possibly dead Python function: parse_ghci_cmd
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
docs/users_guide/conf.py:157 dead-code
low 9-layer software dead-code conf 1.00 Possibly dead Python function: parse_pragma
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
docs/users_guide/conf.py:170 dead-code
low 9-layer software dead-code conf 1.00 Possibly dead Python function: prep_base
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
.gitlab/rel_eng/upload_ghc_libs.py:48 dead-code
low 9-layer software dead-code conf 1.00 Possibly dead Python function: prep_ghc
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
.gitlab/rel_eng/upload_ghc_libs.py:89 dead-code
low 9-layer software dead-code conf 1.00 Possibly dead Python function: prep_ghc_bignum
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
.gitlab/rel_eng/upload_ghc_libs.py:81 dead-code
low 9-layer software dead-code conf 1.00 Possibly dead Python function: prep_ghc_boot
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
.gitlab/rel_eng/upload_ghc_libs.py:85 dead-code
low 9-layer software dead-code conf 1.00 Possibly dead Python function: prep_ghc_boot_th
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
.gitlab/rel_eng/upload_ghc_libs.py:96 dead-code
low 9-layer software dead-code conf 1.00 Possibly dead Python function: prep_ghc_internal
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
.gitlab/rel_eng/upload_ghc_libs.py:52 dead-code
low 9-layer software dead-code conf 1.00 Possibly dead Python function: prep_ghc_prim
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
.gitlab/rel_eng/upload_ghc_libs.py:78 dead-code
low 9-layer software dead-code conf 1.00 Possibly dead Python function: process_print_nodes
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
docs/users_guide/flags.py:600 dead-code
low 9-layer software dead-code conf 1.00 Possibly dead Python function: purge_flags
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
docs/users_guide/flags.py:620 dead-code
low 9-layer software dead-code conf 1.00 Possibly dead Python function: role
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
docs/users_guide/conf.py:232 dead-code
low 9-layer software dead-code conf 1.00 Possibly dead Python function: strip_prefix
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
.gitlab/rel_eng/fetch-gitlab-artifacts/fetch_gitlab.py:9 dead-code
low 9-layer frontend frontend-quality conf 1.00 Stray `console.log` in TS/JS — docs/users_guide/rtd-theme/static/js/theme.js:1
Replace with the toast helper, an error boundary, or remove. `console.warn` / `console.error` are acceptable. Why: Hygiene — easy to leak debug output. Rule id: fq.console-leak
frontend-qualityfq.console-leak
low 9-layer frontend frontend-quality conf 1.00 Stray `console.log` in TS/JS — ghc-interp.js:20
Replace with the toast helper, an error boundary, or remove. `console.warn` / `console.error` are acceptable. Why: Hygiene — easy to leak debug output. Rule id: fq.console-leak
frontend-qualityfq.console-leak
low 9-layer frontend frontend-quality conf 1.00 Stray `console.log` in TS/JS — libraries/ghc-internal/jsbits/base.js:1112
Replace with the toast helper, an error boundary, or remove. `console.warn` / `console.error` are acceptable. Why: Hygiene — easy to leak debug output. Rule id: fq.console-leak
frontend-qualityfq.console-leak
low 9-layer frontend frontend-quality conf 1.00 Stray `console.log` in TS/JS — rts/js/environment.js:364
Replace with the toast helper, an error boundary, or remove. `console.warn` / `console.error` are acceptable. Why: Hygiene — easy to leak debug output. Rule id: fq.console-leak
frontend-qualityfq.console-leak
low 9-layer frontend frontend-quality conf 1.00 Stray `console.log` in TS/JS — rts/js/mem.js:1376
Replace with the toast helper, an error boundary, or remove. `console.warn` / `console.error` are acceptable. Why: Hygiene — easy to leak debug output. Rule id: fq.console-leak
frontend-qualityfq.console-leak
low 9-layer frontend frontend-quality conf 1.00 Stray `console.log` in TS/JS — rts/js/node-exports.js:5
Replace with the toast helper, an error boundary, or remove. `console.warn` / `console.error` are acceptable. Why: Hygiene — easy to leak debug output. Rule id: fq.console-leak
frontend-qualityfq.console-leak
low 9-layer frontend frontend-quality conf 1.00 Stray `console.log` in TS/JS — rts/js/stableptr.js:49
Replace with the toast helper, an error boundary, or remove. `console.warn` / `console.error` are acceptable. Why: Hygiene — easy to leak debug output. Rule id: fq.console-leak
frontend-qualityfq.console-leak
low 9-layer frontend frontend-quality conf 1.00 Stray `console.log` in TS/JS — utils/haddock/haddock-api/resources/html/gulpfile.js:17
Replace with the toast helper, an error boundary, or remove. `console.warn` / `console.error` are acceptable. Why: Hygiene — easy to leak debug output. Rule id: fq.console-leak
frontend-qualityfq.console-leak
low 9-layer quality integrity conf 1.00 Stub function `no_prep` (body is just `pass`/`return`) — .gitlab/rel_eng/upload_ghc_libs.py:45
Likely an AI scaffold that was never filled in. Remove or implement.
integrityempty-handlerdead-code
low 9-layer quality complexity conf 1.00 Very large file: testsuite/driver/cpuinfo.py (2842 lines)
Files with >800 lines often hide complexity hotspots and discourage tests.
complexity
low 9-layer quality complexity conf 1.00 Very large file: testsuite/driver/testlib.py (3623 lines)
Files with >800 lines often hide complexity hotspots and discourage tests.
complexity
{# ── 2026-05-17 Round 14: AI-agent bridge footer ────────────────────── Discoverability: the /agents/voting/ guide + MCP manifest exist but aren't linked from anywhere users actually land. Small, opt-in footer. #}
For AI agents: Voting guide (TP/FP) MCP manifest Stdio wrapper SARIF Integrate Findings queue Vote TP/FP on findings to calibrate the engine.
For AI agents + API integrations
Email me when this repo regresses
Free. We re-scan periodically; new criticals → your inbox. No signup required for the scan itself.
API access

This page is publicly accessible at: https://repobility.com/scan/2375b6d0-a6b1-42a0-92ae-4a23b5c8f9ee/

To check status programmatically (no auth required):

curl -s https://repobility.com/api/v1/public/scan/2375b6d0-a6b1-42a0-92ae-4a23b5c8f9ee/

Important — please don't re-submit the same URL repeatedly. The submission endpoint is idempotent: re-submitting the same git URL returns this same scan_token, not a new one. To re-scan this repo, sign up free and use the dashboard.