Skip to content

Fix remaining DeepScan issues in legacy events and archived commands - #1394

Merged
LunaUrsa merged 4 commits into
uatfrom
fix-deepscan-issues-2
Nov 15, 2026
Merged

LunaUrsa merged 4 commits into
uatfrom
fix-deepscan-issues-2

Conversation

@LunaUrsa

Copy link
Copy Markdown
Contributor

Summary

Follow-up to #1390, which merged before these last fixes were pushed.

  • REFERENCE_BEFORE_LEXICAL_DECL: in the 19 handlers under src/discord/events/legacy/, export default X; now comes after the export const X declaration.
  • SYNTAX_ERROR: src/discord/commands/archive/d.radio.ts Ready callback is now async so its await is valid.
  • Unused imports/variables and constant conditions in archived commands: tripsat.ts, u_profile.ts, u.underban.ts, invite.ts, removeDuplicateRoles.ts, d.whois.ts. In tripsat.ts the always-true if (targetLastHelpedDate) wrapper is removed and if (targetRoles) is now targetRoles.length > 0.

Verification

All changed files parse without syntax errors and git diff --check is clean. These files are in the archive/legacy folders, which lint, tsc and Vitest exclude, so no tests apply; DeepScan will re-scan on this PR. No command definitions changed.

🤖 Generated with Claude Code

LunaUrsa and others added 3 commits November 14, 2026 18:31
…rror

- Move `export default X` below the `export const X` declaration in the legacy event handlers
- Make the d.radio Ready callback async so its await is valid

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
- Remove unused imports and unused `F` declarations
- u_profile: drop unused actor/target variables
- tripsat: drop always-true date check, test targetRoles.length

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@LunaUrsa
LunaUrsa requested a review from a team as a code owner November 15, 2026 00:32
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@LunaUrsa
LunaUrsa merged commit 333ca48 into uat Nov 15, 2026
12 checks passed
@LunaUrsa
LunaUrsa deleted the fix-deepscan-issues-2 branch November 15, 2026 00:40
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