Skip to content

Instantly share code, notes, and snippets.

@otarza
Created November 25, 2015 09:03
Show Gist options
  • Save otarza/db570986239927a8443e to your computer and use it in GitHub Desktop.
Save otarza/db570986239927a8443e 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/ ./web/themes/contrib/
FILE: ...web/themes/contrib/wfp_base/css/components/wfp-base.messages.css
----------------------------------------------------------------------
FOUND 40 ERRORS AFFECTING 40 LINES
----------------------------------------------------------------------
6 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found
| | 4
7 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found
| | 4
8 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found
| | 4
9 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found
| | 4
10 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found
| | 4
11 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found
| | 4
12 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found
| | 4
15 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found
| | 4
16 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found
| | 4
17 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found
| | 4
18 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found
| | 4
19 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found
| | 4
22 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found
| | 4
25 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found
| | 4
26 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found
| | 4
27 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found
| | 4
30 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found
| | 4
34 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found
| | 4
35 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found
| | 4
36 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found
| | 4
37 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found
| | 4
38 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found
| | 4
41 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found
| | 4
42 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found
| | 4
43 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found
| | 4
47 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found
| | 4
48 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found
| | 4
49 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found
| | 4
50 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found
| | 4
51 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found
| | 4
54 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found
| | 4
55 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found
| | 4
59 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found
| | 4
60 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found
| | 4
61 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found
| | 4
62 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found
| | 4
63 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found
| | 4
66 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found
| | 4
67 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found
| | 4
70 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found
| | 4
----------------------------------------------------------------------
PHPCBF CAN FIX THE 40 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------
FILE: /var/www/project/web/themes/contrib/wfp_base/css/wfp-base.css
----------------------------------------------------------------------
FOUND 8 ERRORS AFFECTING 8 LINES
----------------------------------------------------------------------
12 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found
| | 4
16 | ERROR | [x] Expected 1 space before opening brace of class
| | definition; 0 found
17 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found
| | 4
21 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found
| | 4
22 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found
| | 4
25 | ERROR | [x] Expected 1 space before opening brace of class
| | definition; 0 found
26 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found
| | 4
27 | ERROR | [x] Expected 1 newline at end of file; 0 found
----------------------------------------------------------------------
PHPCBF CAN FIX THE 8 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------
FILE: ...roject/web/themes/contrib/wfp_base/css/wfpui/fonts/aleo/aleo.css
----------------------------------------------------------------------
FOUND 26 ERRORS AFFECTING 14 LINES
----------------------------------------------------------------------
8 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found
| | 7
8 | ERROR | [ ] No style definition found on line; check for
| | missing colon
9 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found
| | 7
9 | ERROR | [ ] No style definition found on line; check for
| | missing colon
10 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found
| | 7
10 | ERROR | [ ] No style definition found on line; check for
| | missing colon
13 | ERROR | [x] Blank lines are not allowed in class definitions
20 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found
| | 7
20 | ERROR | [ ] No style definition found on line; check for
| | missing colon
21 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found
| | 7
21 | ERROR | [ ] No style definition found on line; check for
| | missing colon
22 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found
| | 7
22 | ERROR | [ ] No style definition found on line; check for
| | missing colon
31 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found
| | 7
31 | ERROR | [ ] No style definition found on line; check for
| | missing colon
32 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found
| | 7
32 | ERROR | [ ] No style definition found on line; check for
| | missing colon
33 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found
| | 7
33 | ERROR | [ ] No style definition found on line; check for
| | missing colon
42 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found
| | 7
42 | ERROR | [ ] No style definition found on line; check for
| | missing colon
43 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found
| | 7
43 | ERROR | [ ] No style definition found on line; check for
| | missing colon
44 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found
| | 7
44 | ERROR | [ ] No style definition found on line; check for
| | missing colon
47 | ERROR | [x] Expected 1 newline at end of file; 0 found
----------------------------------------------------------------------
PHPCBF CAN FIX THE 14 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------
FILE: ...roject/web/themes/contrib/wfp_base/css/wfpui/fonts/lato/lato.css
----------------------------------------------------------------------
FOUND 37 ERRORS AFFECTING 19 LINES
----------------------------------------------------------------------
8 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found
| | 7
8 | ERROR | [ ] No style definition found on line; check for
| | missing colon
9 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found
| | 7
9 | ERROR | [ ] No style definition found on line; check for
| | missing colon
10 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found
| | 7
10 | ERROR | [ ] No style definition found on line; check for
| | missing colon
21 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found
| | 7
21 | ERROR | [ ] No style definition found on line; check for
| | missing colon
22 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found
| | 7
22 | ERROR | [ ] No style definition found on line; check for
| | missing colon
23 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found
| | 7
23 | ERROR | [ ] No style definition found on line; check for
| | missing colon
34 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found
| | 7
34 | ERROR | [ ] No style definition found on line; check for
| | missing colon
35 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found
| | 7
35 | ERROR | [ ] No style definition found on line; check for
| | missing colon
36 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found
| | 7
36 | ERROR | [ ] No style definition found on line; check for
| | missing colon
47 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found
| | 7
47 | ERROR | [ ] No style definition found on line; check for
| | missing colon
48 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found
| | 7
48 | ERROR | [ ] No style definition found on line; check for
| | missing colon
49 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found
| | 7
49 | ERROR | [ ] No style definition found on line; check for
| | missing colon
60 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found
| | 7
60 | ERROR | [ ] No style definition found on line; check for
| | missing colon
61 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found
| | 7
61 | ERROR | [ ] No style definition found on line; check for
| | missing colon
62 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found
| | 7
62 | ERROR | [ ] No style definition found on line; check for
| | missing colon
73 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found
| | 7
73 | ERROR | [ ] No style definition found on line; check for
| | missing colon
74 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found
| | 7
74 | ERROR | [ ] No style definition found on line; check for
| | missing colon
75 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found
| | 7
75 | ERROR | [ ] No style definition found on line; check for
| | missing colon
80 | ERROR | [x] Expected 1 newline at end of file; 0 found
----------------------------------------------------------------------
PHPCBF CAN FIX THE 19 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------
FILE: .../themes/contrib/wfp_base/css/wfpui/pure/grids-responsive-min.css
----------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------
1 | WARNING | File appears to be minified and cannot be processed
----------------------------------------------------------------------
FILE: .../project/web/themes/contrib/wfp_base/css/wfpui/pure/pure-min.css
----------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------
1 | WARNING | File appears to be minified and cannot be processed
----------------------------------------------------------------------
FILE: /var/www/project/web/themes/contrib/wfp_base/css/wfpui/wfpui.css
----------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------
1 | WARNING | File appears to be minified and cannot be processed
----------------------------------------------------------------------
FILE: /var/www/project/web/themes/contrib/wfp_base/gruntfile.js
----------------------------------------------------------------------
FOUND 4 ERRORS AFFECTING 1 LINE
----------------------------------------------------------------------
1 | ERROR | [x] You must use "/**" style comments for a file comment
1 | ERROR | [x] Inline comments must end in full-stops, exclamation
| | marks, colons, or question marks
1 | ERROR | [x] Comments may not appear after statements
1 | ERROR | [ ] Inline comments must end in full-stops, exclamation
| | marks, or question marks
----------------------------------------------------------------------
PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------
FILE: ...r/www/project/web/themes/contrib/wfp_base/wfp_base.libraries.yml
----------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------
1 | WARNING | No PHP code was found in this file and short open tags
| | are not allowed by this install of PHP. This file may
| | be using short open tags but PHP does not allow them.
----------------------------------------------------------------------
Time: 677ms; Memory: 8.25Mb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment