Skip to content

Instantly share code, notes, and snippets.

@paul-m
Last active February 1, 2016 00:10
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/227822ac7723b0e90647 to your computer and use it in GitHub Desktop.
Save paul-m/227822ac7723b0e90647 to your computer and use it in GitHub Desktop.
How to evaluate drupal.org issues for this meta: https://www.drupal.org/node/1800046
# This is a one-liner to aid in reviewing patches on this Drupal.org meta issue:
# https://www.drupal.org/node/1800046
# 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" --extensions="module/php,inc/php,php" --report-csv path/to/module/ | grep -F $'Missing param\nReturn type missing'
@paul-m
Copy link
Author

paul-m commented Feb 1, 2016

Updated to scan for .inc files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment