Skip to content

Instantly share code, notes, and snippets.

Inner Peace

Thamaraiselvam thamaraiselvam

Inner Peace
View GitHub Profile
thamaraiselvam /
Created Sep 22, 2017 — forked from rezzz-dev/
PHP Code Sniffer with WordPress Coding Standards and Atom
#Install PHP CodeSniffer
brew install homebrew/php/php-code-sniffer #if using Homebrew
git clone phpcs #if you want to do it directly
#Install WordPress Coding Standards
git clone -b master wpcs
#Add WordPress standards to PHPCS config
phpcs -i #shows the libraries installed
phpcs --config-set installed_paths <path to dir that you cloned>/wpcs