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.
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 ifcwd
is my custom standard's directory.