Search code examples
phpphpcodesnifferphpcs

How to add multiple paths for phpcs?


I want to configure multiple installed paths for phpcs.

I can add one via:

phpcs --config-set installed_paths the/dir/to/standard

I tried adding multiple by using : yet it did not work and the man page is non-existent and the help not that helpful.


Solution

  • Use a comma-separated list without spaces between the paths:

    phpcs --config-set installed_paths first/path/,second/path/,yet/another/path/