Problem/Motivation
When I run the reported command, I get more errors/warnings.
This is command
phpcs --standard=Drupal --extensions=php,module,inc,install,test,profile,theme,info,txt,md,yml --ignore=node_modules,bower_components,vendor web/modules/contrib/google_tag/
FILE: /web/modules/contrib/google_tag/tests/modules/google_tag_test/google_tag_test.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: /web/modules/contrib/google_tag/tests/src/Kernel/PageAttachmentsHookTest.php
-------------------------------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
-------------------------------------------------------------------------------------------------------------------------------------
68 | ERROR | The array declaration extends to column 94 (the limit is 80). The array content should be split up over multiple
| | lines
118 | ERROR | The array declaration extends to column 89 (the limit is 80). The array content should be split up over multiple
| | lines
-------------------------------------------------------------------------------------------------------------------------------------
FILE: /web/modules/contrib/google_tag/google_tag.permissions.yml
------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------
4 | ERROR | [x] Expected 1 newline at end of file; 0 found
------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------
FILE: /web/modules/contrib/google_tag/src/Plugin/GoogleTag/Event/Commerce/ViewItemList.php
--------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
--------------------------------------------------------------------------------------------------------------------------------
25 | WARNING | Line exceeds 80 characters; contains 109 characters
--------------------------------------------------------------------------------------------------------------------------------
FILE: /web/modules/contrib/google_tag/google_tag.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: 20.36 secs; Memory: 14MB
Issue fork google_tag-3573774
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
garvitasakhrani commentedI am working on it.
Comment #5
garvitasakhrani commentedI have fixed the reported PHPCS errors. I was unable to reproduce the warnings related to the .info.yml files.
The changes have been pushed to the issue fork branch 3573774-the-issues-reported.
Kindly review. Thank you!
Comment #6
paraderojether commentedHi
I reviewed MR! 131, and there are still remaining phpcs issues shown below.
Kindly check and advise, please.
Thank you.
Comment #8
garvitasakhrani commentedI have addressed the remaining PHPCS warnings reported in comment #6.
Please review.
Comment #12
paraderojether commentedI reviewed MR!131 again, and there are still remaining PHPCS issues shown below:
I will retain the status to Needs review so that others can review.
Thank you.
Comment #13
amangupta commentedCan you review the MR!132
Comment #14
jannakha commentedcan you enable phpcs in gitlab.yml so it actually runs on gitlab?

it's not running atm - it will be easier to see the results of phpcs if it runs on a branch too:
Comment #17
japerryThere was a bit of rework needed for D12 compatibility. But its fixed!