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, 7 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, 10 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: 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 127 of 128 findings. Click TP / FP to vote on a finding's accuracy — votes adjust the confidence weighting and improve detection across the platform.

critical 9-layer security secrets conf 1.00 Possible secret in .gitlab/rel_eng/upload_ghc_libs.py
Detected pattern matching password_literal. Rotate the credential and move to a secret manager.
.gitlab/rel_eng/upload_ghc_libs.py:254 secrets
high Legacy software ssrf conf 1.00 [SEC029] Server-Side Request Forgery (SSRF) — outbound HTTP from user input: Outbound HTTP request to a user-controlled URL without allowlist validation. Attackers can probe internal services (169.254.169.254 metadata, internal Kubernetes endpoints, file:// URIs), exfiltrate data, or pivot through your network. SSRF is OWASP A10:2021 and a frequent foothold in cloud breaches.
Validate the URL against an allowlist BEFORE fetching: ALLOWED = {'images.example.com', 'cdn.example.com'} host = urlparse(url).hostname if host not in ALLOWED: abort(400) Or use a server-side proxy (Imgproxy / serve-files-only-from-S3) that isolates outbound network access from the request h…
mk/get-win32-tarballs.py:29 ssrflegacy
high Legacy software resource_exhaustion conf 1.00 [SEC035] Unbounded Resource Allocation — DoS risk: Allocating resources (buffers, recursion stack, large ranges) based on user input without an upper bound. Attackers send `size=10000000` to exhaust memory, or trigger expensive computation. CWE-770/400. Examples: CVE-2023-44487 (HTTP/2 Rapid Reset), countless YAML/XML billion-laughs variants.
Cap user-controlled sizes BEFORE allocation: size = min(int(request.args.get('n', 100)), MAX_SIZE) Set framework-level limits: Flask: app.config['MAX_CONTENT_LENGTH'] = 10 * 1024 * 1024 FastAPI: use middleware to enforce request size Django: DATA_UPLOAD_MAX_MEMORY_SIZE in settings.py …
docs/users_guide/conf.py:312 resource_exhaustionlegacy
high 9-layer security owasp conf 1.00 Insecure pattern 'eval_used' in ghc-interp.js:34
Found a known-risky pattern (eval_used). Review and replace if possible.
ghc-interp.js:34 owaspeval_used
high 9-layer security owasp conf 1.00 Insecure pattern 'eval_used' in rts/js/environment.js:460
Found a known-risky pattern (eval_used). Review and replace if possible.
rts/js/environment.js:460 owaspeval_used
medium Legacy quality practices conf 1.00 [CFG006] Missing .gitignore: No .gitignore file. Risk of committing secrets and build artifacts.
Add a .gitignore appropriate for your language/framework.
practiceslegacy
medium Legacy security deserialization conf 1.00 [SEC007] Unsafe Deserialization: Unsafe deserialization can execute arbitrary code.
Use yaml.safe_load() instead of yaml.load(). Avoid pickle for untrusted data.
.gitlab/rel_eng/upload_ghc_libs.py:258 deserializationlegacy
medium Legacy quality practices No CI/CD configuration found
Add a CI/CD pipeline: create .github/workflows/ci.yml for GitHub Actions with steps to lint, test, and build on every push and pull request.
practiceslegacy
medium 9-layer frontend frontend-quality conf 1.00 `dangerouslySetInnerHTML` used in a React component — utils/haddock/haddock-api/resources/html/haddock-bundle.min.js:1
Open XSS surface unless the input is provably trusted. Replace with explicit JSX or sanitize via a vetted library. Why: OWASP basics. Already partially flagged by the security analyzer. Rule id: fq.dangerous-html
frontend-qualityfq.dangerous-html
medium 9-layer frontend frontend-quality conf 1.00 `dangerouslySetInnerHTML` used in a React component — utils/haddock/haddock-api/resources/html/js-src/quick-jump.tsx:350
Open XSS surface unless the input is provably trusted. Replace with explicit JSX or sanitize via a vetted library. Why: OWASP basics. Already partially flagged by the security analyzer. Rule id: fq.dangerous-html
frontend-qualityfq.dangerous-html
medium 9-layer frontend frontend-quality conf 1.00 `dangerouslySetInnerHTML` used in a React component — utils/haddock/haddock-api/resources/html/quick-jump.min.js:1
Open XSS surface unless the input is provably trusted. Replace with explicit JSX or sanitize via a vetted library. Why: OWASP basics. Already partially flagged by the security analyzer. Rule id: fq.dangerous-html
frontend-qualityfq.dangerous-html
medium 9-layer security owasp conf 1.00 Insecure pattern 'dangerous_innerhtml' in utils/haddock/haddock-api/resources/html/haddock-bundle.min.js:1
Found a known-risky pattern (dangerous_innerhtml). Review and replace if possible.
utils/haddock/haddock-api/resources/html/haddock-bundle.min.js:1 owaspdangerous_innerhtml
medium 9-layer security owasp conf 1.00 Insecure pattern 'dangerous_innerhtml' in utils/haddock/haddock-api/resources/html/js-src/quick-jump.tsx:350
Found a known-risky pattern (dangerous_innerhtml). Review and replace if possible.
utils/haddock/haddock-api/resources/html/js-src/quick-jump.tsx:350 owaspdangerous_innerhtml
medium 9-layer security owasp conf 1.00 Insecure pattern 'dangerous_innerhtml' in utils/haddock/haddock-api/resources/html/quick-jump.min.js:1
Found a known-risky pattern (dangerous_innerhtml). Review and replace if possible.
utils/haddock/haddock-api/resources/html/quick-jump.min.js:1 owaspdangerous_innerhtml
medium 9-layer quality integrity conf 1.00 Network/subprocess call without timeout or try/except — .gitlab/rel_eng/fetch-gitlab-artifacts/fetch_gitlab.py:108
`subprocess.run(...)` here lacks both a `timeout=` arg and an enclosing try/except. This is exactly the class of bug that took down our git-clone earlier (HTTP/2 stream cancel surfaced as a fatal). Add a `timeout=` and wrap in try/except, or use a wrapper that retries.
integrityfragile-runtimerobustness
medium 9-layer quality integrity conf 1.00 Network/subprocess call without timeout or try/except — docs/users_guide/compare-flags.py:51
`subprocess.check_output(...)` here lacks both a `timeout=` arg and an enclosing try/except. This is exactly the class of bug that took down our git-clone earlier (HTTP/2 stream cancel surfaced as a fatal). Add a `timeout=` and wrap in try/except, or use a wrapper that retries.
integrityfragile-runtimerobustness
medium 9-layer quality integrity conf 1.00 Network/subprocess call without timeout or try/except — hadrian/bootstrap/bootstrap.py:345
`urllib.request.urlopen(...)` here lacks both a `timeout=` arg and an enclosing try/except. This is exactly the class of bug that took down our git-clone earlier (HTTP/2 stream cancel surfaced as a fatal). Add a `timeout=` and wrap in try/except, or use a wrapper that retries.
integrityfragile-runtimerobustness
medium 9-layer quality integrity conf 1.00 Network/subprocess call without timeout or try/except — mk/get-win32-tarballs.py:24
`urllib.request.urlretrieve(...)` here lacks both a `timeout=` arg and an enclosing try/except. This is exactly the class of bug that took down our git-clone earlier (HTTP/2 stream cancel surfaced as a fatal). Add a `timeout=` and wrap in try/except, or use a wrapper that retries.
integrityfragile-runtimerobustness
medium 9-layer quality integrity conf 1.00 Network/subprocess call without timeout or try/except — testsuite/driver/perf_notes.py:208
`subprocess.check_output(...)` here lacks both a `timeout=` arg and an enclosing try/except. This is exactly the class of bug that took down our git-clone earlier (HTTP/2 stream cancel surfaced as a fatal). Add a `timeout=` and wrap in try/except, or use a wrapper that retries.
integrityfragile-runtimerobustness
medium 9-layer quality integrity conf 1.00 Network/subprocess call without timeout or try/except — testsuite/driver/testutil.py:58
`subprocess.run(...)` here lacks both a `timeout=` arg and an enclosing try/except. This is exactly the class of bug that took down our git-clone earlier (HTTP/2 stream cancel surfaced as a fatal). Add a `timeout=` and wrap in try/except, or use a wrapper that retries.
integrityfragile-runtimerobustness
medium 9-layer security coverage conf 1.00 No auth library detected
The scanner did not find any standard auth library (JWT, OAuth, NextAuth, Auth0, etc.). Either auth lives in custom code, in a separate service, or is missing.
coverageauth
medium 9-layer network security conf 1.00 Privileged port 17 in use
Port 17 is privileged (<1024). Make sure the service runs with the right caps or front it with a non-privileged port via a load balancer.
.gitlab/ci.sh securityports
medium 9-layer network security conf 1.00 Privileged port 36 in use
Port 36 is privileged (<1024). Make sure the service runs with the right caps or front it with a non-privileged port via a load balancer.
.gitlab/ci.sh securityports
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
info 9-layer quality integrity conf 1.00 Commented-code block (13 lines) in utils/haddock/haddock-api/resources/html/js-src/details-helper.tsx:48
A long run of `//` or `#` lines usually means abandoned code. Delete or move to git history. Keeps the canvas + dead-code detection honest.
integritycommented-codedead-code
info 9-layer quality integrity conf 1.00 Commented-code block (5 lines) in compiler/jsbits/genSym.js:8
A long run of `//` or `#` lines usually means abandoned code. Delete or move to git history. Keeps the canvas + dead-code detection honest.
integritycommented-codedead-code
info 9-layer quality integrity conf 1.00 Commented-code block (5 lines) in libraries/ghc-internal/tools/ucd2haskell/tests/check_test_data.py:90
A long run of `//` or `#` lines usually means abandoned code. Delete or move to git history. Keeps the canvas + dead-code detection honest.
integritycommented-codedead-code
info 9-layer quality integrity conf 1.00 Commented-code block (5 lines) in rts/js/mem.js:68
A long run of `//` or `#` lines usually means abandoned code. Delete or move to git history. Keeps the canvas + dead-code detection honest.
integritycommented-codedead-code
info 9-layer quality integrity conf 1.00 Commented-code block (5 lines) in rts/js/string.js:225
A long run of `//` or `#` lines usually means abandoned code. Delete or move to git history. Keeps the canvas + dead-code detection honest.
integritycommented-codedead-code
info 9-layer quality integrity conf 1.00 Commented-code block (5 lines) in testsuite/driver/perf_notes.py:72
A long run of `//` or `#` lines usually means abandoned code. Delete or move to git history. Keeps the canvas + dead-code detection honest.
integritycommented-codedead-code
info 9-layer quality integrity conf 1.00 Commented-code block (5 lines) in testsuite/driver/testlib.py:205
A long run of `//` or `#` lines usually means abandoned code. Delete or move to git history. Keeps the canvas + dead-code detection honest.
integritycommented-codedead-code
info 9-layer quality integrity conf 1.00 Commented-code block (6 lines) in docs/users_guide/flags.py:6
A long run of `//` or `#` lines usually means abandoned code. Delete or move to git history. Keeps the canvas + dead-code detection honest.
integritycommented-codedead-code
info 9-layer quality integrity conf 1.00 Commented-code block (6 lines) in testsuite/driver/runtests.py:21
A long run of `//` or `#` lines usually means abandoned code. Delete or move to git history. Keeps the canvas + dead-code detection honest.
integritycommented-codedead-code
info 9-layer quality integrity conf 1.00 Commented-code block (6 lines) in testsuite/driver/testglobals.py:418
A long run of `//` or `#` lines usually means abandoned code. Delete or move to git history. Keeps the canvas + dead-code detection honest.
integritycommented-codedead-code
info 9-layer quality integrity conf 1.00 Commented-code block (6 lines) in testsuite/tests/pmcheck/should_compile/genS.py:11
A long run of `//` or `#` lines usually means abandoned code. Delete or move to git history. Keeps the canvas + dead-code detection honest.
integritycommented-codedead-code
info 9-layer quality integrity conf 1.00 Commented-code block (7 lines) in libraries/ghc-internal/jsbits/base.js:115
A long run of `//` or `#` lines usually means abandoned code. Delete or move to git history. Keeps the canvas + dead-code detection honest.
integritycommented-codedead-code
info 9-layer quality integrity conf 1.00 Commented-code block (7 lines) in rts/js/rts.js:365
A long run of `//` or `#` lines usually means abandoned code. Delete or move to git history. Keeps the canvas + dead-code detection honest.
integritycommented-codedead-code
info 9-layer quality integrity conf 1.00 Commented-code block (7 lines) in rts/js/stableptr.js:21
A long run of `//` or `#` lines usually means abandoned code. Delete or move to git history. Keeps the canvas + dead-code detection honest.
integritycommented-codedead-code
info 9-layer quality integrity conf 1.00 Commented-code block (7 lines) in testsuite/driver/cpuinfo.py:14
A long run of `//` or `#` lines usually means abandoned code. Delete or move to git history. Keeps the canvas + dead-code detection honest.
integritycommented-codedead-code
info 9-layer quality integrity conf 1.00 Commented-code block (8 lines) in rts/js/arith.js:60
A long run of `//` or `#` lines usually means abandoned code. Delete or move to git history. Keeps the canvas + dead-code detection honest.
integritycommented-codedead-code
info 9-layer api coverage conf 1.00 No API endpoints detected
The scanner did not find FastAPI/Flask/Express/NestJS/GraphQL/gRPC routes. If this repo exposes APIs, the framework may be unsupported.
coverage
info 9-layer frontend coverage conf 1.00 No frontend routes/components detected
No React/Vue/Next routes were found. This is fine for backend-only repos.
coverage
info 9-layer frontend frontend-quality conf 1.00 TODO/FIXME marker in shipping code — libraries/ghc-internal/jsbits/base.js:119
Track in /reviews or /issues, not as a code comment that rots. Why: Drift control — shouldn't be the same as Quality TODO scanner. Rule id: fq.todo-marker
frontend-qualityfq.todo-marker
info 9-layer frontend frontend-quality conf 1.00 TODO/FIXME marker in shipping code — libraries/ghc-internal/jsbits/errno.js:45
Track in /reviews or /issues, not as a code comment that rots. Why: Drift control — shouldn't be the same as Quality TODO scanner. Rule id: fq.todo-marker
frontend-qualityfq.todo-marker
info 9-layer frontend frontend-quality conf 1.00 TODO/FIXME marker in shipping code — rts/js/environment.js:201
Track in /reviews or /issues, not as a code comment that rots. Why: Drift control — shouldn't be the same as Quality TODO scanner. Rule id: fq.todo-marker
frontend-qualityfq.todo-marker
info 9-layer frontend frontend-quality conf 1.00 TODO/FIXME marker in shipping code — rts/js/gc.js:75
Track in /reviews or /issues, not as a code comment that rots. Why: Drift control — shouldn't be the same as Quality TODO scanner. Rule id: fq.todo-marker
frontend-qualityfq.todo-marker
info 9-layer frontend frontend-quality conf 1.00 TODO/FIXME marker in shipping code — rts/js/mem.js:55
Track in /reviews or /issues, not as a code comment that rots. Why: Drift control — shouldn't be the same as Quality TODO scanner. Rule id: fq.todo-marker
frontend-qualityfq.todo-marker
info 9-layer frontend frontend-quality conf 1.00 TODO/FIXME marker in shipping code — rts/js/profiling.js:197
Track in /reviews or /issues, not as a code comment that rots. Why: Drift control — shouldn't be the same as Quality TODO scanner. Rule id: fq.todo-marker
frontend-qualityfq.todo-marker
info 9-layer frontend frontend-quality conf 1.00 TODO/FIXME marker in shipping code — rts/js/rts.js:249
Track in /reviews or /issues, not as a code comment that rots. Why: Drift control — shouldn't be the same as Quality TODO scanner. Rule id: fq.todo-marker
frontend-qualityfq.todo-marker
info 9-layer frontend frontend-quality conf 1.00 TODO/FIXME marker in shipping code — rts/js/string.js:202
Track in /reviews or /issues, not as a code comment that rots. Why: Drift control — shouldn't be the same as Quality TODO scanner. Rule id: fq.todo-marker
frontend-qualityfq.todo-marker
info 9-layer frontend frontend-quality conf 1.00 TODO/FIXME marker in shipping code — rts/js/thread.js:425
Track in /reviews or /issues, not as a code comment that rots. Why: Drift control — shouldn't be the same as Quality TODO scanner. Rule id: fq.todo-marker
frontend-qualityfq.todo-marker
info 9-layer frontend frontend-quality conf 1.00 TODO/FIXME marker in shipping code — rts/js/verify.js:69
Track in /reviews or /issues, not as a code comment that rots. Why: Drift control — shouldn't be the same as Quality TODO scanner. Rule id: fq.todo-marker
frontend-qualityfq.todo-marker
{# ── 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.