- Issue created by @sidharth_soman
- š®š³India sidharth_soman Bangalore
Finding the issues as indicated in the summary upon running phpcs. Will work on fixing them.
- Status changed to Needs work
over 1 year ago 9:07am 3 April 2023 - @sidharth_soman opened merge request.
- Issue was unassigned.
- Status changed to Needs review
over 1 year ago 9:17am 3 April 2023 - š®š³India sidharth_soman Bangalore
I have solved about 60-70% of the issues. The rest are documentation gaps which would ideally be filled in by the maintainers.
Please review the above MR.
Thanks. - Status changed to Needs work
4 months ago 10:44am 15 August 2024 - šµšPhilippines cleavinjosh
Hi @sidharth_soman,
I applied MR!1, it was applied smoothly and fixed most of the phpcs issues.
These are the remaining issues after I run
phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml
.ā menu_attributes git:(7.x-1.x) curl https://git.drupalcode.org/project/menu_attributes/-/merge_requests/1.diff | patch -p1 % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 12737 0 12737 0 0 27862 0 --:--:-- --:--:-- --:--:-- 27870 patching file menu_attributes.api.php patching file menu_attributes.install patching file menu_attributes.module patching file menu_attributes.test ā menu_attributes git:(7.x-1.x) ā .. ā contrib phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml menu_attributes FILE: /Users/interns/Demo-site/drupal-org-issues/web/modules/contrib/menu_attributes/menu_attributes.install ------------------------------------------------------------------------------------------------------------------ FOUND 1 ERROR AFFECTING 1 LINE ------------------------------------------------------------------------------------------------------------------ 89 | ERROR | Doc comment short description must be on a single line, further text should be a separate paragraph ------------------------------------------------------------------------------------------------------------------ FILE: /Users/interns/Demo-site/drupal-org-issues/web/modules/contrib/menu_attributes/menu_attributes.module ----------------------------------------------------------------------------------------------------------- FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE ----------------------------------------------------------------------------------------------------------- 5 | WARNING | Line exceeds 80 characters; contains 107 characters ----------------------------------------------------------------------------------------------------------- FILE: /Users/interns/Demo-site/drupal-org-issues/web/modules/contrib/menu_attributes/menu_attributes.test --------------------------------------------------------------------------------------------------------- FOUND 9 ERRORS AND 4 WARNINGS AFFECTING 13 LINES --------------------------------------------------------------------------------------------------------- 14 | ERROR | Missing member variable doc comment 15 | ERROR | Missing member variable doc comment 16 | ERROR | Missing member variable doc comment 18 | ERROR | Doc comment is empty 93 | WARNING | Line exceeds 80 characters; contains 87 characters 115 | ERROR | Doc comment is empty 121 | WARNING | Only string literals should be passed to t() where possible 126 | WARNING | Only string literals should be passed to t() where possible 138 | ERROR | Doc comment is empty 149 | ERROR | Doc comment is empty 152 | WARNING | Possible useless method overriding detected 188 | ERROR | Doc comment is empty 199 | ERROR | Doc comment is empty --------------------------------------------------------------------------------------------------------- FILE: /Users/interns/Demo-site/drupal-org-issues/web/modules/contrib/menu_attributes/CHANGELOG.txt -------------------------------------------------------------------------------------------------- FOUND 0 ERRORS AND 13 WARNINGS AFFECTING 13 LINES -------------------------------------------------------------------------------------------------- 6 | WARNING | Line exceeds 80 characters; contains 90 characters 7 | WARNING | Line exceeds 80 characters; contains 109 characters 8 | WARNING | Line exceeds 80 characters; contains 81 characters 10 | WARNING | Line exceeds 80 characters; contains 109 characters 12 | WARNING | Line exceeds 80 characters; contains 108 characters 16 | WARNING | Line exceeds 80 characters; contains 96 characters 21 | WARNING | Line exceeds 80 characters; contains 89 characters 22 | WARNING | Line exceeds 80 characters; contains 161 characters 23 | WARNING | Line exceeds 80 characters; contains 82 characters 27 | WARNING | Line exceeds 80 characters; contains 102 characters 28 | WARNING | Line exceeds 80 characters; contains 124 characters 31 | WARNING | Line exceeds 80 characters; contains 124 characters 37 | WARNING | Line exceeds 80 characters; contains 157 characters -------------------------------------------------------------------------------------------------- Time: 257ms; Memory: 12MB ā contrib
Thank you.