- Issue created by @sidharth_soman
- @sidharth_soman opened merge request.
- Issue was unassigned.
- Status changed to Needs review
over 1 year ago 3:08pm 6 July 2023 - Status changed to RTBC
7 months ago 6:34am 31 May 2024
PHPCS Gives the following errors:
C:\xampp\htdocs\backendassignment\web\modules\contrib>phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml,twig editor_button_link
FILE: C:\xampp\htdocs\backendassignment\web\modules\contrib\editor_button_link\config\schema\editor_button_link.schema.yml
--------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------------------------------------------------
14 | ERROR | [x] Expected 1 newline at end of file; 0 found
--------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------------------------------------
FILE: C:\xampp\htdocs\backendassignment\web\modules\contrib\editor_button_link\editor_button_link.module
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 3 ERRORS AFFECTING 3 LINES
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
142 | ERROR | [ ] All functions defined in a module file must be prefixed with the module's name, found "generate_option_settings" but expected "editor_button_link_generate_option_settings"
161 | ERROR | [x] list(...) is forbidden, use [...] instead.
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: C:\xampp\htdocs\backendassignment\web\modules\contrib\editor_button_link\src\Plugin\Filter\EditorButtonLinkFilter.php
---------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
---------------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
---------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------------------
Time: 828ms; Memory: 6MB
Run the phpcs command on the module.
2.0
Code
It involves compliance with, or the content of coding standards. Requires broad community agreement.