Skip to content

Fix DeepScan issues - #1390

Merged
LunaUrsa merged 3 commits into
uatfrom
fix-deepscan-issues
Nov 14, 2026
Merged

LunaUrsa merged 3 commits into
uatfrom
fix-deepscan-issues

Conversation

@LunaUrsa

@LunaUrsa LunaUrsa commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Fixes the open DeepScan findings.

  • NULL_POINTER / INSUFFICIENT_NULL_CHECK: d.purge skips channels missing from cache; d.sheesh passjoint uses member?.id.
  • CONSTANT_CONDITION: d.report redundant moderator check removed; m.calc_nasal condition func === 'substance' || 'solvent' fixed, and !== null replaced by !Number.isNaN (non-numeric input now shows usage instead of printing NaN).
  • UNUSED_VAR_ASSIGN: d.rpg, d.profile, d.levels dead assignments removed.
  • AWAIT_NON_PROMISE / unused imports and requires: matrix.ts, and the IRC archive files.

Tests added for the purge missing-channel and sheesh null-member cases.

Verification

tsc --noEmit clean; affected Vitest files pass (162 passed). No command definitions changed.

🤖 Generated with Claude Code

- purge: skip channels missing from cache instead of dereferencing undefined
- sheesh: null-safe member.id in passjoint
- report: drop redundant always-true role_moderator check
- rpg/profile/levels: remove dead variable assignments
- matrix: fix always-true calc_nasal condition and NaN checks, drop await on handler
- irc archive: remove unused imports/requires
- tests for the purge and sheesh null cases

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@LunaUrsa
LunaUrsa requested a review from a team as a code owner November 14, 2026 19:08
@LunaUrsa
LunaUrsa merged commit 61a31fa into uat Nov 14, 2026
12 checks passed
@LunaUrsa
LunaUrsa deleted the fix-deepscan-issues branch November 14, 2026 20:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant