Pokémon battle simulator.
This report summarizes scanner evidence for smogon/pokemon-showdown, a TypeScript project with 6,010 GitHub stars. SynthScan examined 829,082 lines of code across 1018 source files, recording 31 pattern matches distributed across 9 syntactic categories. The legacy adjusted pattern signal is 0.0 (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? 30 finding(s).
Are imports declared and package/API names verified? 1 finding(s).
Are wrappers, guards, and repeated structures necessary? 6 finding(s).
Which changes need focused human review? 31 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 31 distinct pattern matches across 9 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 | test/sim/data.js | 441 | formes[6] = formes[5] + 1 + 2 + 1 + 2 + 1 + 3 + 3 + 1 + 6 + 48; | COMMENT |
| LOW | config/formats.ts | 841 | 'Uber', 'AG', 'Arena Trap', 'Moody', 'Shadow Tag', 'King\'s Rock', 'Razor Fang', 'Baton Pass', | COMMENT |
| LOW | config/formats.ts | 3041 | // The "???" type never gets STAB | COMMENT |
| LOW | server/chat.ts | 1621 | COMMENT | |
| LOW | server/rooms.ts | 2041 | * NOT: PS server -> loginserver | COMMENT |
| LOW | sim/state.ts | 21 | // the simulator only gives a position to active Pokemon, serialization | COMMENT |
| LOW | sim/state.ts | 101 | // serialized. See serializeSide below for an explanation about the | COMMENT |
| LOW | sim/state.ts | 261 | return obj.hasOwnProperty('hit') && (obj.hasOwnProperty('id') || obj.hasOwnProperty('move')); | COMMENT |
| LOW | sim/tools/exhaustive-runner.ts | 341 | // Returns the next option in our set of unused options which were shuffled | COMMENT |
| LOW | data/mods/gen1/scripts.ts | 581 | COMMENT | |
| LOW | data/text/ja/moves.ts | 1 | // Mechanics desc conventions (ja) — keep consistent with ja/abilities.ts and ja/items.ts: | COMMENT |
| LOW | data/text/zh-cn/moves.ts | 1 | // Mechanics desc style (zh-cn): official game terminology, halfwidth numerals (1.5倍, 30%, 2~5次). | COMMENT |
| LOW | data/text/zh-tw/moves.ts | 1 | // Mechanics desc style (zh-tw): official game terminology, halfwidth numerals (1.5倍, 30%, 2~5次). | COMMENT |
| LOW | data/text/en-afd/default.ts | 1 | export const DefaultText: { [id: IDEntry]: DefaultText } = { | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | server/ladders.ts | 478 | if (formatTable.playerCount > 2) continue; // TODO: implement | CODE |
| LOW | server/chat-plugins/battlesearch.ts | 286 | // TODO: implement flag? | COMMENT |
| LOW | sim/battle-actions.ts | 352 | // TODO: implement properly | COMMENT |
| LOW | data/mods/linked/scripts.ts | 436 | // TODO: implement properly | COMMENT |
| LOW | data/mods/gen9ssb/scripts.ts | 1123 | // TODO: implement properly | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | server/chat-commands/admin.ts | 66 | function keysIncludingNonEnumerable(obj: object) { | CODE |
| LOW | server/chat-plugins/datasearch.ts | 636 | function prepareDexsearchValidator(usedMod: string | undefined, rules: FormatData[], nationalSearch: boolean | null) { | CODE |
| LOW | server/chat-plugins/calculator.ts | 51 | function parseMathematicalExpression(infix: string) { | CODE |
| LOW | server/chat-plugins/randombattles/index.ts | 18 | function getHTMLCriteriaDescription(criteria: SetCriteria) { | CODE |
| LOW | server/chat-plugins/trivia/trivia.ts | 175 | function getTriviaOrMastermindGame(room: Room | null) { | CODE |
| LOW | server/tournaments/index.ts | 1095 | function createTournamentGenerator( | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | tools/build-utils.js | 33 | // fix this function to be more robust. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | server/artemis/model.py | 1 | # This file handles the actual processing of messages, | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | server/chat-plugins/scavengers.ts | 2696 | "<br />As a <strong>room owner (#)</strong>, you can also use the following scavengers commands:", | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | .github/workflows/publish.yml | 22 | # Check if the package.json version field has changed since the last push | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | config/config-example.js | 243 | to: 'admin@example.com', | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | server/chat-plugins/randombattles/index.ts | 177 | function getData(species: string | Species, format: string | Format): AnyObject | null { | CODE |