Closed (fixed)
Project:
Google Model Viewer
Version:
1.0.x-dev
Component:
Code
Priority:
Minor
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
8 May 2023 at 08:56 UTC
Updated:
27 Dec 2024 at 18:29 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #3
himanshu_jhaloya commentedComment #4
avpadernoComment #5
cleavinjosh commentedHi @himanshu_jhaloya,
I applied MR!1 and it was applied smoothly. However, I still encountered some issues after I ran
phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml.Comment #7
avpadernoThere are still two PHP_CodeSniffer errors to fix.
Comment #8
avpadernoComment #9
avpadernoComment #10
avpadernoNo PHP_CodeSniffer errors/warnings are now reported.
Comment #11
amanbtr72 commentedReviewed the MR 3 Still found some errors
$ phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml .
FILE: D:\wamp64\www\drupal10\modules\custom\doissues\gmv-3358798\gmv.module
--------------------------------------------------------------------------------
FOUND 5 ERRORS AFFECTING 3 LINES
--------------------------------------------------------------------------------
3 | ERROR | Missing short description in doc comment
10 | ERROR | Doc comment short description must end with a full stop
12 | ERROR | The array declaration extends to column 150 (the limit is 120).
| | The array content should be split up over multiple lines
12 | ERROR | The array declaration extends to column 149 (the limit is 120).
| | The array content should be split up over multiple lines
12 | ERROR | The array declaration extends to column 148 (the limit is 120).
| | The array content should be split up over multiple lines
--------------------------------------------------------------------------------
FILE: D:\wamp64\www\drupal10\modules\custom\doissues\gmv-3358798\README.md
--------------------------------------------------------------------------
FOUND 0 ERRORS AND 3 WARNINGS AFFECTING 3 LINES
--------------------------------------------------------------------------
3 | WARNING | Line exceeds 80 characters; contains 87 characters
4 | WARNING | Line exceeds 80 characters; contains 107 characters
7 | WARNING | Line exceeds 80 characters; contains 132 characters
--------------------------------------------------------------------------
FILE: ...v-3358798\src\Plugin\Field\FieldFormatter\ThreeDeeObjectFieldFormatter.php
--------------------------------------------------------------------------------
FOUND 0 ERRORS AND 4 WARNINGS AFFECTING 4 LINES
--------------------------------------------------------------------------------
62 | WARNING | File::load calls should be avoided in classes, use dependency
| | injection instead
67 | WARNING | \Drupal calls should be avoided in classes, use dependency
| | injection instead
72 | WARNING | File::load calls should be avoided in classes, use dependency
| | injection instead
73 | WARNING | \Drupal calls should be avoided in classes, use dependency
| | injection instead
--------------------------------------------------------------------------------
Time: 852ms; Memory: 12MB
Comment #12
amanbtr72 commentedfixed remaining issues
Comment #13
bhaveshdas commentedI applied MR!3 and I still encountered some issues after I ran vendor/bin/phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,js,info,txt,md,yml,twig modules/custom/gmv-3358798/
Comment #14
bhaveshdas commentedI have fixed remaining issues on this 9be7c077 ticket could you please review it.
Thankyou !
Comment #15
avpadernoThe MR to review was MR !1, which already fixed all the issues. MR !3 has been used to obtain a list of all the issues that were to be fixed.
Comment #17
roberttabigue commentedHi @everyone!
I have applied the latest fixes to the Google Module Viewer module against 1.0.x-dev on Drupal 10 and confirmed all PHPCS errors have been fixed.
I ran this command on the module:
phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml gmv/Please see the attached file for reference.
I'm moving this now to ‘RTBC’.
Thank you!
Comment #18
harivenuvThanks you for the effort