Problem/Motivation

FILE: //image_edit/README.md
------------------------------------------------------------------------
FOUND 1 ERROR AND 5 WARNINGS AFFECTING 6 LINES
------------------------------------------------------------------------
1 | WARNING | [ ] Line exceeds 80 characters; contains 113 characters
2 | WARNING | [ ] Line exceeds 80 characters; contains 137 characters
4 | WARNING | [ ] Line exceeds 80 characters; contains 113 characters
8 | WARNING | [ ] Line exceeds 80 characters; contains 268 characters
14 | WARNING | [ ] Line exceeds 80 characters; contains 97 characters
18 | ERROR | [x] Expected 1 newline at end of file; 0 found
------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------

FILE: //image_edit/src/Plugin/Block/ImageEditorOverlay.php
------------------------------------------------------------------------------------------------------------------------------------
FOUND 7 ERRORS AFFECTING 6 LINES
------------------------------------------------------------------------------------------------------------------------------------
3 | ERROR | [x] There must be one blank line after the namespace declaration
6 | ERROR | [x] There must be one blank line after the last USE statement; 2 found;
37 | ERROR | [x] Expected 1 space before "="; 0 found
40 | ERROR | [x] Concat operator must be surrounded by a single space
45 | ERROR | [ ] The array declaration extends to column 95 (the limit is 80). The array content should be split up over multiple
| | lines
51 | ERROR | [x] Expected 1 newline at end of file; 0 found
51 | ERROR | [x] The closing brace for the class must have an empty line before it
------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 6 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------------------------------

FILE: //image_edit/src/Controller/ReplaceImage.php
----------------------------------------------------------------------------------------------------------
FOUND 13 ERRORS AND 1 WARNING AFFECTING 9 LINES
----------------------------------------------------------------------------------------------------------
3 | ERROR | [x] There must be one blank line after the namespace declaration
10 | WARNING | [x] Unused use statement
14 | ERROR | [x] Missing class doc comment
15 | ERROR | [x] The open comment tag must be the only content on the line
15 | ERROR | [ ] Missing short description in doc comment
15 | ERROR | [x] Data types in @var tags need to be fully namespaced
15 | ERROR | [x] Data types in @var tags need to be fully namespaced
15 | ERROR | [x] Expected "FileSystem" but found "FileSystem " for @var tag in member variable comment
18 | ERROR | [x] Missing function doc comment
22 | ERROR | [x] Missing function doc comment
48 | ERROR | [x] Data types in @var tags need to be fully namespaced
48 | ERROR | [x] Data types in @var tags need to be fully namespaced
52 | ERROR | [x] Expected 1 blank line after function; 0 found
53 | ERROR | [x] The closing brace for the class must have an empty line before it
----------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 13 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------

FILE: //image_edit/assets/styles.css
--------------------------------------------------------------------------------------
FOUND 25 ERRORS AFFECTING 25 LINES
--------------------------------------------------------------------------------------
18 | ERROR | [x] Whitespace found at end of line
23 | ERROR | [x] Whitespace found at end of line
24 | ERROR | [x] Whitespace found at end of line
27 | ERROR | [x] Whitespace found at end of line
29 | ERROR | [x] Whitespace found at end of line
32 | ERROR | [x] Whitespace found at end of line
33 | ERROR | [x] Whitespace found at end of line
36 | ERROR | [x] Whitespace found at end of line
39 | ERROR | [x] Whitespace found at end of line
40 | ERROR | [x] Whitespace found at end of line
41 | ERROR | [x] Whitespace found at end of line
42 | ERROR | [x] Whitespace found at end of line
43 | ERROR | [x] Whitespace found at end of line
44 | ERROR | [x] Whitespace found at end of line
51 | ERROR | [x] Expected 1 space after colon in style definition; 0 found
52 | ERROR | [x] Expected 1 space after colon in style definition; 0 found
53 | ERROR | [x] Expected 1 space after colon in style definition; 0 found
54 | ERROR | [x] Expected 1 space after colon in style definition; 0 found
76 | ERROR | [x] Whitespace found at end of line
77 | ERROR | [x] Expected 1 space before opening brace of class definition; 2 found
125 | ERROR | [x] Whitespace found at end of line
128 | ERROR | [x] Whitespace found at end of line
136 | ERROR | [x] Whitespace found at end of line
157 | ERROR | [x] Blank lines are not allowed in class definitions
221 | ERROR | [x] Expected 1 newline at end of file; 0 found
--------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 25 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------

FILE: //image_edit/image_edit.module
----------------------------------------------------------------------------------------------------------------------------
FOUND 5 ERRORS AND 2 WARNINGS AFFECTING 6 LINES
----------------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] Missing file doc comment
1 | ERROR | [x] The PHP open tag must be followed by exactly one blank line
11 | WARNING | [x] A comma should follow the last multiline array item. Found: ]
22 | ERROR | [ ] Doc comment short description must be on a single line, further text should be a separate paragraph
44 | ERROR | [x] Use "elseif" in place of "else if"
50 | ERROR | [x] Expected one space after the comma, 0 found
51 | WARNING | [x] A comma should follow the last multiline array item. Found: 'https://www.drupal.org/project/image_edit'
----------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 6 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------------------------

Comments

jcnventura created an issue. See original summary.

  • c3c17ae committed on 8.x-1.x
    Issue #3312568 by jcnventura: Coding standards
    
jcnventura’s picture

Assigned: jcnventura » Unassigned
Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

jcnventura’s picture