PHPCS Drupal Issue for your module

Created on 12 March 2024, 4 months ago
Updated 29 April 2024, about 2 months ago

Hi @Tim Bozeman
Referred source

when I run the command
phpcs --standard=Drupal --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml
for your module


I found this

FILE: /var/www/html/web/modules/contrib/toolbar_plus/README.md
----------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------
1 | ERROR | [x] Expected 1 newline at end of file; 3 found
----------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------

FILE: /var/www/html/web/modules/contrib/toolbar_plus/toolbar_plus.module
----------------------------------------------------------------------------------
FOUND 2 ERRORS AND 1 WARNING AFFECTING 3 LINES
----------------------------------------------------------------------------------
22 | WARNING | [x] A comma should follow the last multiline array item. Found: ]
24 | ERROR | [x] There should be no white space after an opening "["
33 | ERROR | [x] There should be no white space after an opening "["
----------------------------------------------------------------------------------
PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------

I have created Patch for this and merge request, whichever you find best
Hope you value my efforts.

📌 Task
Status

Closed: won't fix

Version

1.0

Component

Code

Created by

🇮🇳India Harpreet_singh_saluja

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

Merge Requests

Comments & Activities

Production build 0.69.0 2024