Mirror of the Glasgow Haskell Compiler. Please submit issues and patches to GHC's Gitlab instance (https://gitlab.haskell.org/ghc/ghc). First time contributors are encouraged to get started with the newcomers info (https://gitlab.haskell.org/ghc/ghc/wikis/contributing).
This report summarizes scanner evidence for ghc/ghc, a Haskell project with 3,275 GitHub stars. SynthScan examined 259,785 lines of code across 1260 source files, recording 874 pattern matches distributed across 17 syntactic categories. The legacy adjusted pattern signal is 3.6 (Low pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.
Can maintainers explain intent, assumptions, and trade-offs? 740 finding(s).
Are imports declared and package/API names verified? 50 finding(s).
Are wrappers, guards, and repeated structures necessary? 123 finding(s).
Which changes need focused human review? 874 finding(s).
This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 874 distinct pattern matches across 17 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | .gitlab-ci.yml | 41 | # Makes ci.sh isolate CABAL_DIR | COMMENT |
| LOW | .gitlab-ci.yml | 81 | # across all of the platforms which we support. In addition, we push | COMMENT |
| LOW | .gitlab-ci.yml | 101 | # | COMMENT |
| LOW | .gitlab-ci.yml | 201 | # | COMMENT |
| LOW | .gitlab-ci.yml | 221 | # though. The interruptible flag is *per job*, but once a pipeline has run | COMMENT |
| LOW | .gitlab-ci.yml | 801 | # pipeline. | COMMENT |
| LOW | hie.yaml | 1 | # This is a IDE configuration file which tells IDEs such as `ghcide` how | COMMENT |
| LOW | .gitlab/ci.sh | 261 | git config user.email "ghc-ci@gitlab-haskell.org" | COMMENT |
| LOW | .gitlab/rel_eng/upload.sh | 1 | #!/usr/bin/env nix-shell | COMMENT |
| LOW | .gitlab/rel_eng/upload.sh | 21 | # | COMMENT |
| LOW | hadrian/stack.yaml | 1 | # This is a Stack project-level configuration file. It allows Stack to build the | COMMENT |
| LOW | hadrian/hie.yaml | 1 | # This is a IDE configuration file which tells IDEs such as `ghcide` how | COMMENT |
| LOW | rts/Weak.c | 1 | /* ----------------------------------------------------------------------------- | COMMENT |
| LOW | rts/Weak.c | 121 | } | COMMENT |
| LOW | rts/IOManager.h | 61 | #endif | COMMENT |
| LOW | rts/IOManager.h | 81 | #define IOMGR_ENABLED_WIN32_LEGACY | COMMENT |
| LOW | rts/IOManager.h | 101 | #elif defined(IOMGR_DEFAULT_NON_THREADED_SELECTBIS) | COMMENT |
| LOW | rts/IOManager.h | 121 | #define IOMGR_ENABLED_STR_SELECT "" | COMMENT |
| LOW | rts/IOManager.h | 161 | #if defined(IOMGR_ENABLED_SELECT) | COMMENT |
| LOW | rts/PathUtils.h | 21 | #define open wopen | COMMENT |
| LOW | rts/xxhash.h | 321 | */ | COMMENT |
| LOW | rts/xxhash.h | 361 | # undef XXH32 | COMMENT |
| LOW | rts/xxhash.h | 381 | # undef XXH3_64bits | COMMENT |
| LOW | rts/xxhash.h | 421 | # define XXH_IPREF(Id) XXH_NAMESPACE ## Id | COMMENT |
| LOW | rts/xxhash.h | 441 | * Stable API | COMMENT |
| LOW | rts/xxhash.h | 461 | # define XXH_NAME2(A,B) XXH_CAT(A,B) | COMMENT |
| LOW | rts/xxhash.h | 481 | # define XXH64_canonicalFromHash XXH_NAME2(XXH_NAMESPACE, XXH64_canonicalFromHash) | COMMENT |
| LOW | rts/xxhash.h | 501 | # define XXH3_128bits XXH_NAME2(XXH_NAMESPACE, XXH3_128bits) | COMMENT |
| LOW | rts/xxhash.h | 521 | COMMENT | |
| LOW | rts/xxhash.h | 1701 | XXH32_hash_t reserved32; /*!< Reserved field, needed for padding anyways*/ | COMMENT |
| LOW | rts/xxhash.h | 2301 | # define XXH_FORCE_MEMORY_ACCESS 1 | COMMENT |
| LOW | rts/xxhash.h | 2321 | # define XXH_FORCE_ALIGN_CHECK 1 | COMMENT |
| LOW | rts/xxhash.h | 2421 | # define XXH_NO_INLINE static | COMMENT |
| LOW | rts/xxhash.h | 2441 | # define XXH_STATIC static | COMMENT |
| LOW | rts/xxhash.h | 2481 | # else | COMMENT |
| LOW | rts/xxhash.h | 2541 | ***************************************/ | COMMENT |
| LOW | rts/xxhash.h | 2781 | * @p x and @p r may be evaluated multiple times. | COMMENT |
| LOW | rts/xxhash.h | 2901 | */ | COMMENT |
| LOW | rts/xxhash.h | 3821 | #if (defined(__GNUC__) && (__GNUC__ >= 3)) \ | COMMENT |
| LOW | rts/xxhash.h | 3841 | #endif | COMMENT |
| LOW | rts/xxhash.h | 3981 | || (defined(__BYTE_ORDER__) && __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__) \ | COMMENT |
| LOW | rts/xxhash.h | 4001 | /* __ARM_FEATURE_SVE is only supported by GCC & Clang. */ | COMMENT |
| LOW | rts/xxhash.h | 4021 | # elif XXH_VECTOR == XXH_SSE2 /* sse2 */ | COMMENT |
| LOW | rts/xxhash.h | 4221 | # pragma push_macro("vector") | COMMENT |
| LOW | rts/xxhash.h | 4241 | typedef __vector unsigned xxh_u32x4; | COMMENT |
| LOW | rts/xxhash.h | 4341 | # if XXH_SIZE_OPT >= 1 | COMMENT |
| LOW | rts/xxhash.h | 4861 | /* ======= Long Keys ======= */ | COMMENT |
| LOW | rts/xxhash.h | 5921 | typedef void (*XXH3_f_accumulate)(xxh_u64* XXH_RESTRICT, const xxh_u8* XXH_RESTRICT, const xxh_u8* XXH_RESTRICT, size_t) | COMMENT |
| LOW | rts/xxhash.h | 5941 | COMMENT | |
| LOW | rts/xxhash.h | 5961 | #elif (XXH_VECTOR == XXH_SVE) | COMMENT |
| LOW | rts/RetainerProfile.c | 281 | timesAnyObjectVisited++; | COMMENT |
| LOW | rts/Task.h | 121 | Condition cond; // used for sleeping & waking up this task | COMMENT |
| LOW | rts/Task.h | 201 | // Create a new Task for a bound thread. This Task must be released | COMMENT |
| LOW | rts/Task.h | 221 | void freeMyTask(void); | COMMENT |
| LOW | rts/Task.h | 241 | #if defined(THREADED_RTS) | COMMENT |
| LOW | rts/Task.h | 261 | COMMENT | |
| LOW | rts/Task.h | 301 | // and in practice on some platforms it is a pointer type. | COMMENT |
| LOW | rts/StablePtr.h | 41 | #if defined(THREADED_RTS) | COMMENT |
| LOW | rts/STM.c | 81 | #include "RtsFlags.h" | COMMENT |
| LOW | rts/STM.c | 281 | // otherwise. | COMMENT |
| 566 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | .gitlab/common.sh | 2 | # ---------------------- | COMMENT |
| MEDIUM | rts/sm/Sanity.c | 254 | * Root ────→ │ Just │ ╭───→ │ Weak# │ ←─────── weak_ptr_list | COMMENT |
| MEDIUM | rts/sm/Sanity.c | 299 | * ╰───→ │ Weak# │ ←─────┤ │ | COMMENT |
| MEDIUM | testsuite/driver/testglobals.py | 10 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | testsuite/driver/testglobals.py | 285 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | testsuite/driver/testglobals.py | 350 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | testsuite/driver/perf_notes.py | 885 | # -------------------------------------------- | COMMENT |
| MEDIUM⚡ | testsuite/driver/testlib.py | 1172 | # ---------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | testsuite/driver/testlib.py | 3417 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | testsuite/driver/testlib.py | 120 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | testsuite/driver/testlib.py | 1471 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | testsuite/driver/testlib.py | 1504 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | testsuite/driver/testlib.py | 1916 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | testsuite/driver/testlib.py | 1937 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | testsuite/driver/testlib.py | 1967 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | testsuite/driver/testlib.py | 2140 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | testsuite/driver/testlib.py | 2273 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | testsuite/driver/testlib.py | 2402 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | testsuite/driver/testlib.py | 2508 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | testsuite/driver/testlib.py | 2622 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | testsuite/driver/testlib.py | 3299 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | testsuite/driver/testlib.py | 3584 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | testsuite/driver/testlib.py | 3597 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | testsuite/driver/runtests.py | 72 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | testsuite/driver/runtests.py | 340 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | utils/completion/ghc.bash | 1 | # ======================================== | COMMENT |
| MEDIUM⚡ | utils/completion/ghc.bash | 3 | # ======================================== | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | .gitlab/rel_eng/upload_ghc_libs.py | 19 | CODE | |
| LOW | .gitlab/rel_eng/upload_ghc_libs.py | 23 | CODE | |
| LOW | .gitlab/rel_eng/upload_ghc_libs.py | 23 | CODE | |
| LOW | .gitlab/rel_eng/mk-ghcup-metadata/mk_ghcup_metadata.py | 27 | CODE | |
| LOW | .gitlab/rel_eng/mk-ghcup-metadata/mk_ghcup_metadata.py | 27 | CODE | |
| LOW | .gitlab/rel_eng/mk-ghcup-metadata/mk_ghcup_metadata.py | 28 | CODE | |
| LOW | .gitlab/rel_eng/mk-ghcup-metadata/mk_ghcup_metadata.py | 29 | CODE | |
| LOW | .gitlab/rel_eng/mk-ghcup-metadata/mk_ghcup_metadata.py | 31 | CODE | |
| LOW | .gitlab/rel_eng/mk-ghcup-metadata/mk_ghcup_metadata.py | 31 | CODE | |
| LOW | .gitlab/rel_eng/mk-ghcup-metadata/mk_ghcup_metadata.py | 31 | CODE | |
| LOW | .gitlab/rel_eng/mk-ghcup-metadata/mk_ghcup_metadata.py | 31 | CODE | |
| LOW | .gitlab/rel_eng/mk-ghcup-metadata/mk_ghcup_metadata.py | 32 | CODE | |
| LOW | .gitlab/rel_eng/mk-ghcup-metadata/mk_ghcup_metadata.py | 33 | CODE | |
| LOW | .gitlab/rel_eng/mk-ghcup-metadata/mk_ghcup_metadata.py | 34 | CODE | |
| LOW | .gitlab/rel_eng/mk-ghcup-metadata/mk_ghcup_metadata.py | 35 | CODE | |
| LOW | rts/gen_event_types.py | 6 | CODE | |
| LOW | testsuite/driver/my_typing.py | 11 | CODE | |
| LOW | testsuite/driver/my_typing.py | 12 | CODE | |
| LOW | testsuite/driver/my_typing.py | 21 | CODE | |
| LOW | testsuite/driver/testglobals.py | 5 | CODE | |
| LOW | testsuite/driver/testglobals.py | 7 | CODE | |
| LOW | testsuite/driver/testglobals.py | 8 | CODE | |
| LOW | testsuite/driver/cpu_features.py | 3 | CODE | |
| LOW | testsuite/driver/cpu_features.py | 4 | CODE | |
| LOW | testsuite/driver/perf_notes.py | 14 | CODE | |
| LOW | testsuite/driver/perf_notes.py | 22 | CODE | |
| LOW | testsuite/driver/perf_notes.py | 29 | CODE | |
| LOW | testsuite/driver/testlib.py | 18 | CODE | |
| LOW | testsuite/driver/testlib.py | 26 | CODE | |
| LOW | testsuite/driver/testlib.py | 31 | CODE | |
| LOW | testsuite/driver/testlib.py | 32 | CODE | |
| LOW | testsuite/driver/testlib.py | 36 | CODE | |
| LOW | testsuite/driver/junit.py | 1 | CODE | |
| LOW | testsuite/driver/testutil.py | 5 | CODE | |
| LOW | testsuite/driver/testutil.py | 8 | CODE | |
| LOW | testsuite/driver/_elffile.py | 33 | CODE | |
| LOW | testsuite/driver/runtests.py | 15 | CODE | |
| LOW | testsuite/driver/runtests.py | 38 | CODE | |
| LOW | testsuite/driver/runtests.py | 38 | CODE | |
| LOW | testsuite/driver/runtests.py | 279 | CODE | |
| LOW | testsuite/tests/linters/regex-linters/linter.py | 5 | CODE | |
| LOW | testsuite/tests/linters/regex-linters/linter.py | 11 | CODE | |
| LOW | testsuite/tests/linters/regex-linters/linter.py | 11 | CODE | |
| LOW | utils/haddock/doc/conf.py | 3 | CODE | |
| LOW | utils/haddock/doc/conf.py | 4 | CODE | |
| LOW | utils/haddock/doc/conf.py | 5 | CODE | |
| LOW | docs/users_guide/conf.py | 14 | CODE | |
| LOW | docs/users_guide/utils.py | 3 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | hadrian/bootstrap/bootstrap.py | 298 | except: | CODE |
| HIGH | testsuite/driver/cpuinfo.py | 353 | except ImportError: | CODE |
| HIGH | testsuite/driver/cpuinfo.py | 611 | except Exception as err: | CODE |
| HIGH | testsuite/driver/cpuinfo.py | 1781 | except Exception: | CODE |
| HIGH | testsuite/driver/cpuinfo.py | 1769 | except Exception: | CODE |
| HIGH | testsuite/driver/testlib.py | 2721 | except Exception: | CODE |
| HIGH | testsuite/driver/testutil.py | 122 | except: | CODE |
| HIGH | testsuite/driver/runtests.py | 522 | except KeyboardInterrupt: | CODE |
| HIGH | testsuite/tests/linters/regex-linters/linter.py | 87 | except UnicodeDecodeError as e: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | .gitlab/rel_eng/fetch-gitlab-artifacts/fetch_gitlab.py | 149 | except Exception as e: | CODE |
| MEDIUM | testsuite/driver/cpuinfo.py | 461 | def _to_decimal_string(ticks): | CODE |
| MEDIUM | testsuite/driver/cpuinfo.py | 491 | def _hz_short_to_full(ticks, scale): | CODE |
| MEDIUM | testsuite/driver/cpuinfo.py | 510 | def _hz_friendly_to_full(hz_string): | CODE |
| MEDIUM | testsuite/driver/cpuinfo.py | 532 | def _hz_short_to_friendly(ticks, scale): | CODE |
| MEDIUM | testsuite/driver/cpuinfo.py | 690 | def _parse_dmesg_output(output): | CODE |
| LOW | testsuite/driver/cpuinfo.py | 394 | except Exception: | CODE |
| LOW | testsuite/driver/cpuinfo.py | 452 | except Exception: | CODE |
| LOW | testsuite/driver/cpuinfo.py | 488 | except Exception: | CODE |
| LOW | testsuite/driver/cpuinfo.py | 507 | except Exception: | CODE |
| LOW | testsuite/driver/cpuinfo.py | 529 | except Exception: | CODE |
| LOW | testsuite/driver/cpuinfo.py | 563 | except Exception: | CODE |
| LOW | testsuite/driver/cpuinfo.py | 611 | except Exception as err: | CODE |
| LOW | testsuite/driver/cpuinfo.py | 779 | except Exception as err: | CODE |
| LOW | testsuite/driver/cpuinfo.py | 1604 | except Exception as err: | CODE |
| LOW | testsuite/driver/cpuinfo.py | 1717 | except Exception as err: | CODE |
| LOW | testsuite/driver/cpuinfo.py | 1769 | except Exception: | CODE |
| LOW | testsuite/driver/cpuinfo.py | 1781 | except Exception: | CODE |
| LOW | testsuite/driver/cpuinfo.py | 1814 | except Exception as err: | CODE |
| LOW | testsuite/driver/cpuinfo.py | 1861 | except Exception as err: | CODE |
| LOW | testsuite/driver/cpuinfo.py | 1958 | except Exception as err: | CODE |
| LOW | testsuite/driver/cpuinfo.py | 2117 | except Exception as err: | CODE |
| LOW | testsuite/driver/cpuinfo.py | 2205 | except Exception as err: | CODE |
| LOW | testsuite/driver/cpuinfo.py | 2280 | except Exception as err: | CODE |
| LOW | testsuite/driver/cpuinfo.py | 2362 | except Exception as err: | CODE |
| LOW | testsuite/driver/cpuinfo.py | 2446 | except Exception as err: | CODE |
| LOW | testsuite/driver/cpuinfo.py | 2552 | except Exception as err: | CODE |
| LOW | testsuite/driver/cpuinfo.py | 2620 | except Exception as err: | CODE |
| LOW | testsuite/driver/cpuinfo.py | 2654 | except Exception as err: | CODE |
| LOW | testsuite/driver/cpuinfo.py | 2797 | except Exception as err: | CODE |
| MEDIUM | testsuite/driver/testlib.py | 2225 | def report_stats(name, way, metric, gen_stat): | CODE |
| LOW | testsuite/driver/testlib.py | 732 | except Exception as e: | CODE |
| LOW | testsuite/driver/testlib.py | 1714 | except Exception as e: | CODE |
| LOW | testsuite/driver/testlib.py | 1725 | except Exception as e: | CODE |
| LOW | testsuite/driver/testlib.py | 1733 | except Exception as e: | CODE |
| LOW | testsuite/driver/testlib.py | 2721 | except Exception: | CODE |
| LOW | testsuite/driver/testlib.py | 3296 | except Exception: | CODE |
| LOW | testsuite/driver/testlib.py | 3444 | except Exception as e: | CODE |
| LOW | testsuite/driver/testlib.py | 3455 | except Exception as e: | CODE |
| LOW | testsuite/driver/testlib.py | 3559 | except Exception as e: | CODE |
| LOW | testsuite/driver/runtests.py | 358 | except Exception as e: | CODE |
| LOW | testsuite/driver/runtests.py | 471 | except Exception as e: | CODE |
| LOW | …uite/tests/linters/regex-linters/check-rts-includes.py | 22 | except Exception as e: | CODE |
| LOW | …uite/tests/linters/regex-linters/check-rts-includes.py | 52 | except Exception as e: | CODE |
| LOW | …uite/tests/linters/regex-linters/check-rts-includes.py | 94 | except Exception as e: | CODE |
| LOW | testsuite/tests/linters/regex-linters/linter.py | 89 | except Exception as e: | STRING |
| MEDIUM | testsuite/tests/linters/checkUniques/check-uniques.py | 40 | print("Error: check-uniques: run from wrong directory?") | CODE |
| MEDIUM | testsuite/tests/linters/checkUniques/check-uniques.py | 44 | print("Error: check-uniques: Found Unique conflict") | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | rts/gen_event_types.py | 157 | def generate_event_types_array() -> str: | CODE |
| LOW | rts/gen_event_types.py | 184 | def generate_event_types_defines() -> str: | CODE |
| LOW | testsuite/driver/cpuinfo.py | 251 | def sysctl_machdep_cpu_hw_cpufrequency(): | CODE |
| LOW | testsuite/driver/cpuinfo.py | 348 | def _read_windows_registry_key(key_name, field_name): | CODE |
| LOW | testsuite/driver/cpuinfo.py | 638 | def _parse_cpu_brand_string_dx(cpu_string): | CODE |
| LOW | testsuite/driver/cpuinfo.py | 892 | def _filter_dict_keys_with_empty_values(info, acceptable_values = {}): | CODE |
| LOW | testsuite/driver/cpuinfo.py | 1100 | def get_max_extension_support(self): | CODE |
| LOW | testsuite/driver/cpuinfo.py | 1537 | def _get_cpu_info_from_cpuid_actual(): | CODE |
| LOW | testsuite/driver/cpuinfo.py | 1612 | def _get_cpu_info_from_cpuid_subprocess_wrapper(queue): | CODE |
| LOW | testsuite/driver/cpuinfo.py | 1723 | def _get_cpu_info_from_proc_cpuinfo(): | CODE |
| LOW | testsuite/driver/cpuinfo.py | 1819 | def _get_cpu_info_from_cpufreq_info(): | CODE |
| LOW | testsuite/driver/cpuinfo.py | 1995 | def _get_cpu_info_from_ibm_pa_features(): | CODE |
| LOW | testsuite/driver/cpuinfo.py | 2122 | def _get_cpu_info_from_cat_var_run_dmesg_boot(): | CODE |
| LOW | testsuite/driver/cpuinfo.py | 2146 | def _get_cpu_info_from_sysctl(): | CODE |
| LOW | testsuite/driver/cpuinfo.py | 2210 | def _get_cpu_info_from_sysinfo(): | CODE |
| LOW | testsuite/driver/cpuinfo.py | 2451 | def _get_cpu_info_from_registry(): | CODE |
| LOW | testsuite/driver/cpuinfo.py | 2624 | def _get_cpu_info_from_platform_uname(): | CODE |
| LOW | testsuite/driver/perf_notes.py | 252 | def parse_allowed_perf_changes(commitMsg: str | CODE |
| LOW | testsuite/driver/perf_notes.py | 538 | def get_commit_metric_value_str_or_none(gitNoteRef, | CODE |
| LOW⚡ | testsuite/driver/testlib.py | 606 | def pre_cmd_timeout_multiplier( val: float ): | CODE |
| LOW⚡ | testsuite/driver/testlib.py | 609 | def _pre_cmd_timeout_multiplier( name, opts, v ): | CODE |
| LOW⚡ | testsuite/driver/testlib.py | 612 | def compile_timeout_multiplier( val: float ): | CODE |
| LOW⚡ | testsuite/driver/testlib.py | 615 | def _compile_timeout_multiplier( name, opts, v ): | CODE |
| LOW⚡ | testsuite/driver/testlib.py | 1182 | def collect_runtime_residency(tolerance_pct: float): | CODE |
| LOW⚡ | testsuite/driver/testlib.py | 1188 | def collect_compiler_residency(tolerance_pct: float): | CODE |
| LOW⚡ | testsuite/driver/testlib.py | 3406 | def exit_code_specific_message(exit_code: int) -> str: | CODE |
| LOW⚡ | testsuite/driver/testlib.py | 3410 | def format_bad_exit_code_message(exit_code: int) -> str: | CODE |
| LOW | testsuite/driver/testlib.py | 379 | def req_ghc_with_threaded_rts( name, opts ): | CODE |
| LOW | testsuite/driver/testlib.py | 1044 | def have_fully_static_linking( ) -> bool: | CODE |
| LOW | testsuite/driver/testlib.py | 1125 | def collect_compiler_perf_counters(counters: List[str], deviation: Optional[int] = None): | CODE |
| LOW | testsuite/driver/testlib.py | 1133 | def _collect_compiler_perf_counters(counters: Set[str], deviation: Optional[int] = None): | CODE |
| LOW | testsuite/driver/testlib.py | 1375 | def _normalise_whitespace_fun(name, opts, f): | CODE |
| LOW | testsuite/driver/testlib.py | 1563 | def get_package_cache_timestamp() -> float: | CODE |
| LOW | testsuite/driver/testutil.py | 95 | def residency_testing_metrics(): | CODE |
| LOW | …hc-internal/tools/ucd2haskell/tests/check_test_data.py | 224 | def general_category_hash_with_salt(s: c_int, c: str): | CODE |
| LOW | …hc-internal/tools/ucd2haskell/tests/check_test_data.py | 227 | def general_category_hash_check(acc, c: str): | CODE |
| LOW | …hc-internal/tools/ucd2haskell/tests/check_test_data.py | 243 | def case_mapping_hash_with_salt(s: c_int, c: str): | CODE |
| LOW | …k/haddock-api/resources/html/js-src/details-helper.tsx | 374 | function putInstanceListsInDefaultState() { | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | .gitlab/rel_eng/upload_ghc_libs.py | 213 | CODE | |
| LOW | .gitlab/rel_eng/mk-ghcup-metadata/mk_ghcup_metadata.py | 316 | CODE | |
| LOW | .gitlab/rel_eng/fetch-gitlab-artifacts/fetch_gitlab.py | 69 | CODE | |
| LOW | hadrian/bootstrap/bootstrap.py | 159 | CODE | |
| LOW | hadrian/bootstrap/bootstrap.py | 279 | CODE | |
| LOW | hadrian/bootstrap/bootstrap.py | 370 | CODE | |
| LOW | testsuite/driver/cpuinfo.py | 406 | CODE | |
| LOW | testsuite/driver/cpuinfo.py | 428 | CODE | |
| LOW | testsuite/driver/cpuinfo.py | 510 | CODE | |
| LOW | testsuite/driver/cpuinfo.py | 532 | CODE | |
| LOW | testsuite/driver/cpuinfo.py | 638 | CODE | |
| LOW | testsuite/driver/cpuinfo.py | 690 | CODE | |
| LOW | testsuite/driver/cpuinfo.py | 785 | CODE | |
| LOW | testsuite/driver/cpuinfo.py | 1623 | CODE | |
| LOW | testsuite/driver/cpuinfo.py | 1723 | CODE | |
| LOW | testsuite/driver/cpuinfo.py | 2220 | CODE | |
| LOW | testsuite/driver/cpuinfo.py | 1388 | CODE | |
| LOW | testsuite/driver/perf_notes.py | 286 | CODE | |
| LOW | testsuite/driver/perf_notes.py | 397 | CODE | |
| LOW | testsuite/driver/testlib.py | 664 | CODE | |
| LOW | testsuite/driver/testlib.py | 741 | CODE | |
| LOW | testsuite/driver/testlib.py | 1576 | CODE | |
| LOW | testsuite/driver/testlib.py | 1736 | CODE | |
| LOW | testsuite/driver/testlib.py | 2291 | CODE | |
| LOW | testsuite/driver/testlib.py | 2607 | CODE | |
| LOW | testsuite/driver/testlib.py | 2757 | CODE | |
| LOW | testsuite/driver/testlib.py | 2814 | CODE | |
| LOW | testsuite/driver/testlib.py | 3264 | CODE | |
| LOW | testsuite/driver/testlib.py | 3337 | CODE | |
| LOW | testsuite/driver/testlib.py | 3469 | CODE | |
| LOW | testsuite/driver/testlib.py | 3587 | CODE | |
| LOW | testsuite/driver/testlib.py | 3751 | CODE | |
| LOW | testsuite/driver/testutil.py | 105 | CODE | |
| LOW | …uite/tests/linters/regex-linters/check-rts-includes.py | 40 | CODE | |
| LOW | …uite/tests/linters/regex-linters/check-rts-includes.py | 79 | CODE | |
| LOW | testsuite/tests/linters/regex-linters/linter.py | 80 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | testsuite/driver/cpuinfo.py | 3 | # This file is used in GHC's testsuite driver to determine the CPU features | COMMENT |
| MEDIUM | testsuite/driver/testlib.py | 692 | # Define a set of generic stat tests | COMMENT |
| MEDIUM⚡ | utils/completion/ghc.bash | 7 | # This file implements bash completion for both GHC and GHCi. | COMMENT |
| MEDIUM | docs/users_guide/flags.py | 3 | # This file defines a Sphinx extension to document GHC flags. | COMMENT |
| MEDIUM | docs/users_guide/flags.py | 502 | # Create a flagprint node | COMMENT |
| MEDIUM | docs/users_guide/flags.py | 593 | # Create a extensionprint node | COMMENT |
| MEDIUM | docs/users_guide/conf.py | 5 | # This file is execfile()d with the current directory set to its | COMMENT |
| MEDIUM | docs/users_guide/conf.py | 153 | # The following functions parse flag declarations, and then have two jobs. First | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | rts/sm/NonMovingSweep.c | 351 | // Helper for nonmovingSweepStableNameTable. Essentially nonmovingIsAlive, | COMMENT |
| MEDIUM | rts/include/rts/OSThreads.h | 76 | // robust against system time changes and is likely cheaper to query. | COMMENT |
| LOW | testsuite/driver/cpuinfo.py | 862 | # Run the sestatus, and just return if it failed to run | COMMENT |
| MEDIUM | testsuite/driver/cpu_features.py | 8 | # These aren't comprehensive; they are only CPU features that we care about | COMMENT |
| MEDIUM | testsuite/driver/perf_notes.py | 6 | # This file will be a utility to help facilitate the comparison of performance | COMMENT |
| MEDIUM | testsuite/driver/perf_notes.py | 774 | # Generates simple fake data. Likely not comprehensive enough to catch all edge cases. | COMMENT |
| MEDIUM | utils/llvm-targets/gen-data-layout.sh | 12 | # To utilize it run it as | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | rts/TraverseHeap.c | 1002 | // and don't forget to follow the SRT | COMMENT |
| LOW | rts/RtsAPI.c | 601 | // current thread. Don't forget to release the cap first though. | COMMENT |
| LOW | rts/sm/Scav.c | 2019 | // and don't forget to follow the SRT | COMMENT |
| LOW | rts/sm/Compact.c | 941 | // Don't forget to update the free ptr in the block desc | COMMENT |
| LOW | rts/sm/Evac.c | 425 | /* Don't forget to set the gct->failed_to_evac flag if we didn't get | COMMENT |
| LOW | rts/sm/Evac.c | 565 | /* Don't forget to set the gct->failed_to_evac flag if we didn't get | COMMENT |
| LOW | rts/sm/Evac.c | 582 | /* Don't forget to set the gct->failed_to_evac flag if we didn't get | COMMENT |
| LOW | rts/sm/NonMovingMark.c | 1215 | // and don't forget to follow the SRT | COMMENT |
| LOW | rts/sm/GC.c | 1791 | // don't forget to fill it with zeros! | COMMENT |
| LOW | rts/include/rts/storage/ClosureTypes.h | 15 | * If you add or delete any closure types, don't forget to update the following, | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | .gitlab/ci.sh | 394 | # Check if the bindist has directory structure | COMMENT |
| LOW | testsuite/driver/perf_notes.py | 31 | # Check if "git rev-parse" can be run successfully. | COMMENT |
| LOW | testsuite/driver/perf_notes.py | 45 | # Check if the worktree is dirty. | COMMENT |
| LOW | testsuite/driver/perf_notes.py | 203 | # Check if a str is in a 40 character git commit hash. | COMMENT |
| LOW | testsuite/driver/testlib.py | 2545 | # Set stdout to be line-buffered to match the compiled environment. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | testsuite/driver/testlib.py | 470 | def helper( name: TestName, opts ): | CODE |
| LOW | testsuite/driver/testlib.py | 481 | def helper( name: TestName, opts ): | CODE |
| LOW | testsuite/driver/testlib.py | 489 | def helper( name: TestName, opts ): | CODE |
| LOW | testsuite/driver/testlib.py | 514 | def helper( name, opts, bug=bug ): | CODE |
| LOW | testsuite/driver/testlib.py | 525 | def helper( name: TestName, opts ): | CODE |
| LOW | testsuite/driver/testlib.py | 546 | def helper( name: TestName, opts ): | CODE |
| LOW | testsuite/driver/testlib.py | 566 | def helper( name: TestName, opts ): | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | testsuite/driver/testlib.py | 3317 | cd $working_dir && perf stat ... $cmd | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | rts/RtsMain.c | 41 | // NOTE: This function is marked as _noreturn_ in Main.h | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | rts/win32/AsyncWinIO.c | 403 | because in principle we need to check if the capability work queue is now | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | utils/haddock/html-test/ref/Bug546.html | 94 | >lorem ipsum</dd | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | testsuite/driver/cpuinfo.py | 2779 | CODE |