Skip to content

Lint rule: no-spread-loop-tail-expressions #112

@wcjohnson

Description

@wcjohnson

Proposed rule which would warn when a spread loop has a tail expression which is not a compatible object or array.

Legal:

// Thing being spread is an ArrayExpression, OK.
x = [...for elem e in arr: [f(e)]]

Illegal:

// The thing being spread here is not an ArrayExpression, therefore illegal under the rule
x = [...for elem e in arr: f(e)]

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions