Fix the issues reported by phpcs

Created on 10 May 2023, over 1 year ago
Updated 11 May 2023, over 1 year ago

phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml web/modules/contrib/schemadotorg_next-schemadotorg_next/

FILE: /var/www/html/contribution/web/modules/contrib/schemadotorg_next-schemadotorg_next/schemadotorg_next.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: /var/www/html/contribution/web/modules/contrib/schemadotorg_next-schemadotorg_next/schemadotorg_next.module
-------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-------------------------------------------------------------------------------------------------------------------------------------
92 | ERROR | The array declaration extends to column 86 (the limit is 80). The array content should be split up over multiple lines
-------------------------------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/contribution/web/modules/contrib/schemadotorg_next-schemadotorg_next/modules/schemadotorg_next_components/src/SchemaDotOrgNextComponentsBuilder.php
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------
174 | ERROR | The array declaration extends to column 87 (the limit is 80). The array content should be split up over multiple lines
175 | ERROR | The array declaration extends to column 93 (the limit is 80). The array content should be split up over multiple lines
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/contribution/web/modules/contrib/schemadotorg_next-schemadotorg_next/modules/schemadotorg_next_components/schemadotorg_next_components.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: /var/www/html/contribution/web/modules/contrib/schemadotorg_next-schemadotorg_next/modules/schemadotorg_next_components/schemadotorg_next_components.libraries.yml
------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------------------------------------------
23 | ERROR | [x] Expected 1 newline at end of file; 2 found
------------------------------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/contribution/web/modules/contrib/schemadotorg_next-schemadotorg_next/modules/schemadotorg_next_components/schemadotorg_next_components.module
-----------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 5 ERRORS AFFECTING 3 LINES
-----------------------------------------------------------------------------------------------------------------------------------------------------------------
41 | ERROR | The array declaration extends to column 100 (the limit is 80). The array content should be split up over multiple lines
58 | ERROR | The array declaration extends to column 140 (the limit is 80). The array content should be split up over multiple lines
58 | ERROR | The array declaration extends to column 139 (the limit is 80). The array content should be split up over multiple lines
65 | ERROR | The array declaration extends to column 110 (the limit is 80). The array content should be split up over multiple lines
65 | ERROR | The array declaration extends to column 109 (the limit is 80). The array content should be split up over multiple lines
-----------------------------------------------------------------------------------------------------------------------------------------------------------------

📌 Task
Status

Closed: outdated

Version

1.0

Component

Code

Created by

🇮🇳India himanshu_jhaloya Indore

Live updates comments and jobs are added and updated live.
  • Coding standards

    It involves compliance with, or the content of coding standards. Requires broad community agreement.

Sign in to follow issues

Comments & Activities

  • Issue created by @himanshu_jhaloya
  • @himanshu_jhaloya opened merge request.
  • Issue was unassigned.
  • Status changed to Needs review over 1 year ago
  • Status changed to Closed: outdated over 1 year ago
  • 🇺🇸United States jrockowitz Brooklyn, NY

    @himanshu_jhaloya Thank you for MR.

    I am not giving commit credits to automated code reviews to encourage people to make meaningful contributions. I am running `phpcs` frequently and did catch from your MR that *.yml files were not being linted. I fixed this issue and commit the automated fixes.

  • 🇮🇹Italy apaderno Brescia, 🇮🇹
Production build 0.71.5 2024