A few weeks ago I had to go through the process of setting up php code sniffer on my new computer, and realised how confusing most of the blog posts out there are and how many loops and posts you have to jump through to get it set up.
I decided to write a quick post with all the commands in one place and small descriptions for most of the commands:
Installing Drupal Coding Sniffer
1. Download php code sniffer (source code: https://github.com/squizlabs/PHP_CodeSniffer)
curl -OL https://squizlabs.github.io/PHP_CodeSniffer/phpcs.phar