如何为phpcs添加多个路径?
How to add multiple paths for phpcs?
我想为 phpcs
配置多个安装路径。
我可以通过以下方式添加一个:
phpcs --config-set installed_paths the/dir/to/standard
我尝试使用 :
添加多个,但它不起作用,手册页不存在,帮助也没有那么有用。
使用路径之间没有空格的逗号分隔列表:
phpcs --config-set installed_paths first/path/,second/path/,yet/another/path/
我对无法设置多个路径同样感到沮丧。我使用 bash 脚本将当前路径附加到 installed_paths:
phpcs_ipath=$(phpcs --config-show installed_paths); oldpath=${phpcs_ipath##*:}; phpcs --config-set installed_paths ${oldpath},$(pwd)
我cd
进入包含我的新标准的目录,然后运行这一行。它获取当前路径并将当前路径附加到它们。不完美,但它是添加路径的快速方法。
我想为 phpcs
配置多个安装路径。
我可以通过以下方式添加一个:
phpcs --config-set installed_paths the/dir/to/standard
我尝试使用 :
添加多个,但它不起作用,手册页不存在,帮助也没有那么有用。
使用路径之间没有空格的逗号分隔列表:
phpcs --config-set installed_paths first/path/,second/path/,yet/another/path/
我对无法设置多个路径同样感到沮丧。我使用 bash 脚本将当前路径附加到 installed_paths:
phpcs_ipath=$(phpcs --config-show installed_paths); oldpath=${phpcs_ipath##*:}; phpcs --config-set installed_paths ${oldpath},$(pwd)
我cd
进入包含我的新标准的目录,然后运行这一行。它获取当前路径并将当前路径附加到它们。不完美,但它是添加路径的快速方法。