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

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

Open
wcjohnson opened this issue Oct 30, 2018 · 0 comments
Open

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

wcjohnson opened this issue Oct 30, 2018 · 0 comments

Comments

@wcjohnson
Copy link
Owner

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)]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant