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
fix(deprecations): scope literal lookup to function bodies
The deprecation checker's segment-confirmation step searched for wildcard
segment values as string literals across the entire file. That produced
false positives whenever two orthogonal getProperty calls in different
functions shared a token.
Concrete case after #770: ventilation.operating.programs.* was flagged
as in-use because getVentilationPrograms iterates
['basic', 'intensive', 'reduced', ...] (none in the DB), but
getVentilationQuickmodes in the same file iterates
['comfort', 'eco', 'forcedLevelFour', 'holiday', 'silent'] (all in the
DB) — for the unrelated ventilation.quickmodes.* path. The file-wide
literal search joined them, marking the deprecated programs features as
in-code-use even though no code actually queries them.
Switch find_code_usage to extract each function body via ast and scope
the segment lookup to the same function that contains the getProperty
call. Top-level/class-body code is scanned as a single residual scope so
nothing is missed.
All 729 tests stay green; the script now exits 0 against current master
(5 spurious in-code warnings removed).
0 commit comments