ikappas / vscode-phpcs

PHP CodeSniffer for Visual Studio Code
MIT License
128 stars 56 forks source link

phpcs.ignore doesn't work with comma separated lists #59

Closed b1kjsh closed 7 years ago

b1kjsh commented 7 years ago

When I try add 2 folders to phpcs.ignore like the following: { "phpcs.ignore": "/folder1/, /folder2/" }

I get an error stating that the second folder doesn't exist when in fact it does. Is this the correct syntax for this command? I tried to just add an array like so: ["folder1", "folder2"] but vscode is telling me that it won't accept an array.

b1kjsh commented 7 years ago

oh, I see what's happening. it looks like the version available in the extensions for vscode is a bit behind what's here on GitHub. It looks like there is a new option that will handle this, but until I can get the newer version through the extension store I'm not sure how to get this working in my environment.

b1kjsh commented 7 years ago

hmm looks liike there are two listings for thiss on the store. I was able to find the newer version and use it instead.