- Issue created by @sunil jolapara
- Merge request !4Resolve #3476372 "Fix the issues reported by phpcodesniffer" ā (Open) created by sunil jolapara
- šŗšøUnited States sunil jolapara 3265 Summitrun Drive, Independence, KY, 41051
- š®š¹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
Hi @sunil jolapara,
Thank you for providing an MR. I applied MR!4, 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
:ā xnttfiles git:(1.0.x) curl https://git.drupalcode.org/project/xnttfiles/-/merge_requests/4.diff | patch -p1 % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 5780 0 5780 0 0 13178 0 --:--:-- --:--:-- --:--:-- 13196 patching file src/Entity/ExternalFile.php patching file src/Plugin/ExternalEntities/StorageClient/FileClientBase.php patching file src/Plugin/ExternalEntities/StorageClient/Files.php ā xnttfiles git:(1.0.x) ā .. ā contrib git:(main) ā phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml xnttfiles FILE: /Users/interns/Demo-site/drupal_11_test/install-dir/drupal_11_test_site/web/modules/contrib/xnttfiles/xnttfiles.module ---------------------------------------------------------------------------------------------------------------------------- FOUND 0 ERRORS AND 5 WARNINGS AFFECTING 5 LINES ---------------------------------------------------------------------------------------------------------------------------- 314 | WARNING | Unused variable $m. 430 | WARNING | Unused variable $integer_field_options. 431 | WARNING | Unused variable $date_field_options. 432 | WARNING | Unused variable $lang_field_options. 435 | WARNING | Unused variable $uuid_field_options. ---------------------------------------------------------------------------------------------------------------------------- FILE: /Users/interns/Demo-site/drupal_11_test/install-dir/drupal_11_test_site/web/modules/contrib/xnttfiles/src/Plugin/ExternalEntities/StorageClient/FileClientBase.php ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ FOUND 0 ERRORS AND 3 WARNINGS AFFECTING 3 LINES ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ 246 | WARNING | Unused variable $value. 663 | WARNING | Variable $entity_id inside unset call is undefined. 859 | WARNING | Unused variable $id. ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ Time: 811ms; Memory: 20MB ā contrib git:(main) ā
Thank you.
- Merge request !5Created a new merge request to get the list of all the PHP_CodeSniffer errors/warnings to fix ā (Open) created by cleavinjosh
- šµšPhilippines cleavinjosh
cleavinjosh ā changed the visibility of the branch 3476372-phpcs-issues to hidden.
- šµšPhilippines cleavinjosh
Hi,
This is the remaining issue.
ILE: /Users/interns/Demo-site/drupal_11_test/install-dir/drupal_11_test_site/web/modules/contrib/xnttfiles/src/Plugin/ExternalEntities/StorageClient/FileClientBase.php ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ 662 | WARNING | Variable $entity_id inside unset call is undefined. ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ Time: 789ms; Memory: 20MB ā contrib git:(main) ā
Please check and advise.
Thank you. - š®š¹Italy apaderno Brescia, š®š¹
The issue summary must still be updated: The .info.yml file does not contain any of the reported lines.