Expected 1 newline at end of file

Created on 3 June 2023, over 1 year ago
Updated 5 June 2023, over 1 year ago

Problem/Motivation

FILE: C:\xampp\htdocs\drupal_9\web\themes\mahi\css\bootstrap-icons.css
----------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------
1 | WARNING | File appears to be minified and cannot be processed
----------------------------------------------------------------------

FILE: C:\xampp\htdocs\drupal_9\web\themes\mahi\css\font.css
-------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
-------------------------------------------------------------------------
10 | ERROR | No style definition found on line; check for missing colon
20 | ERROR | No style definition found on line; check for missing colon
-------------------------------------------------------------------------

FILE: C:\xampp\htdocs\drupal_9\web\themes\mahi\css\fontawesome5.css
----------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------
1 | WARNING | File appears to be minified and cannot be processed
----------------------------------------------------------------------

FILE: C:\xampp\htdocs\drupal_9\web\themes\mahi\css\fontawesome6.css
----------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------
1 | WARNING | File appears to be minified and cannot be processed
----------------------------------------------------------------------

FILE: C:\xampp\htdocs\drupal_9\web\themes\mahi\css\rtl.css
----------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------
1 | ERROR | [x] Additional whitespace found at start of file
----------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------

FILE: C:\xampp\htdocs\drupal_9\web\themes\mahi\css\slider.css
----------------------------------------------------------------------
FOUND 23 ERRORS AFFECTING 23 LINES
----------------------------------------------------------------------
3 | ERROR | Style definitions must end with a semicolon
5 | ERROR | Style definitions must end with a semicolon
10 | ERROR | Style definitions must end with a semicolon
14 | ERROR | Style definitions must end with a semicolon
17 | ERROR | Style definitions must end with a semicolon
19 | ERROR | Style definitions must end with a semicolon
21 | ERROR | Style definitions must end with a semicolon
24 | ERROR | Style definitions must end with a semicolon
31 | ERROR | Style definitions must end with a semicolon
33 | ERROR | Style definitions must end with a semicolon
44 | ERROR | Style definitions must end with a semicolon
50 | ERROR | Style definitions must end with a semicolon
52 | ERROR | Style definitions must end with a semicolon
54 | ERROR | Style definitions must end with a semicolon
57 | ERROR | Style definitions must end with a semicolon
60 | ERROR | Style definitions must end with a semicolon
68 | ERROR | Style definitions must end with a semicolon
70 | ERROR | Style definitions must end with a semicolon
85 | ERROR | Style definitions must end with a semicolon
94 | ERROR | Style definitions must end with a semicolon
97 | ERROR | Style definitions must end with a semicolon
99 | ERROR | Style definitions must end with a semicolon
103 | ERROR | Style definitions must end with a semicolon
----------------------------------------------------------------------

FILE: C:\xampp\htdocs\drupal_9\web\themes\mahi\mahi.theme
------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------
32 | ERROR | Doc comment short description must be on a single line, further text should be a separate paragraph
------------------------------------------------------------------------------------------------------------------

FILE: C:\xampp\htdocs\drupal_9\web\themes\mahi\README.md
----------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------
3 | WARNING | Line exceeds 80 characters; contains 104 characters
----------------------------------------------------------------------

FILE: C:\xampp\htdocs\drupal_9\web\themes\mahi\README.txt
----------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------
3 | WARNING | Line exceeds 80 characters; contains 104 characters
----------------------------------------------------------------------

FILE: C:\xampp\htdocs\drupal_9\web\themes\mahi\theme-settings.php
-------------------------------------------------------------------------------------------------------------------------------
FOUND 111 ERRORS AND 4 WARNINGS AFFECTING 87 LINES
-------------------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] Missing file doc comment
1 | ERROR | [x] The PHP open tag must be followed by exactly one blank line
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
2 | ERROR | [x] There must be one blank line after the last USE statement; 0 found;
7 | ERROR | [x] Missing function doc comment
7 | ERROR | [x] Expected 1 blank line before function; 0 found
21 | ERROR | [x] Inline comments must start with a capital letter
71 | ERROR | [x] Inline comments must start with a capital letter
77 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
84 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
104 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
116 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
126 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
133 | ERROR | [x] Short array syntax must be used to define arrays
134 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
134 | ERROR | [x] Array indentation error, expected 6 spaces but found 5
135 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
135 | ERROR | [x] Array indentation error, expected 6 spaces but found 5
135 | ERROR | [x] Closing parenthesis of array declaration must be on a new line
138 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
145 | ERROR | [x] Short array syntax must be used to define arrays
146 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
146 | ERROR | [x] Array indentation error, expected 6 spaces but found 5
147 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
147 | ERROR | [x] Array indentation error, expected 6 spaces but found 5
147 | ERROR | [x] Closing parenthesis of array declaration must be on a new line
150 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
157 | ERROR | [x] Short array syntax must be used to define arrays
158 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
158 | ERROR | [x] Array indentation error, expected 6 spaces but found 5
159 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
159 | ERROR | [x] Array indentation error, expected 6 spaces but found 5
159 | ERROR | [x] Closing parenthesis of array declaration must be on a new line
163 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
169 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
182 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
183 | ERROR | [x] Array indentation error, expected 6 spaces but found 4
184 | ERROR | [x] Array indentation error, expected 6 spaces but found 4
185 | ERROR | [x] Array closing indentation error, expected 4 spaces but found 2
259 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 3
263 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 3
264 | ERROR | [x] Array indentation error, expected 5 spaces but found 7
265 | ERROR | [x] Array indentation error, expected 5 spaces but found 7
266 | ERROR | [x] Array indentation error, expected 5 spaces but found 7
267 | ERROR | [x] Array indentation error, expected 5 spaces but found 7
270 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 3
271 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 3
275 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 3
276 | ERROR | [x] Array indentation error, expected 5 spaces but found 7
277 | ERROR | [x] Array indentation error, expected 5 spaces but found 7
278 | ERROR | [x] Array indentation error, expected 5 spaces but found 7
279 | ERROR | [x] Array indentation error, expected 5 spaces but found 7
282 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 3
283 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 3
287 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 3
288 | ERROR | [x] Array indentation error, expected 5 spaces but found 7
289 | ERROR | [x] Array indentation error, expected 5 spaces but found 7
290 | ERROR | [x] Array indentation error, expected 5 spaces but found 7
291 | ERROR | [x] Array indentation error, expected 5 spaces but found 7
294 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 3
295 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 3
299 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 3
325 | ERROR | [x] Short array syntax must be used to define arrays
326 | ERROR | [x] Short array syntax must be used to define arrays
338 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
349 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
355 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
359 | ERROR | [x] Inline comments must start with a capital letter
359 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
366 | ERROR | [x] Inline comments must start with a capital letter
366 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
373 | ERROR | [x] Inline comments must start with a capital letter
373 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
380 | ERROR | [x] Inline comments must start with a capital letter
380 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
386 | ERROR | [x] Inline comments must start with a capital letter
386 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
392 | ERROR | [x] Inline comments must start with a capital letter
392 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
399 | ERROR | [x] Inline comments must start with a capital letter
399 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
403 | WARNING | [ ] Do not pass empty strings to t()
406 | ERROR | [x] Inline comments must start with a capital letter
406 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
413 | ERROR | [x] Inline comments must start with a capital letter
413 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
420 | ERROR | [x] Inline comments must start with a capital letter
420 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
428 | ERROR | [x] Short array syntax must be used to define arrays
429 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
430 | WARNING | [x] A comma should follow the last multiline array item. Found: )
435 | ERROR | [x] Inline comments must start with a capital letter
435 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
439 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
439 | WARNING | [x] A comma should follow the last multiline array item. Found: )
447 | ERROR | [x] Inline comments must start with a capital letter
447 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
451 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
451 | WARNING | [x] A comma should follow the last multiline array item. Found: )
459 | ERROR | [x] Inline comments must start with a capital letter
459 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
470 | ERROR | [x] Inline comments must start with a capital letter
470 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
507 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
526 | ERROR | [ ] Inline doc block comments are not allowed; use "/* Comment */" or "// Comment" instead
544 | ERROR | [ ] Inline doc block comments are not allowed; use "/* Comment */" or "// Comment" instead
550 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
557 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
563 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
569 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
574 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
580 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
586 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
603 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
616 | ERROR | [x] Expected 1 newline at end of file; 0 found
-------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 112 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------------------------

FILE: C:\xampp\htdocs\drupal_9\web\themes\mahi\Theme_Changelog.txt
----------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------
96 | ERROR | [x] Expected 1 newline at end of file; 0 found
----------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------

Steps to reproduce

Run the command:
phpcs --standard=Drupal --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml mahi/

Proposed resolution

Fix the errors as per Drupal coding standards.

📌 Task
Status

Closed: won't fix

Version

1.0

Component

Code

Created by

🇮🇳India arti_parmar

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024