Skip to content

Instantly share code, notes, and snippets.

@ramlev
Created January 21, 2012 11:40
Show Gist options
  • Save ramlev/1652469 to your computer and use it in GitHub Desktop.
Save ramlev/1652469 to your computer and use it in GitHub Desktop.
PHPCS with Drupal output
FILE: /Users/me/www/drupal-7.10/modules/poll/poll.module
--------------------------------------------------------------------------------
FOUND 9 ERROR(S) AND 4 WARNING(S) AFFECTING 13 LINE(S)
--------------------------------------------------------------------------------
5 | WARNING | Line exceeds 80 characters; contains 81 characters
195 | WARNING | A comma should follow the last multiline array item. Found: )
227 | WARNING | A comma should follow the last multiline array item. Found: )
315 | ERROR | Inline comments must end in full-stops, exclamation marks, or
| | question marks
380 | ERROR | You must use "/**" style comments for a function comment
456 | ERROR | Inline comments must end in full-stops, exclamation marks, or
| | question marks
535 | ERROR | Inline comments must end in full-stops, exclamation marks, or
| | question marks
625 | ERROR | Missing parameter type at position 1
747 | ERROR | Space after opening parenthesis of function call prohibited
815 | ERROR | Inline comments must end in full-stops, exclamation marks, or
| | question marks
840 | ERROR | Missing parameter type at position 1
851 | ERROR | There must be a single space before an operator statement
949 | WARNING | A comma should follow the last multiline array item. Found: )
--------------------------------------------------------------------------------
Time: 1 second, Memory: 16.25Mb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment