-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
List outer scoped variables of W083 #3211
List outer scoped variables of W083 #3211
Comments
Hi there, Flávio, thanks for the report! The problem is the reference to the
That said, I agree that debugging this warning is kind of difficult without the list of bindings. Implementing your request shouldn't require very much code. I'd be happy to help you write a patch--do you have any interest? |
I was expecting the I'll try to make a pull request. |
Debugging W083 is kind of difficult without knowing which outer scoped variables it is refering to. This commit shows the variable names inside parenthesis at the end of the warning message. References: Closes jshintGH-3211
Debugging W083 is kind of difficult without knowing which outer scoped variables it is referring to. This commit shows the variable names inside parenthesis at the end of the warning message. References: Closes jshintGH-3211
Note that the current master (a11d631) doesn't complain about |
Debugging W083 is kind of difficult without knowing which outer scoped variables it is referring to. This commit shows the variable names inside parenthesis at the end of the warning message. References: Closes jshintGH-3211
Debugging W083 is kind of difficult without knowing which outer scoped variables it is referring to. This commit shows the variable names inside parenthesis at the end of the warning message. References: Closes jshintGH-3211
I was getting W083 with this code:
I tried wrapping the code but it didn't remove the error:
Not knowing what else to try I gave up and added the
loopfunc
option.I still don't know which "outer scoped variable" he was referring to.
I'd like jshint to list the offending outer scoped variable(s) with W086, even if it's only in
--verbose
mode.The text was updated successfully, but these errors were encountered: