You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Next.js/React framework TypeScript dead code detection. Convention-based exports, route handlers, config exports, react patterns, and exported custom hooks are no longer flagged as dead code
Added dynamic dispatch pattern detection. getattr(module, f"prefix_{var}") registers f-string patterns and marks matching functions as used
Added __init_subclass__ registry pattern are now marked as implicitly used
base_classes field on Definition for tracking class inheritance chains
Added Indirect enum inheritance
Added 12 new tests for dynamic pattern detection and enum member handling
Fixed
Fixed pattern_tracker.pattern_refs.append(). Was not compiling regex patterns, so f-string pattern matching was silently breaking
Fixed inline f-strings in getattr/globals(). Calls were ignored because only pre-assigned variable names were checked
Fixed functions containing dynamic dispatch (getattr/globals() with f-string) now auto-marked as used
Fixed functions returning a __init_subclass__ base type now recognized as registry consumers and marked as used
Fixed uppercase class variable. Check was short-circuiting before enum detection could run, and the early return discarded the confidence reduction without assigning it
Enum methods now also skipped
Uppercase class variable early-return now properly assigns def_obj.confidence before returning