Skip to content

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

@ghost

Description

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')

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions