- Notifications
You must be signed in to change notification settings - Fork 1.5k
Closed
Labels
Description
Running php code sniffer on javascript file that has the function Function
will detect it as the keyword
function. See the example:
var a = Function('return 1+1');
Code fixer returns this error:
Expected 1 space after FUNCTION keyword; 0 found (Squiz.Functions.MultiLineFunctionDeclaration.SpaceAfterFunction)
But this line is actually correct and there is no fix needed