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

Allow unused loop variables #7

Closed
za-creature opened this issue Feb 26, 2016 · 1 comment
Closed

Allow unused loop variables #7

za-creature opened this issue Feb 26, 2016 · 1 comment

Comments

@za-creature
Copy link
Owner

Split from #6

for key, val of someObject
  doSomethingWith(val)

gives me:

✗ #1: Variable "key" is never read ( first defined on line 1).

Is there an option to ignore this? I know I could write this in another way but it's nice to use the for ... of syntax here.

@zmillman
Copy link
Contributor

I think this was also resolved by #39 (use _key as your variable name to match the ignore pattern)

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

2 participants