Commit 2a81f99
refactor: Migrate bug patterns to AST-based analyzer and fix namespace inconsistencies
Bug Pattern Analyzer Migration (V1 → V2):
- Migrated 6 patterns to AST-based detection using ts-morph
- Added 2 new patterns: missing-multiplayer-sync, namespace-inconsistency
- Deprecated 2 patterns: silent-instrument, unstable-callback-in-effect
- Fixed false positive issues with regex-based detection
Namespace Consistency Fixes (14 issues resolved):
- advancedSynth.ts: isAdvancedSynth() now uses parseInstrumentId()
- toneSynths.ts: isToneSynth() now uses parseInstrumentId()
- scheduler.ts: Refactored if-else chain to switch statement
- midiExport.ts: Uses parseInstrumentId() with MIDI-specific mic: handling
The mic: prefix is intentionally handled as a special case in MIDI export
(treated as drums on channel 10) rather than added to instrument-types.ts,
since it's specific to MIDI export functionality.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>1 parent 2717003 commit 2a81f99
File tree
5 files changed
+618
-100
lines changed- app
- scripts
- src/audio
5 files changed
+618
-100
lines changed
0 commit comments