Setting up phpcs with WordPress on OSX with MAMP

When setting up my PHPCodeSniffer, I had trouble getting it to load properly. It was this bit below that saved me:

phpcs –config-set installed_paths /Users/my_user_name/wpcs

Typing this line into the Terminal on my Mac helped the code sniffer find the rule definitions it was looking for.

Source: Using phpcs with WordPress on OSX with MAMP

Leave a Reply