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
@NODISCARD annotated functions should always trigger the discard-returns warning in any context.
Actual Behaviour
discard-returns does not trigger in while and repeat loops.
Reproduction steps
---@nodiscardlocalfunctionbar()
--@nodiscard annotated functionendwhiletruedobar() --< this DOES NOT trigger no-discardbreakendrepeatbar() --< this DOES NOT trigger no-discardbreakuntiltruebar() -- < this DOES trigger no-discardforindex, valueinipairs({}) dobar() -- < this DOES trigger no-discardend
Additional Notes
No response
Log File
No response
The text was updated successfully, but these errors were encountered:
How are you using the lua-language-server?
Visual Studio Code Extension (sumneko.lua)
Which OS are you using?
Windows
What is the issue affecting?
Annotations
Expected Behaviour
@NODISCARD annotated functions should always trigger the
discard-return
s warning in any context.Actual Behaviour
discard-returns
does not trigger in while and repeat loops.Reproduction steps
Additional Notes
No response
Log File
No response
The text was updated successfully, but these errors were encountered: