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

loopfunc:true still throws 'Don't make functions within a loop.' error #278

Closed
spencercarnage opened this issue Oct 4, 2011 · 1 comment

Comments

@spencercarnage
Copy link

Using the following snippet of code (which I pulled from the closed issue #128 to help illustrate my point) I'm still getting the loopfunc error.

/*jshint forin:true, noarg:true, noempty:true, eqeqeq:true, funcloop:true, bitwise:true, curly:true, browser:true, indent:4, maxerr:50 */
var a = [1, 23, 9];

for (var i = 0; i < a.length; i++) {
a[i] = a[i].filter(function (val) {
return val > 10;
});
}

@valueof
Copy link
Member

valueof commented Oct 4, 2011

This was a typo on the website, the option is loopfunc and not funcloop. Fixed now, thanks!

@valueof valueof closed this as completed Oct 4, 2011
danielctull pushed a commit to danielctull-forks/jshint that referenced this issue Jan 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants