-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Javascript sniffer fails with function called "Function" #1191
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
Comments
Just out of interest, do you actually define a function called |
Thanks for the report. Still keen to know if the code is real or not. |
Hi @gsherwood yes the code is real, I'm using the javascript function |
Btw thanks for the fix, I will check soon |
Thanks for confirming that. Please let me know if the fix doesn't work for you, although I did test the file you linked (minus the |
Running php code sniffer on javascript file that has the function
Function
will detect it as thekeyword
function. See the example:Code fixer returns this error:
But this line is actually correct and there is no fix needed
The text was updated successfully, but these errors were encountered: