Skip to content

Instantly share code, notes, and snippets.

@paul-m
Created March 1, 2015 00:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save paul-m/bdb4c44ecd1de8f934cd to your computer and use it in GitHub Desktop.
Save paul-m/bdb4c44ecd1de8f934cd to your computer and use it in GitHub Desktop.
How to review a patch for meta https://www.drupal.org/node/1811638
# This is a one-liner to aid in reviewing patches on this Drupal.org meta issue:
# https://www.drupal.org/node/1811638
# You can use netbeansdrupalcomposed to gather the dependencies, which are phpcs
# and Drupal's Coder module
# https://www.drupal.org/sandbox/mile23/2197899
# Substitute any module path you want in order to check only that module.
# The resulting list will be a bit of gobbledygook in CSV, but will show you whether
# or not the patch you're evaluating successfully removed the errors we're looking for.
phpcs --standard="/path/to/drupal/coder/coder_sniffer/Drupal" --report-csv path/to/module/src/Tests | grep "should use lowerCamel"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment