Official NetHack Git Repository
This report summarizes scanner evidence for NetHack/NetHack, a C project with 3,969 GitHub stars. SynthScan examined 581,762 lines of code across 893 source files, recording 647 pattern matches distributed across 8 syntactic categories. The legacy adjusted pattern signal is 1.1 (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? 635 finding(s).
Are imports declared and package/API names verified? 4 finding(s).
Are wrappers, guards, and repeated structures necessary? 8 finding(s).
Which changes need focused human review? 647 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 647 distinct pattern matches across 8 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 | azure-pipelines.yml | 121 | export ADD_CURSES=Y | COMMENT |
| LOW | DEVEL/gitinfo.pl | 1 | #!/usr/bin/perl | COMMENT |
| LOW | DEVEL/hooksdir/NHgithook.pm | 61 | sub POST { | COMMENT |
| LOW | util/mdgrep.pl | 41 | # JUNK: | COMMENT |
| LOW | util/mdgrep.h | 21 | {"AMIGA", 0}, | COMMENT |
| LOW | util/mdgrep.h | 41 | {"CLIPPING", 0}, | COMMENT |
| LOW | util/mdgrep.h | 61 | {"DLB", 0}, | COMMENT |
| LOW | util/mdgrep.h | 81 | #else | COMMENT |
| LOW | util/mdgrep.h | 101 | #else | COMMENT |
| LOW | util/mdgrep.h | 121 | #else | COMMENT |
| LOW | util/mdgrep.h | 141 | #else | COMMENT |
| LOW | util/mdgrep.h | 161 | #else | COMMENT |
| LOW | util/mdgrep.h | 181 | {"UNICODE_DRAWING", 1}, | COMMENT |
| LOW | util/mdgrep.h | 201 | {"USER_SOUNDS", 1}, | COMMENT |
| LOW | util/mdgrep.h | 221 | {"WIN32_PLATFORM_HPCPRO", 1}, | COMMENT |
| LOW | util/mdgrep.h | 241 | {"WIN_CE_POCKETPC", 1}, | COMMENT |
| LOW | util/mdgrep.h | 261 | {"ZEROCOMP", 1}, | COMMENT |
| LOW | util/sftags.c | 21 | COMMENT | |
| LOW | util/sftags.c | 121 | #ifdef VMS | COMMENT |
| LOW | util/makedefs.c | 1 | /* NetHack 5.0 makedefs.c $NHDT-Date: 1702948590 2023/12/19 01:16:30 $ $NHDT-Branch: NetHack-5.0 $:$NHDT-Revision: 1. | COMMENT |
| LOW | util/makedefs.c | 21 | #include "context.h" | COMMENT |
| LOW | util/makedefs.c | 41 | #include <errno.h> | COMMENT |
| LOW | util/makedefs.c | 61 | #ifndef OPTIONS_FILE | COMMENT |
| LOW | util/makedefs.c | 81 | #if defined(MAC68K) && !defined(__MACH__) | COMMENT |
| LOW | util/makedefs.c | 101 | #define DGN_TEMPLATE "..\\dat\\%s" /* where dungeon.pdf file goes */ | COMMENT |
| LOW | util/recover.c | 21 | #include "rect.h" | COMMENT |
| LOW | util/sfctool.c | 21 | #include "win32api.h" | COMMENT |
| LOW | util/sfctool.c | 41 | #define RDTMODE "r" | COMMENT |
| LOW | win/tty/wintty.c | 21 | /*#define DECgraphicsOptimization*/ | COMMENT |
| LOW | win/tty/wintty.c | 41 | #endif | COMMENT |
| LOW | win/tty/wintty.c | 5261 | */ | COMMENT |
| LOW | win/tty/wintty.c | 5281 | #endif /* STATUS_HILITES */ | COMMENT |
| LOW | win/tty/wintty.c | 5301 | #undef AVTC_SOUND_PLAY | COMMENT |
| LOW | win/tty/termcap.c | 901 | COMMENT | |
| LOW | win/curses/cursdial.c | 1 | /* vim:set cin ft=c sw=4 sts=4 ts=8 et ai cino=Ls\:0t0(0 : -*- mode:c;fill-column:80;tab-width:8;c-basic-offset:4;indent | COMMENT |
| LOW | win/curses/cursmain.c | 21 | extern char erase_char, kill_char; | COMMENT |
| LOW | win/curses/Readme.txt | 61 | curses windowport are shown below. Copy any of these that you like to | COMMENT |
| LOW | win/curses/Readme.txt | 81 | # and status window on bottom. Placing either of these on the right or | COMMENT |
| LOW | win/Qt/qt_icon.cpp | 1 | // Copyright (c) Warwick Allison, 1999. | COMMENT |
| LOW | win/Qt/qt_icon.cpp | 21 | // worthwhile but with the 'single label using a style sheet for color' | COMMENT |
| LOW | win/Qt/qt_inv.cpp | 1 | // Copyright (c) Warwick Allison, 1999. | COMMENT |
| LOW | win/Qt/qt_inv.cpp | 21 | extern "C" { | COMMENT |
| LOW | win/Qt/qt_inv.cpp | 161 | // equipment showing the map tiles that the inventory objects | COMMENT |
| LOW | win/Qt/qt_set.cpp | 1 | // Copyright (c) Warwick Allison, 1999. | COMMENT |
| LOW | win/Qt/qt_set.cpp | 21 | #include "qt_main.h" | COMMENT |
| LOW | win/Qt/qt_set.cpp | 41 | // switch back and forth if desired; nothing forces the Zoomed setting to | COMMENT |
| LOW | win/Qt/qt_main.cpp | 1 | // Copyright (c) Warwick Allison, 1999. | COMMENT |
| LOW | win/Qt/qt_main.cpp | 21 | #include <QtWidgets/QtWidgets> | COMMENT |
| LOW | win/Qt/qt_main.cpp | 481 | #endif | COMMENT |
| LOW | win/Qt/qt_main.cpp | 801 | } else { | COMMENT |
| LOW | win/Qt/qt_main.cpp | 821 | // from getting inserted into the "Help" menu behind our back. | COMMENT |
| LOW | win/Qt/qt_svsel.cpp | 1 | // Copyright (c) Warwick Allison, 1999. | COMMENT |
| LOW | win/Qt/qt_svsel.cpp | 21 | // [ character two ] button with another character name | COMMENT |
| LOW | win/Qt/qt_svsel.cpp | 41 | #include "qt_pre.h" | COMMENT |
| LOW | win/Qt/qt_bind.h | 1 | // Copyright (c) Warwick Allison, 1999. | COMMENT |
| LOW | win/Qt/qt_rip.cpp | 1 | // Copyright (c) Warwick Allison, 1999. | COMMENT |
| LOW | win/Qt/qt_plsel.cpp | 1 | // Copyright (c) Warwick Allison, 1999. | COMMENT |
| LOW | win/Qt/qt_plsel.cpp | 21 | #include "hack.h" | COMMENT |
| LOW | win/Qt/qt_win.h | 1 | // Copyright (c) Warwick Allison, 1999. | COMMENT |
| LOW | win/Qt/qt_pre.h | 1 | /* NetHack 5.0 qt_pre.h $NHDT-Date: 1781973096 2026/06/20 16:31:36 $ $NHDT-Branch: NetHack-5.0 $:$NHDT-Revision: 1.10 $ | COMMENT |
| 559 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | sys/mac68k/tools/dump_rsrc.py | 65 | print("Error: truncated or corrupt resource fork", file=sys.stderr) | CODE |
| MEDIUM | sys/mac68k/tools/decode_hqx.py | 141 | print(f"Error: --creator-fixup found no" | CODE |
| MEDIUM | sys/mac68k/tools/decode_hqx.py | 194 | print(f"Error: {label} CRC mismatch" | CODE |
| MEDIUM | sys/mac68k/tools/strip_rsrc.py | 103 | print(f"Error: resource type {t!r} is not 4 characters", | CODE |
| MEDIUM | sys/mac68k/tools/strip_rsrc.py | 115 | print("Error: type(s) not in file: " | CODE |
| MEDIUM | sys/mac68k/tools/make_scsi_image2.py | 79 | print(f"Error: driver {driver_path} is {len(driver)} bytes; " | CODE |
| MEDIUM | sys/mac68k/tools/make_scsi_image2.py | 202 | print(f"Error: HFS image size {len(hfs_data)} is not a multiple of" | CODE |
| MEDIUM | sys/mac68k/tools/make_info.py | 29 | print("Error: name must be <= 31 chars; type/creator exactly 4", | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | win/share/objects.txt | 5864 | # tile 306 (sky blue / hallucination) | COMMENT |
| MEDIUM | include/monattk.h | 78 | #define AD_HALU 36 /* causes hallucination */ | COMMENT |
| MEDIUM | include/artifact.h | 26 | #define SPFX_HALRES 0x00000800L /* blocks hallucinations */ | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | include/you.h | 238 | /*** Don't forget to add... ***/ | COMMENT |
| LOW | include/you.h | 289 | /*** Don't forget to add... ***/ | COMMENT |
| LOW | sys/mac68k/macwin.c | 90 | * buffer. Don't forget to set inSelect to WIN_ERR when you're | COMMENT |
| LOW | sys/mac68k/macwin.c | 2506 | * Don't forget to decrease in_putstr before returning... | COMMENT |
| MEDIUM | src/display.c | 1074 | * again, as discussed above. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | win/Qt/qt_inv.cpp | 8 | // Essentially a "paper doll" style display. [grep fodder] | COMMENT |
| MEDIUM | win/Qt/qt_main.cpp | 822 | // Underscore works too and is more robust but unless we prepend | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | sys/mac68k/tools/wav2snd.py | 24 | CODE | |
| LOW | sys/mac68k/tools/decode_hqx.py | 13 | CODE | |
| LOW | sys/mac68k/tools/decode_hqx.py | 103 | CODE | |
| LOW | sys/mac68k/tools/rsrc_to_rez.py | 65 | CODE | |
| LOW | sys/mac68k/tools/rsrc_to_rez.py | 208 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | win/share/tiletext.c | 208 | ph = strcmp(ttype, "placeholder") == 0; | CODE |
| LOW | win/share/tiletext.c | 303 | type = "placeholder"; | CODE |
| LOW | win/share/objects.txt | 6719 | # tile 351 (LOREM IPSUM) | COMMENT |
| LOW | include/objects.h | 1242 | XTRA_SCROLL_LABEL( "LOREM IPSUM", SC06), | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | sys/unix/mkmkfile.sh | 16 | echo "# This file is generated automatically. Do not edit." >> $3 | CODE |