Skip to content

Instantly share code, notes, and snippets.

@seanbuscay
Last active September 7, 2018 19:25
Show Gist options
  • Save seanbuscay/48b3632b1d279c1d3eab to your computer and use it in GitHub Desktop.
Save seanbuscay/48b3632b1d279c1d3eab to your computer and use it in GitHub Desktop.
PHP Code Sniffer Command Line Usage
phpcbf --standard=Drupal --extensions=php,module,inc,install,test,profile,theme,js,css,info,txt,md /file/to/drupal/example_module
phpcs --standard=DrupalPractice --extensions=php,module,inc,install,test,profile,theme,js,css,info,txt,md /file/to/drupal/example_module
phpcs --standard=Drupal --extensions=php,module,inc,install,test,profile,theme,js,css,info,txt,md /file/to/drupal/example_module
phpcs --config-set installed_paths ~/.composer/vendor/drupal/coder/coder_sniffer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment