vendor/bin/phpcs --standard=Drupal --extensions=php,module,inc,install,profile,theme,yml web/modules/contrib/alertbox/
FILE: /home/sahana/Sites/contribution/web/modules/contrib/alertbox/alertbox.module
----------------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
----------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] Missing file doc comment
47 | ERROR | [ ] Doc comment short description must be on a single line, further text should be a separate paragraph
----------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------------------
FILE: /home/sahana/Sites/contribution/web/modules/contrib/alertbox/src/Form/AlertboxSettingsForm.php
----------------------------------------------------------------------------------------------------
FOUND 1 ERROR AND 7 WARNINGS AFFECTING 8 LINES
----------------------------------------------------------------------------------------------------
42 | WARNING | [ ] Line exceeds 80 characters; contains 82 characters
80 | ERROR | [x] Whitespace found at end of line
106 | WARNING | [x] A comma should follow the last multiline array item. Found: ]
107 | WARNING | [x] A comma should follow the last multiline array item. Found: ]
108 | WARNING | [x] A comma should follow the last multiline array item. Found: ]
122 | WARNING | [x] A comma should follow the last multiline array item. Found: ]
123 | WARNING | [x] A comma should follow the last multiline array item. Found: ]
124 | WARNING | [x] A comma should follow the last multiline array item. Found: ]
----------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 7 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------
Time: 443ms; Memory: 10MB
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | alertboxclean.png | 263.76 KB | guilhermevp |
| #2 | 3203217-1.patch | 2.58 KB | sahana _n |
Comments
Comment #2
sahana _n commentedPlease review the patch.
Comment #3
guilhermevp commentedPatch applies cleanly and phpcs returns no errors.
Image evidence attached.
Comment #5
rutiolmaCommitted, thanks
Comment #6
rutiolma