- Issue created by @Tirupati_Singh
- Merge request !663411005-fix-issues-reported: Fixed phpcs issues. ā (Merged) created by Tirupati_Singh
- Open on Drupal.org āCore: 9.5.x + Environment: PHP 7.4 & MySQL 8last update
11 months ago Waiting for branch to pass - Issue was unassigned.
- Status changed to Needs review
11 months ago 12:56pm 27 December 2023 - šµšPhilippines clarkssquared
Hi
I confirmed that your MR !66 fixes most of the issues but I will retain the status to needs review because there is still a PHPCS warnings flagged in the module so that others can review and give feedback if the warnings needs to be fixed or can be ignored.
ā admin_toolbar git:(master) ā curl https://git.drupalcode.org/project/admin_toolbar/-/merge_requests/66.diff | patch -p1 % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 5437 0 5437 0 0 10558 0 --:--:-- --:--:-- --:--:-- 10681 patching file admin_toolbar.module patching file 'admin_toolbar_links_access_filter/admin_toolbar_links_access_filter.module' patching file 'admin_toolbar_search/admin_toolbar_search.module' patching file 'admin_toolbar_tools/src/Controller/ToolbarController.php' patching file 'admin_toolbar_tools/src/Plugin/Derivative/ExtraLinks.php' patching file 'src/Render/Element/AdminToolbar.php' ā admin_toolbar git:(master) ā .. ā contrib git:(master) ā phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml admin_toolbar FILE: ...bing-subing/Projects/d9/d9-local/web/modules/contrib/admin_toolbar/admin_toolbar_links_access_filter/admin_toolbar_links_access_filter.info.yml ----------------------------------------------------------------------------------------------------------------------------------------------------- FOUND 0 ERRORS AND 3 WARNINGS AFFECTING 1 LINE ----------------------------------------------------------------------------------------------------------------------------------------------------- 1 | WARNING | Remove "project" from the info file, it will be added by drupal.org packaging automatically 1 | WARNING | Remove "datestamp" from the info file, it will be added by drupal.org packaging automatically 1 | WARNING | Remove "version" from the info file, it will be added by drupal.org packaging automatically ----------------------------------------------------------------------------------------------------------------------------------------------------- FILE: /Users/clarksubing-subing/Projects/d9/d9-local/web/modules/contrib/admin_toolbar/admin_toolbar_search/admin_toolbar_search.info.yml ----------------------------------------------------------------------------------------------------------------------------------------- FOUND 0 ERRORS AND 3 WARNINGS AFFECTING 1 LINE ----------------------------------------------------------------------------------------------------------------------------------------- 1 | WARNING | Remove "project" from the info file, it will be added by drupal.org packaging automatically 1 | WARNING | Remove "datestamp" from the info file, it will be added by drupal.org packaging automatically 1 | WARNING | Remove "version" from the info file, it will be added by drupal.org packaging automatically ----------------------------------------------------------------------------------------------------------------------------------------- FILE: /Users/clarksubing-subing/Projects/d9/d9-local/web/modules/contrib/admin_toolbar/admin_toolbar_tools/admin_toolbar_tools.info.yml --------------------------------------------------------------------------------------------------------------------------------------- FOUND 0 ERRORS AND 3 WARNINGS AFFECTING 1 LINE --------------------------------------------------------------------------------------------------------------------------------------- 1 | WARNING | Remove "project" from the info file, it will be added by drupal.org packaging automatically 1 | WARNING | Remove "datestamp" from the info file, it will be added by drupal.org packaging automatically 1 | WARNING | Remove "version" from the info file, it will be added by drupal.org packaging automatically --------------------------------------------------------------------------------------------------------------------------------------- FILE: /Users/clarksubing-subing/Projects/d9/d9-local/web/modules/contrib/admin_toolbar/admin_toolbar.info.yml ------------------------------------------------------------------------------------------------------------- FOUND 0 ERRORS AND 3 WARNINGS AFFECTING 1 LINE ------------------------------------------------------------------------------------------------------------- 1 | WARNING | Remove "project" from the info file, it will be added by drupal.org packaging automatically 1 | WARNING | Remove "datestamp" from the info file, it will be added by drupal.org packaging automatically 1 | WARNING | Remove "version" from the info file, it will be added by drupal.org packaging automatically ------------------------------------------------------------------------------------------------------------- Time: 937ms; Memory: 16MB ā contrib git:(master) ā
- š®š³India Tirupati_Singh
Hi @clarkssquared, I've run the
phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml,twig
command but didn't get any mentioned warnings. Attaching the screenshot for your reference. - š®š³India dev16.addweb
After applying patch, I'm still receiving several phpcs problems.
FILE: /home/addweb/Drupal8-vagrant/web/web/drupal_10_2_6/web/modules/contrib/admin_toolbar/admin_toolbar_search/admin_toolbar_search.info.yml --------------------------------------------------------------------------------------------------------------------------------------------- FOUND 0 ERRORS AND 3 WARNINGS AFFECTING 1 LINE --------------------------------------------------------------------------------------------------------------------------------------------- 1 | WARNING | Remove "project" from the info file, it will be added by drupal.org packaging automatically 1 | WARNING | Remove "datestamp" from the info file, it will be added by drupal.org packaging automatically 1 | WARNING | Remove "version" from the info file, it will be added by drupal.org packaging automatically --------------------------------------------------------------------------------------------------------------------------------------------- FILE: /home/addweb/Drupal8-vagrant/web/web/drupal_10_2_6/web/modules/contrib/admin_toolbar/admin_toolbar.info.yml ----------------------------------------------------------------------------------------------------------------- FOUND 0 ERRORS AND 3 WARNINGS AFFECTING 1 LINE ----------------------------------------------------------------------------------------------------------------- 1 | WARNING | Remove "project" from the info file, it will be added by drupal.org packaging automatically 1 | WARNING | Remove "datestamp" from the info file, it will be added by drupal.org packaging automatically 1 | WARNING | Remove "version" from the info file, it will be added by drupal.org packaging automatically ----------------------------------------------------------------------------------------------------------------- FILE: /home/addweb/Drupal8-vagrant/web/web/drupal_10_2_6/web/modules/contrib/admin_toolbar/PATCHES.txt ------------------------------------------------------------------------------------------------------ FOUND 1 ERROR AND 1 WARNING AFFECTING 2 LINES ------------------------------------------------------------------------------------------------------ 1 | WARNING | [ ] Line exceeds 80 characters; contains 104 characters 5 | ERROR | [x] Expected 1 newline at end of file; 3 found ------------------------------------------------------------------------------------------------------ PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY ------------------------------------------------------------------------------------------------------ FILE: /home/addweb/Drupal8-vagrant/web/web/drupal_10_2_6/web/modules/contrib/admin_toolbar/admin_toolbar_tools/admin_toolbar_tools.info.yml ------------------------------------------------------------------------------------------------------------------------------------------- FOUND 0 ERRORS AND 3 WARNINGS AFFECTING 1 LINE ------------------------------------------------------------------------------------------------------------------------------------------- 1 | WARNING | Remove "project" from the info file, it will be added by drupal.org packaging automatically 1 | WARNING | Remove "datestamp" from the info file, it will be added by drupal.org packaging automatically 1 | WARNING | Remove "version" from the info file, it will be added by drupal.org packaging automatically ------------------------------------------------------------------------------------------------------------------------------------------- FILE: /home/addweb/Drupal8-vagrant/web/web/drupal_10_2_6/web/modules/contrib/admin_toolbar/admin_toolbar_links_access_filter/admin_toolbar_links_access_filter.info.yml ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- FOUND 0 ERRORS AND 3 WARNINGS AFFECTING 1 LINE ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- 1 | WARNING | Remove "project" from the info file, it will be added by drupal.org packaging automatically 1 | WARNING | Remove "datestamp" from the info file, it will be added by drupal.org packaging automatically 1 | WARNING | Remove "version" from the info file, it will be added by drupal.org packaging automatically -----------------------------------------------------------------------------------------------------------------------------------------------------------------------
- Open on Drupal.org āCore: 9.5.x + Environment: PHP 7.4 & MySQL 8last update
6 months ago Waiting for branch to pass - š®š³India Tirupati_Singh
@silvi.addweb, I've fixed the phpcs issues. Please apply the patch again and verify the changes.
- Status changed to RTBC
6 months ago 5:44am 4 June 2024 - š®š³India dev16.addweb
Hii,
Yes, I've checked and all phpcs issues are resolved now. - First commit to issue fork.
- š®š³India rajeshreeputra Pune
Changes looks good, CI passing, can we get it merged? this will unblock the Drupal 11 compatibility issue - š Add Drupal 11 support Needs review .
Thanks! - Status changed to Needs review
4 months ago 5:02pm 2 August 2024 - š«š·France dydave
Rebased MR!66 on 3.x with gitlabci tests and required phpcs and phpstan jobs to pass.
ā Merge request seems to complete successfully with all PHPCS and PHPSTAN validation errors fixed, see:
- MR: https://git.drupalcode.org/issue/admin_toolbar-3411005/-/pipelines/241969
- PHPCS: https://git.drupalcode.org/issue/admin_toolbar-3411005/-/jobs/2318325
- PHPSTAN: https://git.drupalcode.org/issue/admin_toolbar-3411005/-/jobs/2318326
Back to Needs review for more reviews, testing and feedback.
Thanks! - First commit to issue fork.
- š«š·France dydave
Thanks Jakob (@japerry)!
Ticket's merge request MR!66 should be completing successfully with PHPCS and PHPStan jobs passing š¢
Everything is green except ESLint:
https://git.drupalcode.org/issue/admin_toolbar-3411005/-/pipelines/242227Hope we could get this one in as well!
Thanks in advance! -
japerry ā
committed 3653c655 on 3.x authored by
Tirupati_Singh ā
Issue #3411005: GitlabCI: Fix PHPCS and PHPStan validation errors
-
japerry ā
committed 3653c655 on 3.x authored by
Tirupati_Singh ā
- Status changed to Fixed
4 months ago 10:18pm 2 August 2024 - šŗšøUnited States japerry KVUO
Made PHPstan optional as its more likely to change due to no fault of the module.
Automatically closed - issue fixed for 2 weeks with no activity.