A browser based Pokémon fangame heavily inspired by the roguelite genre.
This report summarizes scanner evidence for pagefaultgames/pokerogue, a TypeScript project with 5,909 GitHub stars. SynthScan examined 387,931 lines of code across 1285 source files, recording 187 pattern matches distributed across 9 syntactic categories. The legacy adjusted pattern signal is 0.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? 180 finding(s).
Are imports declared and package/API names verified? 7 finding(s).
Are wrappers, guards, and repeated structures necessary? 151 finding(s).
Which changes need focused human review? 187 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 187 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/utils/encounter-test-utils.ts | 55 | export async function runSelectMysteryEncounterOption( | CODE |
| LOW | test/utils/encounter-test-utils.ts | 115 | async function handleSecondaryOptionSelect(game: GameManager, pokemonNo: number, optionNo?: number) { | CODE |
| LOW | test/utils/encounter-test-utils.ts | 156 | export async function skipBattleRunMysteryEncounterRewardsPhase(game: GameManager, runRewardsPhase?: false) { | CODE |
| LOW | test/utils/game-manager-utils.ts | 94 | export function initSceneWithoutEncounterPhase(scene: BattleScene, speciesIds?: SpeciesId[]): void { | CODE |
| LOW | scripts/find_sprite_variant_mismatches.py | 62 | def make_mismatch_sprite_list(path): | CODE |
| LOW | …/game-data-exporter/data-generators/evolution-texts.ts | 21 | export async function generateEvolutionTextsData() { | CODE |
| LOW | …/game-data-exporter/data-generators/evolution-texts.ts | 52 | export function getEvoConditionDescription(evo: SpeciesFormEvolution, t: TFunction): string[] { | CODE |
| LOW | …ame-data-exporter/data-generators/form-change-texts.ts | 36 | export async function generateFormChangeTextsData() { | CODE |
| LOW | scripts/daily-seed/prompts/general.ts | 206 | export async function promptTrainerManipulation(): Promise<DailyTrainerManipulation[] | undefined> { | CODE |
| LOW | src/account.ts | 59 | export function getSessionDataLocalStorageKey(slotId: number): string { | CODE |
| LOW | src/ui/text.ts | 684 | export function updateCandyCountTextStyle( | CODE |
| LOW | src/ui/utils/starter-select-ui-utils.ts | 55 | export function isValueReductionAvailable(speciesId: number, gameData = globalScene.gameData): boolean { | CODE |
| LOW | src/ui/utils/starter-select-ui-utils.ts | 72 | export function isSameSpeciesEggAvailable(speciesId: number, gameData = globalScene.gameData): boolean { | CODE |
| LOW | src/ui/utils/starter-select-ui-utils.ts | 85 | export function isStarterValidForChallenge(starterId: StarterSpeciesId): boolean { | CODE |
| LOW | src/ui/utils/starter-select-ui-utils.ts | 126 | export function isUpgradeAnimationEnabled(): boolean { | CODE |
| LOW | src/ui/utils/starter-select-ui-utils.ts | 262 | export function getStarterSelectTextSettings(): StarterSelectLanguageSetting { | CODE |
| LOW | src/ui/utils/starter-select-ui-utils.ts | 314 | export function getDexAttrFromPreferences( | CODE |
| LOW | src/ui/utils/starter-select-ui-utils.ts | 374 | export function getStarterDexAttrPropsFromPreferences( | CODE |
| LOW | src/ui/utils/starter-select-ui-utils.ts | 390 | function getStarterDefaultAbilityIndex(starterId: StarterSpeciesId): number { | CODE |
| LOW | src/ui/utils/starter-select-ui-utils.ts | 422 | export function getStarterDetailsFromPreferences( | CODE |
| LOW | src/ui/utils/learnable-move-utils.ts | 3 | export function getLearnableMoveSourceIconFrame(source: LearnableMoveSource, tmType?: string | null): string { | CODE |
| LOW | src/ui/handlers/starter-select-ui-handler.ts | 114 | function calcStarterContainerPosition(index: number): { x: number; y: number } { | CODE |
| LOW | src/modifier/modifier-type.ts | 2323 | export function regenerateModifierPoolThresholds( | CODE |
| LOW | src/modifier/modifier-type.ts | 2465 | export function getPlayerModifierTypeOptions( | CODE |
| LOW | src/modifier/modifier-type.ts | 2539 | function getModifierTypeOptionWithRetry( | CODE |
| LOW | src/modifier/modifier-type.ts | 2578 | export function overridePlayerModifierTypeOptions(options: ModifierTypeOption[], party: PlayerPokemon[]) { | CODE |
| LOW | src/modifier/modifier-type.ts | 2596 | export function getPlayerShopModifierTypeOptionsForWave(waveIndex: number, baseCost: number): ModifierTypeOption[] { | CODE |
| LOW | src/modifier/modifier-type.ts | 2638 | export function getEnemyBuffModifierForWave( | CODE |
| LOW | src/modifier/modifier-type.ts | 2673 | export function getEnemyModifierTypesForWave( | CODE |
| LOW | src/modifier/modifier-type.ts | 2693 | export function getDailyRunStarterModifiers(party: PlayerPokemon[]): PokemonHeldItemModifier[] { | CODE |
| LOW | src/modifier/modifier-type.ts | 2849 | export function getDefaultModifierTypeForTier(tier: ModifierTier): ModifierType { | CODE |
| LOW | src/modifier/init-modifier-pools.ts | 699 | function initEnemyBuffModifierPool() { | CODE |
| LOW | src/modifier/init-modifier-pools.ts | 747 | function initDailyStarterModifierPool() { | CODE |
| LOW | src/modifier/init-modifier-pools.ts | 829 | function skipInLastClassicWaveOrDefault(defaultWeight: number): WeightedModifierTypeWeightFunc { | CODE |
| LOW | src/enums/stat.ts | 54 | export function getStatStageChangeDescriptionKey(stages: number, isIncrease: boolean) { | CODE |
| LOW⚡ | src/utils/strings.ts | 82 | export function capitalizeFirstLetterOnly(str: string): string { | CODE |
| LOW | src/utils/challenge-utils.ts | 599 | export function checkStarterValidForChallenge(starterId: StarterSpeciesId, props: DexAttrProps, soft: boolean) { | CODE |
| LOW | src/utils/challenge-utils.ts | 635 | export function checkSpeciesValidForChallenge(species: PokemonSpecies, props: DexAttrProps, soft: boolean) { | CODE |
| LOW | src/utils/common.ts | 238 | function getAbbreviationsLargeNumber(): string[] { | CODE |
| LOW | src/utils/damage.ts | 22 | export function calculateBossSegmentDamage( | CODE |
| LOW | src/utils/pokemon-utils.ts | 194 | export function getRandomRegularPokemonType(): RegularPokemonType { | CODE |
| LOW | src/field/learnsets.ts | 133 | export function getBaseLearnableMoveSource(source: LearnableMoveSource): LearnableMoveSource { | CODE |
| LOW | src/system/game-speed.ts | 43 | function mutateTimeRelatedProperties(scene: BattleScene, obj: object, allowArray?: boolean): void; | CODE |
| LOW | src/system/game-speed.ts | 44 | function mutateTimeRelatedProperties( | CODE |
| LOW | src/system/ribbons/ribbon-methods.ts | 12 | export function awardRibbonsToSpeciesLine(id: SpeciesId, ribbons: RibbonFlag): void { | CODE |
| LOW | src/system/version-migration/version-converter.ts | 132 | export function applySystemVersionMigration(data: SystemSaveData): void { | CODE |
| LOW | src/system/version-migration/version-converter.ts | 151 | export function applySessionVersionMigration(data: Record<string, unknown>): void { | CODE |
| LOW | src/system/version-migration/version-converter.ts | 189 | export function applySettingsVersionMigration(data: object): void { | CODE |
| LOW | src/system/version-migration/versions/v1_12_0_0.ts | 20 | function clearOldBattleBondFormData(dexData: DexEntry): void { | CODE |
| LOW | src/system/version-migration/versions/v1_12_0_0.ts | 32 | function migrateSystemGreninjaBattleBondForm(data: SystemSaveData): void { | CODE |
| LOW | src/system/version-migration/versions/v1_12_0_0.ts | 92 | function migrateSystemHisuiBasculin(data: SystemSaveData): void { | CODE |
| LOW | src/system/version-migration/versions/v1_12_0_0.ts | 172 | function migrateSessionGreninjaBattleBondForm(pokemon: Record<string, unknown>, replaceSpecies: boolean): void { | CODE |
| LOW | src/system/version-migration/versions/v1_12_0_0.ts | 206 | function migrateSessionHisuiBasculin(pokemon: Record<string, unknown>, replaceSpecies: boolean): void { | CODE |
| LOW | src/ai/ai-moveset-gen.ts | 93 | function getAndWeightLevelMoves(pokemon: Pokemon): Map<MoveId, number> { | CODE |
| LOW | src/ai/ai-moveset-gen.ts | 216 | function getAndWeightTmMoves( | CODE |
| LOW | src/ai/ai-moveset-gen.ts | 306 | function getAndWeightEggMoves( | CODE |
| LOW | src/ai/ai-moveset-gen.ts | 749 | function getExistingDamageMoveTypes( | CODE |
| LOW | src/ai/ai-moveset-gen.ts | 764 | function doesMoveMatchOffensiveCategory(move: Move, category: MoveCategory): boolean { | CODE |
| LOW | src/ai/ai-moveset-gen.ts | 831 | function overridesOrIgnoresWeather(pokemon: Pokemon): boolean { | CODE |
| LOW | src/ai/ai-moveset-gen.ts | 916 | function shouldRemoveSnowscapeHail(pokemon: Pokemon, willTera: boolean): boolean { | CODE |
| 91 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | src/field/trainer.ts | 376 | // we need to check if one of the species is already in the party and filter the whole array if it is | COMMENT |
| LOW | src/field/trainer.ts | 388 | // we need to check if one of the species is already in the party and filter the whole array if it is | COMMENT |
| LOW⚡ | src/ai/ai-moveset-gen.ts | 1343 | // Step 2: Filter out forbidden moves | COMMENT |
| LOW⚡ | src/ai/ai-moveset-gen.ts | 1351 | // Step 3: Adjust weights for trainers | COMMENT |
| LOW | src/ai/ai-moveset-gen.ts | 1313 | // Step 1: Generate the pools from various sources: level up, egg moves, and TMs | COMMENT |
| LOW | src/ai/ai-moveset-gen.ts | 1378 | // Step 4: Attempt to force a signature move | COMMENT |
| LOW | src/ai/ai-moveset-gen.ts | 1389 | // Step 5: Force a STAB move if no signature was generated or was not a damaging STAB move | COMMENT |
| LOW | src/ai/ai-moveset-gen.ts | 1401 | // Step 5: Fill in remaining slots | COMMENT |
| LOW | src/configs/inputs/config-handler.ts | 196 | // first, we need to check if this keycode is already used on another settingName | COMMENT |
| LOW | src/phases/form-change-phase.ts | 150 | // Step 1: Fade in the background overlay | COMMENT |
| LOW | src/phases/form-change-phase.ts | 168 | // Step 2: Play the sounds and fade in the tint sprite | COMMENT |
| LOW | src/phases/form-change-phase.ts | 183 | // Step 3: Commence the form change animation via doCycle then continue the animation chain with afterCycle | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | docs/enemy-ai.md | 9 | ## Step 1: Should the Enemy Pokémon Switch? | COMMENT |
| LOW | docs/enemy-ai.md | 54 | ## Step 2: Selecting a Move | COMMENT |
| LOW⚡ | src/ai/ai-moveset-gen.ts | 1343 | // Step 2: Filter out forbidden moves | COMMENT |
| LOW⚡ | src/ai/ai-moveset-gen.ts | 1351 | // Step 3: Adjust weights for trainers | COMMENT |
| LOW | src/ai/ai-moveset-gen.ts | 1313 | // Step 1: Generate the pools from various sources: level up, egg moves, and TMs | COMMENT |
| LOW | src/ai/ai-moveset-gen.ts | 1378 | // Step 4: Attempt to force a signature move | COMMENT |
| LOW | src/ai/ai-moveset-gen.ts | 1389 | // Step 5: Force a STAB move if no signature was generated or was not a damaging STAB move | COMMENT |
| LOW | src/ai/ai-moveset-gen.ts | 1401 | // Step 5: Fill in remaining slots | COMMENT |
| LOW | src/phases/form-change-phase.ts | 150 | // Step 1: Fade in the background overlay | COMMENT |
| LOW | src/phases/form-change-phase.ts | 168 | // Step 2: Play the sounds and fade in the tint sprite | COMMENT |
| LOW | src/phases/form-change-phase.ts | 183 | // Step 3: Commence the form change animation via doCycle then continue the animation chain with afterCycle | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL | src/battle-scene.ts | 408 | this.invertFilter = this.cameras.main.filters.external.addColorMatrix().setActive(false); | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | test/setup/test-file-initialization.ts | 67 | setCookie(SESSION_ID_COOKIE_NAME, "fake_token"); | CODE |
| LOW | test/tests/utils/strings.test.ts | 16 | input: "Lorem ipsum dolor sit amet", | CODE |
| LOW | test/tests/utils/strings.test.ts | 16 | input: "Lorem ipsum dolor sit amet", | CODE |
| LOW | docs/comments.md | 192 | * Print a copiously long, procedurally generated lorem ipsum-like placeholder string. | COMMENT |
| LOW⚡ | src/utils/strings.ts | 92 | * console.log(toTitleCase("lorem ipsum dolor sit amet")); // returns "Lorem Ipsum Dolor Sit Amet" | COMMENT |
| LOW⚡ | src/utils/strings.ts | 92 | * console.log(toTitleCase("lorem ipsum dolor sit amet")); // returns "Lorem Ipsum Dolor Sit Amet" | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | test/tests/moves/protect.test.ts | 247 | // TODO: Add test | COMMENT |
| LOW | src/utils/speed-order.ts | 7 | // TODO: Add tests for these | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | src/data/balance/moves/signature-moves.ts | 275 | // Force certain moves on Rival's Birds to keep them relative in power due to lacking learnsets / to utilize their Bos | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | src/ui/handlers/party-ui-handler.ts | 821 | // If the pokemon is filtered out for this option, we cannot continue | COMMENT |
| LOW | src/configs/inputs/config-handler.ts | 301 | // } else { | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | src/i18n.ts | 147 | * Don't forget to add an entry to `SUPPORTED_LANGUAGE_ENTRIES` in `src/system/supported-languages.ts` | COMMENT |