blog
blog copied to clipboard
PHPCS、PHPMD 的安装与配置 - overtrue
https://overtrue.me/articles/2015/05/install-phpcs-and-phpmd.html
PHPCS 安装 有以下方式安装 PHPCS: 使用 composer: composer global require "squizlabs/php_codesniffer=*" 注意,你可能需要将 ~/.composer/vendor/bin/ 添加到 PATH 环境变量中,否则会报命令找不到。 使用 PEAR: pear install PHP_CodeSniffer 下载安装: curl -OL https://squizlabs.github.io/PHP_CodeSniffer/phpcs.phar php phpcs.phar -h curl -OL h...
代码质量很重要