- Issue created by @sunil jolapara
- Merge request !3Resolve #3477001 "Fix the issues reported by phpcodesniffer" ā (Open) created by sunil jolapara
- šŗšøUnited States sunil jolapara 3265 Summitrun Drive, Independence, KY, 41051
- šµšPhilippines cleavinjosh
Hi @sunil jolapara,
Thank you for providing an MR. I applied MR!3, it was applied smoothly and fixed most of the phpcs issues.
These are the remaining issues after I ran
phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml
:ā lazy_service git:(1.0.0-alpha1) curl https://git.drupalcode.org/project/lazy_service/-/merge_requests/3.diff | patch -p1 % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 13661 0 13661 0 0 29852 0 --:--:-- --:--:-- --:--:-- 29827 patching file README.txt patching file lazy_service_example/src/EventSubscriber/LazyServiceSubscriber.php patching file lazy_service_example/src/EventSubscriber/myLazyInterface.php patching file lazy_service_example/src/myLazy.php patching file src/LazyServiceServiceProvider.php ā lazy_service git:(1.0.0-alpha1) ā .. ā contrib git:(main) ā phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml lazy_service FILE: /Users/interns/Demo-site/drupal_11_test/install-dir/drupal_11_test_site/web/modules/contrib/lazy_service/lazy_service_example/src/myLazy.php -------------------------------------------------------------------------------------------------------------------------------------------------- FOUND 1 ERROR AFFECTING 1 LINE -------------------------------------------------------------------------------------------------------------------------------------------------- 11 | ERROR | Class name doesn't match filename; expected "class myLazy" -------------------------------------------------------------------------------------------------------------------------------------------------- FILE: /Users/interns/Demo-site/drupal_11_test/install-dir/drupal_11_test_site/web/modules/contrib/lazy_service/lazy_service_example/src/EventSubscriber/myLazyInterface.php --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- FOUND 1 ERROR AFFECTING 1 LINE --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 8 | ERROR | Interface name doesn't match filename; expected "interface myLazyInterface" --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Time: 123ms; Memory: 10MB ā contrib git:(main) ā
Thank you.
- š®š¹Italy apaderno Brescia, š®š¹
The issue summary for PHP_CodeSniffer issues should always show the report given from PHP_CodeSniffer and the arguments passed to
phpcs
.Furthermore, since GitLab CI is now enabled for all the projects, GitLab CI should be used to get PHP_CodeSniffer errors/warnings.
- šµšPhilippines cleavinjosh
My Apologies @kul.pratap. I forgot to assign the issue to myself.
- šµšPhilippines cleavinjosh
Hi,
Please review, check and advise on MR!3.
Thank you.
- Assigned to kulpratap2002
- Status changed to RTBC
13 days ago 4:57am 9 December 2024 Thank you for updating the MR. I applied MR!3, it was applied smoothly and fixed all of the issues reported by codesniffer.
Thank you
Moving it to RTBC+