$ phpcs --standard=Drupal --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml views_display_union/
FILE: C:\xampp\htdocs\contribution\web\modules\contrib\views_display_union\README.txt
-------------------------------------------------------------------------------------
FOUND 1 ERROR AND 1 WARNING AFFECTING 2 LINES
-------------------------------------------------------------------------------------
3 | WARNING | [ ] Line exceeds 80 characters; contains 272 characters
6 | ERROR | [x] Expected 1 newline at end of file; 0 found
-------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------
FILE: C:\xampp\htdocs\contribution\web\modules\contrib\views_display_union\src\Plugin\views\display\Union.php
-------------------------------------------------------------------------------------------------------------
FOUND 3 ERRORS AFFECTING 3 LINES
-------------------------------------------------------------------------------------------------------------
111 | ERROR | [x] Missing function doc comment
149 | ERROR | [ ] Missing short description in doc comment
209 | ERROR | [x] Expected 1 newline at end of file; 0 found
-------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------
FILE: C:\xampp\htdocs\contribution\web\modules\contrib\views_display_union\views_display_union.module
-----------------------------------------------------------------------------------------------------
FOUND 5 ERRORS AFFECTING 5 LINES
-----------------------------------------------------------------------------------------------------
34 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
71 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
78 | ERROR | [x] Closing parenthesis of array declaration must be on a new line
85 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
116 | ERROR | [x] Expected 1 newline at end of file; 0 found
-----------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 5 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------
Time: 300ms; Memory: 10MB
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | coding_standard_fixes-3289566-1.patch | 3.88 KB | rakhi soni |
Comments
Comment #2
rakhi soni commentedComment #3
rakhi soni commentedI have created a patch to fix the coding standard issue,,
Comment #5
gribnif commentedI applied this patch and cleaned it up a bit. Thanks!
Comment #6
gribnif commented