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
{{ message }}
Repository navigation
Lua gate: flag --[[@as …]] right after a comma in a multi-assignment #7
Lua-side gate (luagnd / neospector style check). Not engine work.
Problem
In local a, b = x, --[[@as T]] y, stylua moves the cast comment so it no longer sits where emmylua binds it. The cast is silently lost and the type falls back to the uncast one.
Want
A gate check (in gndx gate all, NAMED and UNSCOPED like the other gates) that rejects --[[@as …]] directly after a comma in a multi-assignment, with a suggested rewrite (split the assignment, or a typed local).
Activity
gndx emmylua, Lua-side gates) #17