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 presents the forensic synthetic code analysis of ghc/ghc, a Haskell project with 3,271 GitHub stars. SynthScan v2.0 examined 257,751 lines of code across 1249 source files, recording 852 pattern matches distributed across 16 syntactic categories. The overall adjusted score of 3.4 places this repository in the Likely human-written band.
The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).
This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.
Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.
This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.
The scanner identified 852 distinct pattern matches across 16 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | .gitlab-ci.yml | 41 | COMMENT | |
| LOW | .gitlab-ci.yml | 81 | # 2. merge requests. Here we perform a slightly less exhaustive battery of | COMMENT |
| LOW | .gitlab-ci.yml | 161 | COMMENT | |
| LOW | .gitlab-ci.yml | 181 | ### | COMMENT |
| LOW | .gitlab-ci.yml | 781 | - if: '$RELEASE_JOB == "yes"' | 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.name "GHC GitLab CI" | COMMENT |
| LOW | .gitlab/ci.sh | 901 | # From man CP(1) | 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 | * RTS side and the Haskell code in the base library. By treating them as | COMMENT |
| LOW | rts/IOManager.h | 81 | * IOMGR_DEFAULT_{NON_}THREADED_<name> flags to derived a CPP variable | COMMENT |
| LOW | rts/IOManager.h | 101 | #elif defined(IOMGR_DEFAULT_NON_THREADED_WIN32_LEGACY) | COMMENT |
| LOW | rts/IOManager.h | 121 | #endif | 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 | 601 | // Since in both cases e->new_value == e->expected_value. But in (1) | COMMENT |
| LOW | rts/STM.c | 721 | } | COMMENT |
| 556 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 | 349 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | testsuite/driver/perf_notes.py | 863 | # -------------------------------------------- | COMMENT |
| MEDIUM⚡ | testsuite/driver/testlib.py | 1181 | # ---------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | testsuite/driver/testlib.py | 3389 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | testsuite/driver/testlib.py | 120 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | testsuite/driver/testlib.py | 1480 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | testsuite/driver/testlib.py | 1500 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | testsuite/driver/testlib.py | 1896 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | testsuite/driver/testlib.py | 1917 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | testsuite/driver/testlib.py | 1947 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | testsuite/driver/testlib.py | 2120 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | testsuite/driver/testlib.py | 2253 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | testsuite/driver/testlib.py | 2382 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | testsuite/driver/testlib.py | 2484 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | testsuite/driver/testlib.py | 2597 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | testsuite/driver/testlib.py | 3271 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | testsuite/driver/testlib.py | 3556 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | testsuite/driver/testlib.py | 3569 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | testsuite/driver/runtests.py | 66 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | testsuite/driver/runtests.py | 330 | # ----------------------------------------------------------------------------- | 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 | 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 | 269 | 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 |
|---|---|---|---|---|
| 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 | 2205 | def report_stats(name, way, metric, gen_stat): | CODE |
| LOW⚡ | testsuite/driver/testlib.py | 1709 | except Exception as e: | CODE |
| LOW⚡ | testsuite/driver/testlib.py | 1719 | except Exception as e: | CODE |
| LOW⚡ | testsuite/driver/testlib.py | 1727 | except Exception as e: | CODE |
| LOW | testsuite/driver/testlib.py | 732 | except Exception as e: | CODE |
| LOW | testsuite/driver/testlib.py | 2696 | except Exception: | CODE |
| LOW | testsuite/driver/testlib.py | 3268 | except Exception: | CODE |
| LOW | testsuite/driver/testlib.py | 3416 | except Exception as e: | CODE |
| LOW | testsuite/driver/testlib.py | 3427 | except Exception as e: | CODE |
| LOW | testsuite/driver/testlib.py | 3531 | except Exception as e: | CODE |
| LOW | testsuite/driver/runtests.py | 348 | except Exception as e: | CODE |
| LOW | testsuite/driver/runtests.py | 463 | 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 | 248 | 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 | 1191 | def collect_runtime_residency(tolerance_pct: float): | CODE |
| LOW⚡ | testsuite/driver/testlib.py | 1197 | def collect_compiler_residency(tolerance_pct: float): | CODE |
| LOW⚡ | testsuite/driver/testlib.py | 3378 | def exit_code_specific_message(exit_code: int) -> str: | CODE |
| LOW⚡ | testsuite/driver/testlib.py | 3382 | 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 | 1053 | def have_fully_static_linking( ) -> bool: | CODE |
| LOW | testsuite/driver/testlib.py | 1134 | def collect_compiler_perf_counters(counters: List[str], deviation: Optional[int] = None): | CODE |
| LOW | testsuite/driver/testlib.py | 1142 | def _collect_compiler_perf_counters(counters: Set[str], deviation: Optional[int] = None): | CODE |
| LOW | testsuite/driver/testlib.py | 1384 | def _normalise_whitespace_fun(name, opts, f): | CODE |
| LOW | testsuite/driver/testlib.py | 1559 | 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 |
|---|---|---|---|---|
| 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 |
|---|---|---|---|---|
| LOW | .gitlab/rel_eng/upload_ghc_libs.py | 213 | 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 | 282 | CODE | |
| LOW | testsuite/driver/perf_notes.py | 393 | CODE | |
| LOW | testsuite/driver/testlib.py | 664 | CODE | |
| LOW | testsuite/driver/testlib.py | 741 | CODE | |
| LOW | testsuite/driver/testlib.py | 1572 | CODE | |
| LOW | testsuite/driver/testlib.py | 1730 | CODE | |
| LOW | testsuite/driver/testlib.py | 2271 | CODE | |
| LOW | testsuite/driver/testlib.py | 2582 | CODE | |
| LOW | testsuite/driver/testlib.py | 2732 | CODE | |
| LOW | testsuite/driver/testlib.py | 2789 | CODE | |
| LOW | testsuite/driver/testlib.py | 3236 | CODE | |
| LOW | testsuite/driver/testlib.py | 3309 | CODE | |
| LOW | testsuite/driver/testlib.py | 3441 | CODE | |
| LOW | testsuite/driver/testlib.py | 3559 | 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 | 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 | 752 | # 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 | 2032 | // and don't forget to follow the SRT | COMMENT |
| LOW | rts/sm/Compact.c | 940 | // Don't forget to update the free ptr in the block desc | COMMENT |
| LOW | rts/sm/Evac.c | 414 | /* Don't forget to set the gct->failed_to_evac flag if we didn't get | COMMENT |
| LOW | rts/sm/Evac.c | 554 | /* Don't forget to set the gct->failed_to_evac flag if we didn't get | COMMENT |
| LOW | rts/sm/Evac.c | 571 | /* Don't forget to set the gct->failed_to_evac flag if we didn't get | COMMENT |
| LOW | rts/sm/NonMovingMark.c | 1220 | // and don't forget to follow the SRT | COMMENT |
| LOW | rts/sm/GC.c | 1778 | // 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 | 393 | # 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 | 199 | # Check if a str is in a 40 character git commit hash. | COMMENT |
| LOW | testsuite/driver/testlib.py | 2521 | # 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 | 3289 | 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 |