Closed jeremyfelt closed 6 months ago
I think my current installation was like:
composer global require squizlabs/php_codesniffer
to install PHPCS globally.git clone https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards.git wpcs-upstream
in my ~/Development
directory to provide WPCS rules.phpcs --config-set installed_paths $HOME/Development/wpcs-upstream
to install that path for use globally.Actually I've preferred a per-project PHPCS configuration for a while. It's so much easier. I think I can remove PHPCS config from dotfiles
completely and then deal with the consequences later.
An alias for
phpcs-extra
exists, but what would really be nice:phpcs
is installed globally.phpcs
looks for a standard project configuration and falls back to theWordPress-Extra
ruleset if no project config exists.phpcbf
.