Problem/Motivation
I noticed there was a long list of errors when running the phpcs check on the module (4928 errors and 144 warnings). You can see the file attached bellow (I didn't copied the text here since it's too long).
Steps to reproduce
Open the Gutenberg module directory on your terminal and run the command: phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml . > phpcs_gutenber_all_errors.txt
Proposed resolution
Fix either automatically or manually all errors and create patches accordingly.
Remaining tasks
As the list of errors is too long I'll divide in sub-tasks, one for each folder on the root. It will make creating patches and reviewing code easier.
config/css/modules/scripts/- src/
vendor/other files in root
The Config directory phpcs issues in gutenberg module are handled in this issue Config Thread
The CSS & Scripts phpcs issues in gutenberg module are handled in this issue CSS & Scripts Thread
The Modules directory phpcs issues in gutenberg module are handled in this issue Modules Thread
The Vendor directory phpcs issues in gutenberg module are handled in this issue Vendor Thread
| Comment | File | Size | Author |
|---|---|---|---|
| #17 | Screenshot from 2023-02-07 15-48-30.png | 114.47 KB | indrapatil |
| #15 | [META]_PHPCS_errors_on_code-3255691-15.patch | 3.52 MB | arti_parmar |
| phpcs_gutenber_all_errors.txt | 480.81 KB | andregp |
Issue fork gutenberg-3255691
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 #2
andregp commentedComment #3
Matheus Macario commentedi'll work on that.
Comment #4
Matheus Macario commentedSince our previous talk, i'm unassigning this issue, and working on the child issues opened from you.
Comment #5
andregp commentedJust waiting #3255698: PHPCS errors on src/ directory to be moved to RTBC to resolve this parent issue.
Comment #6
tmaiochi commentedAs the #3255698: PHPCS errors on src/ directory was moved to RTBC I'll work on this.
Comment #7
tmaiochi commentedI talked with the reporter, and this is a issue to organize and define which folder needs to work with PHPCS, so I'm unassigning this issue.
Comment #8
andregp commentedComment #9
Guilherme Rabelo commentedI will work on solving these PHPCS errors!
Comment #10
andregp commentedComment #11
Guilherme Rabelo commentedComment #12
sourabhjainComment #13
sourabhjainComment #15
arti_parmar commentedI have fixed this error "[META] PHPCS errors on code" . I am providing a new patch. Please review this.
Thanks!.
Comment #16
indrapatil commentedI will test this patch
Comment #17
indrapatil commentedThis patch failed.
Comment #18
indrapatil commentedComment #19
eiriksmIf someone could create a merge request for this, so we have an up to date patch there, that would be great, thanks 🙏
Comment #20
realsp commentedI'll create a MR for this issue
Comment #21
realsp commentedThe Config directory phpcs issues in gutenberg module are handled in this issue Config Thread
The CSS & Scripts phpcs issues in gutenberg module are handled in this issue CSS & Scripts Thread
The Modules directory phpcs issues in gutenberg module are handled in this issue Modules Thread
The Vendor directory phpcs issues in gutenberg module are handled in this issue Vendor Thread
In this issue, I'm fixing src/ directory phpcs issues
Comment #22
realsp commentedComment #23
realsp commentedComment #25
realsp commentedKindly review the MR, Thank you.
Comment #26
realsp commentedComment #27
nikolay shapovalov commentedComment #29
cleavinjosh commentedHi @marcofernandes,
I tried to apply MR!88 but I encountered some errors.
Please check and advise.
Thank you.