简体   繁体   English

phpcs持续扫描整个项目而不是指定目录

[英]phpcs keeps scanning the whole project and not the specified directory

I am trying to run PHP code sniffer on a specific directory, but PHP code sniffer is ignoring the <files> flag and scan the whole project. 我正在尝试在特定目录上运行PHP代码嗅探器,但是PHP代码嗅探器将忽略<files>标志并扫描整个项目。

Here is the command I am running: ./vendor/bin/phpcs -p . --extensions=php docs/ 这是我正在运行的命令: ./vendor/bin/phpcs -p . --extensions=php docs/ ./vendor/bin/phpcs -p . --extensions=php docs/

I am using the current version of PHP sniffer (3.4.0) and docs/ is a real directory. 我正在使用最新版本的PHP嗅探器(3.4.0),而docs/是真实目录。

采用:

./vendor/bin/phpcs -p --extensions=php docs/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM