Skip to content

Add diagnostic for unused return value #4001

Description

@mdbernard

When a function returns a value, but the caller does not assign that returned value to a variable, this can be a code bug. It would be useful to flag this to users. We currently have unused-coroutine, which does this for async return values, but this would be a more general case unused-return-value.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions