Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

luassert annotations are missing optional assertion message as a parameter #1

Open
paigoddess opened this issue Mar 10, 2023 · 0 comments

Comments

@paigoddess
Copy link

luassert assertions support a trailing message parameter, but the annotations don't allow for that. For example, this code works (producing the custom error on failure) but the string is highlighted with the LLS warning "This function expects a maximum of 1 argument(s) but instead it is receiving 2. Lua Diagnostics.(redundant-parameter)"

    local crumb = self.engine:poll()
    assert.is_nil(crumb, 'Expected nil end of event queue')
@paigoddess paigoddess changed the title luassert annotations are missing assertion message as a parameter luassert annotations are missing optional assertion message as a parameter Mar 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant