Last active
February 1, 2016 00:10
-
-
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 file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Updated to scan for
.inc
files.