PHPCS Config
Add the path to the directory in which you placed your copy of the PHPCompatibility repo to the PHP CodeSniffer configuration using the below command from the command line:
phpcs --config-set installed_paths /path/to/PHPCompatibility
I.e. if you placed the PHPCompatibility
repository in the /my/custom/standards/PHPCompatibility
directory, you will need to add that directory to the PHP CodeSniffer installed_paths
configuration variable.
Warning: ⚠️ The installed_paths
command overwrites any previously set installed_paths
. If you have previously set installed_paths
for other external standards, run phpcs --config-show
first and then run the installed_paths
command with all the paths you need separated by comma's, i.e.:
phpcs --config-set installed_paths /path/1,/path/2,/path/3phpcs — config-set installed_paths /Volumes/Data/Repos/Libs/PHPCompatibility,/Volumes/Data/Repos/Libs/wpcs