This checks for the presence of phpcs' internal configuration file (i.e. the one use for --config-set/etc) at vendor/squizlabs/php_codesniffer/CodeSniffer.conf. When dealerdirect/phpcodesniffer-composer-installer is required, it runs phpcs --config-set installed_paths ... after any package is added or removed. This creates the config file.
Installed paths are now only set manually if there's no configuration, allowing us to bundle this properly into the standard instead.
Tested with 0.4.2 (which doesn't have the conf file, so defaults are set correctly) and latest (which does, and uses that instead) and all works well. 👍
Obsoletes #108. Fixes #97.
This checks for the presence of phpcs' internal configuration file (i.e. the one use for
--config-set
/etc) atvendor/squizlabs/php_codesniffer/CodeSniffer.conf
. Whendealerdirect/phpcodesniffer-composer-installer
is required, it runsphpcs --config-set installed_paths ...
after any package is added or removed. This creates the config file.Installed paths are now only set manually if there's no configuration, allowing us to bundle this properly into the standard instead.