You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I could simply disable this sniff, but I would prefer avoid it.
Thanks for your help.
The text was updated successfully, but these errors were encountered:
gsherwood
changed the title
Reserved keywords detection
JS tokeniser incorrectly setting some function and class names to control structure tokens
Dec 8, 2015
Hi,
I'm using PHPCS to check Javascript files, with the Squiz standard. I don't know yet if a better Javascript standard exists for PHPCS ?
Well, here's the issue. It's a working example.
I know I shouldn't use such keywords to name a function, but since it's not a switch statement, PHPCS shouldn't have thrown an error for this ?
The sniff is "Inline control structures are not allowed" (Generic.ControlStructures.InlineControlStructure.NotAllowed) but it simply checks for control structure tokens. That's why I think the issue is deeper than this particular sniff. Maybe an issue with the tokens detection ?
I could simply disable this sniff, but I would prefer avoid it.
Thanks for your help.
The text was updated successfully, but these errors were encountered: