Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save NaveenKharwar/268da244ce4970cceb923a7513b73adf to your computer and use it in GitHub Desktop.
Save NaveenKharwar/268da244ce4970cceb923a7513b73adf to your computer and use it in GitHub Desktop.
PHPCS + WordPress Coding Standards
### FOR UBUNTU
### PHPCS
composer global require "squizlabs/php_codesniffer=*"
# Add to your .bash_profile
export PATH=$PATH:~/.composer/vendor/bin
#### WordPress Coding Standards
composer global require "wp-coding-standards/wpcs"
phpcs --config-set installed_paths $HOME/.config/composer/vendor/wp-coding-standards/wpcs
phpcs --config-set default_standard WordPress-Extra
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment