我似乎很难提供可配置的installed_paths。好像在破坏手机。
显示已安装的标准:
$ sudo /usr/bin/phpcs -i
The installed coding standards are PSR2, PHPCS, PEAR, PSR1, Squiz, MySource, Zend, CakePHP, PSR2, PHPCS, PEAR, PSR1, Squiz, MySource, Zend and CakePHP显示默认的installed_paths值:
$ sudo /usr/bin/phpcs --config-show
Array
(
[installed_paths] => /usr/share/php/PHP/CodeSniffer/Standards
)如果在with --config-set中显式传递默认的installed_paths值,它将不再显示任何已安装的标准:
$ sudo /usr/bin/phpcs --config-set installed_paths /usr/share/php/PHP/CodeSniffer/Standards -i
$我有最新的稳定版本的PHP_CodeSniffer (1.5.4),看起来他们在1.5.1中添加了这个版本。有人成功了吗?
发布于 2014-09-25 04:50:47
正如@GregSherwood在注释中提到的那样,正确的参数是--运行时集。- config -set更新配置文件并立即退出。
https://stackoverflow.com/questions/26028944
复制相似问题