ikappas / vscode-phpcs

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

Extension unable to find nested phpcs executable #180

Open aubreypwd opened 4 years ago

aubreypwd commented 4 years ago

image

So I have a project open in my wp-content/ folder of a WordPress install and in it we have a nested sub-project in the wp-content/themes/ directory, [omitted]-2020/. That sub-project has it's own .phpcs.xml.dist file, but the extension does not find phpcs in the wp-content/themes/[omitted]-2020/vendor/bin directory from the wp-content/ level.

image

Now, if I open the wp-content/themes/[omitted]-2020/ folder directly (totally unchanged), it does find phpcs in vendor/bin and lints correctly.