- Issue created by @sonam_sharma
- Status changed to Needs work
over 1 year ago 2:35am 29 June 2023 - 🇵🇭Philippines paraderojether
Hi @sonam_sharma
I reviewed patch #2, and there still remaining issues reported by phpcs after applying the patch.
Command used: phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml,twig
FILE: /Users/studenttrainees/Drupal/drupalorg-issues-site/docroot/modules/contrib/taxonomy_sitemap_xml/taxonomy_sitemap_xml.info.yml ------------------------------------------------------------------------------------------------------------------------------------ FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE ------------------------------------------------------------------------------------------------------------------------------------ 8 | WARNING | All dependencies must be prefixed with the project name, for example "drupal:" ------------------------------------------------------------------------------------------------------------------------------------ FILE: /Users/studenttrainees/Drupal/drupalorg-issues-site/docroot/modules/contrib/taxonomy_sitemap_xml/Readme.md ---------------------------------------------------------------------------------------------------------------- FOUND 0 ERRORS AND 8 WARNINGS AFFECTING 8 LINES ---------------------------------------------------------------------------------------------------------------- 4 | WARNING | Line exceeds 80 characters; contains 205 characters 7 | WARNING | Line exceeds 80 characters; contains 93 characters 9 | WARNING | Line exceeds 80 characters; contains 121 characters 15 | WARNING | Line exceeds 80 characters; contains 108 characters 16 | WARNING | Line exceeds 80 characters; contains 141 characters 17 | WARNING | Line exceeds 80 characters; contains 125 characters 25 | WARNING | Line exceeds 80 characters; contains 163 characters 28 | WARNING | Line exceeds 80 characters; contains 142 characters ---------------------------------------------------------------------------------------------------------------- FILE: /Users/studenttrainees/Drupal/drupalorg-issues-site/docroot/modules/contrib/taxonomy_sitemap_xml/templates/taxonomy-sitemap-index.html.twig ------------------------------------------------------------------------------------------------------------------------------------------------- FOUND 1 ERROR AND 1 WARNING AFFECTING 2 LINES ------------------------------------------------------------------------------------------------------------------------------------------------- 1 | WARNING | [ ] Possible use of short open tags detected; found: <?xml version="1.0" encoding="UTF-8"?> | | 8 | ERROR | [x] Expected 1 newline at end of file; 2 found ------------------------------------------------------------------------------------------------------------------------------------------------- PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY ------------------------------------------------------------------------------------------------------------------------------------------------- FILE: /Users/studenttrainees/Drupal/drupalorg-issues-site/docroot/modules/contrib/taxonomy_sitemap_xml/templates/taxonomy-sitemap-xml.html.twig ----------------------------------------------------------------------------------------------------------------------------------------------- FOUND 1 ERROR AND 1 WARNING AFFECTING 2 LINES ----------------------------------------------------------------------------------------------------------------------------------------------- 1 | WARNING | [ ] Possible use of short open tags detected; found: <?xml version="1.0" encoding="UTF-8"?> | | 13 | ERROR | [x] Expected 1 newline at end of file; 3 found ----------------------------------------------------------------------------------------------------------------------------------------------- PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY ----------------------------------------------------------------------------------------------------------------------------------------------- FILE: /Users/studenttrainees/Drupal/drupalorg-issues-site/docroot/modules/contrib/taxonomy_sitemap_xml/src/Form/TaxonomySitemapVocabularyConfigForm.php ------------------------------------------------------------------------------------------------------------------------------------------------------- FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE ------------------------------------------------------------------------------------------------------------------------------------------------------- 35 | WARNING | \Drupal calls should be avoided in classes, use dependency injection instead ------------------------------------------------------------------------------------------------------------------------------------------------------- FILE: /Users/studenttrainees/Drupal/drupalorg-issues-site/docroot/modules/contrib/taxonomy_sitemap_xml/src/Controller/SitemapIndexController.php ------------------------------------------------------------------------------------------------------------------------------------------------ FOUND 0 ERRORS AND 14 WARNINGS AFFECTING 11 LINES ------------------------------------------------------------------------------------------------------------------------------------------------ 18 | WARNING | Unused variable $current_language. 18 | WARNING | \Drupal calls should be avoided in classes, use dependency injection instead 20 | WARNING | \Drupal calls should be avoided in classes, use dependency injection instead 25 | WARNING | \Drupal calls should be avoided in classes, use dependency injection instead 26 | WARNING | \Drupal calls should be avoided in classes, use dependency injection instead 30 | WARNING | Unused variable $host. 30 | WARNING | \Drupal calls should be avoided in classes, use dependency injection instead 46 | WARNING | Unused variable $host. 46 | WARNING | \Drupal calls should be avoided in classes, use dependency injection instead 69 | WARNING | \Drupal calls should be avoided in classes, use dependency injection instead 70 | WARNING | \Drupal calls should be avoided in classes, use dependency injection instead 73 | WARNING | \Drupal calls should be avoided in classes, use dependency injection instead 74 | WARNING | \Drupal calls should be avoided in classes, use dependency injection instead 84 | WARNING | \Drupal calls should be avoided in classes, use dependency injection instead ------------------------------------------------------------------------------------------------------------------------------------------------ FILE: /Users/studenttrainees/Drupal/drupalorg-issues-site/docroot/modules/contrib/taxonomy_sitemap_xml/src/Controller/TaxonomySitemapController.php --------------------------------------------------------------------------------------------------------------------------------------------------- FOUND 0 ERRORS AND 5 WARNINGS AFFECTING 5 LINES --------------------------------------------------------------------------------------------------------------------------------------------------- 47 | WARNING | \Drupal calls should be avoided in classes, use dependency injection instead 56 | WARNING | \Drupal calls should be avoided in classes, use dependency injection instead 68 | WARNING | \Drupal calls should be avoided in classes, use dependency injection instead 74 | WARNING | \Drupal calls should be avoided in classes, use dependency injection instead 79 | WARNING | Unused variable $url. --------------------------------------------------------------------------------------------------------------------------------------------------- FILE: /Users/studenttrainees/Drupal/drupalorg-issues-site/docroot/modules/contrib/taxonomy_sitemap_xml/src/Controller/TaxonomySitemapIndexController.php -------------------------------------------------------------------------------------------------------------------------------------------------------- FOUND 0 ERRORS AND 14 WARNINGS AFFECTING 11 LINES -------------------------------------------------------------------------------------------------------------------------------------------------------- 18 | WARNING | Unused variable $current_language. 18 | WARNING | \Drupal calls should be avoided in classes, use dependency injection instead 20 | WARNING | \Drupal calls should be avoided in classes, use dependency injection instead 25 | WARNING | \Drupal calls should be avoided in classes, use dependency injection instead 26 | WARNING | \Drupal calls should be avoided in classes, use dependency injection instead 30 | WARNING | Unused variable $host. 30 | WARNING | \Drupal calls should be avoided in classes, use dependency injection instead 46 | WARNING | Unused variable $host. 46 | WARNING | \Drupal calls should be avoided in classes, use dependency injection instead 69 | WARNING | \Drupal calls should be avoided in classes, use dependency injection instead 70 | WARNING | \Drupal calls should be avoided in classes, use dependency injection instead 73 | WARNING | \Drupal calls should be avoided in classes, use dependency injection instead 74 | WARNING | \Drupal calls should be avoided in classes, use dependency injection instead 84 | WARNING | \Drupal calls should be avoided in classes, use dependency injection instead -------------------------------------------------------------------------------------------------------------------------------------------------------- Time: 363ms; Memory: 10MB
Better to fix remaining errors/warnings in this issue since it is also related to phpcs.
Thank you. - Assigned to thakurnishant_06
- Issue was unassigned.
- Status changed to Needs review
over 1 year ago 11:46am 29 June 2023 - thakurnishant_06 India
Hello Everyone,
Hope you are doing well, created a patch to fix all errors and some warnings related to coding standards.
Kindly review the patch.
Thank you for your support.