ikappas / vscode-phpcs

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

Setting to specify cwd of spawned process #127

Open joehoyle opened 6 years ago

joehoyle commented 6 years ago

Sometimes when running PHPCS, you need to be able to specify the CWD, as paths are resolved relative to cwd in phpcs. If I have a config that has <config name="installed_paths" value="vendor/fig-r/psr2r-sniffer" /> for example, it will only work if cwd is my custom standard's directory.