FILE: C:\xampp_new\htdocs\contribute\web\modules\custom\checkbox_radio_buttons_multi_columns\checkbox_radio_buttons_multi_columns.module
----------------------------------------------------------------------------------------------------------------------------------------
FOUND 3 ERRORS AFFECTING 2 LINES
----------------------------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] Missing file doc comment
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
31 | ERROR | [x] Expected 1 newline at end of file; 2 found
----------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------------------------------------
FILE: C:\xampp_new\htdocs\contribute\web\modules\custom\checkbox_radio_buttons_multi_columns\src\Plugin\Field\FieldWidget\MultiColumnOptionsButtonsWidget.php
-------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AND 1 WARNING AFFECTING 3 LINES
-------------------------------------------------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
7 | WARNING | [x] Unused use statement
24 | ERROR | [x] There must be exactly one newline after the class comment
-------------------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------------------------------------------------------
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | Screenshot from 2022-08-07 22-44-33.png | 58.89 KB | indrapatil |
| #2 | phpcs-drupal-standard-3293002-2.patch | 1.38 KB | Harsh panchal |
Comments
Comment #2
Harsh panchal commentedI have fixed this issue and providing a patch.
Comment #3
indrapatil commentedHi Harsh,
I reviewed the patch its working and if run the command
dell@indra-latitude-5480:/var/www/html/drupal-8$ phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml,twig checkbox_radio_buttons_multi_columns/
FILE: /var/www/html/drupal-8/checkbox_radio_buttons_multi_columns/checkbox_radio_buttons_multi_columns.module
-------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
-------------------------------------------------------------------------------------------------------------
10 | WARNING | Global constants should not be used, move it to a class or interface
-------------------------------------------------------------------------------------------------------------
Time: 70ms; Memory: 8MB
If you add DrupalPractice I can see I error I will work on it.
Comment #5
matsbla commented