Skip to content

Instantly share code, notes, and snippets.

@otarza
Created November 25, 2015 08:41
Show Gist options
  • Save otarza/399be60c049ede3b41eb to your computer and use it in GitHub Desktop.
Save otarza/399be60c049ede3b41eb to your computer and use it in GitHub Desktop.
phpcs --standard=Drupal,DrupalPractice,DrupalStrict --extensions=php,module,install,profile,drush.inc,yml,test,admin.inc,js,css --report-width=4 --colors ./web/modules/custom/
FILE: ...w/project/web/modules/custom/sync_data/drush/sync_data.drush.inc
----------------------------------------------------------------------
FOUND 33 ERRORS AND 8 WARNINGS AFFECTING 19 LINES
----------------------------------------------------------------------
7 | WARNING | [ ] @author tags are not usually used in Drupal,
| | because over time multiple contributors will
| | touch the code anyway
58 | WARNING | [ ] Line exceeds 80 characters; contains 84
| | characters
58 | WARNING | [x] There must be no blank line following an inline
| | comment
58 | WARNING | [ ] There must be no blank line following an inline
| | comment
58 | ERROR | [x] No space found before comment text; expected "//
| | TODO implement broader approach for syncing any
| | entity type instead of just menu" but found
| | "//TODO implement broader approach for syncing
| | any entity type instead of just menu"
58 | ERROR | [x] Inline comments must end in full-stops,
| | exclamation marks, colons, or question marks
58 | ERROR | [x] No space found before comment text; expected "//
| | TODO implement broader approach for syncing any
| | entity type instead of just menu" but found
| | "//TODO implement broader approach for syncing
| | any entity type instead of just menu"
58 | ERROR | [ ] Inline comments must end in full-stops,
| | exclamation marks, or question marks
58 | ERROR | [x] There must be no blank line following an inline
| | comment
64 | ERROR | [x] Doc comment short description must end with a
| | full stop
68 | ERROR | [ ] Missing parameter type
68 | ERROR | [x] Tag value indented incorrectly; expected 1 space
| | but found 8
69 | ERROR | [x] Parameter comment indentation must be 3 spaces,
| | found 1 spaces
72 | WARNING | [x] There must be no blank line following an inline
| | comment
72 | WARNING | [ ] There must be no blank line following an inline
| | comment
72 | ERROR | [x] No space found before comment text; expected "//
| | TODO implement module independent scanning" but
| | found "//TODO implement module independent
| | scanning"
72 | ERROR | [x] Inline comments must end in full-stops,
| | exclamation marks, colons, or question marks
72 | ERROR | [x] No space found before comment text; expected "//
| | TODO implement module independent scanning" but
| | found "//TODO implement module independent
| | scanning"
72 | ERROR | [ ] Inline comments must end in full-stops,
| | exclamation marks, or question marks
72 | ERROR | [x] There must be no blank line following an inline
| | comment
99 | ERROR | [x] Doc comment short description must end with a
| | full stop
103 | ERROR | [ ] Missing parameter type
103 | ERROR | [x] Tag value indented incorrectly; expected 1 space
| | but found 8
104 | ERROR | [x] Parameter comment indentation must be 3 spaces,
| | found 1 spaces
107 | WARNING | [x] There must be no blank line following an inline
| | comment
107 | WARNING | [ ] There must be no blank line following an inline
| | comment
107 | ERROR | [x] No space found before comment text; expected "//
| | TODO implement module independent scanning" but
| | found "//TODO implement module independent
| | scanning"
107 | ERROR | [x] Inline comments must end in full-stops,
| | exclamation marks, colons, or question marks
107 | ERROR | [x] No space found before comment text; expected "//
| | TODO implement module independent scanning" but
| | found "//TODO implement module independent
| | scanning"
107 | ERROR | [ ] Inline comments must end in full-stops,
| | exclamation marks, or question marks
107 | ERROR | [x] There must be no blank line following an inline
| | comment
131 | ERROR | [x] Doc comment short description must end with a
| | full stop
133 | ERROR | [ ] Missing parameter type
133 | ERROR | [x] Tag value indented incorrectly; expected 1 space
| | but found 8
134 | ERROR | [x] Parameter comment indentation must be 3 spaces,
| | found 1 spaces
143 | ERROR | [ ] Inline doc block comments are not allowed; use
| | "/* Comment */" or "// Comment" instead
149 | ERROR | [ ] Assignments must be the first block of code on a
| | line
161 | ERROR | [x] Expected 1 spaces after parameter type; 2 found
162 | ERROR | [ ] Parameter comment must end with a full stop
165 | ERROR | [ ] Inline doc block comments are not allowed; use
| | "/* Comment */" or "// Comment" instead
188 | ERROR | [x] Expected 1 newline at end of file; 0 found
----------------------------------------------------------------------
PHPCBF CAN FIX THE 26 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------
Time: 442ms; Memory: 8Mb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment