- Issue created by @sidharth_soman
- Issue was unassigned.
- Status changed to Needs review
over 1 year ago 3:21pm 10 July 2023 - ๐ฎ๐ณIndia sidharth_soman Bangalore
All issues fixed except the array declarations exceeding 80 characters. I'm leaving those as it is for the purposes of readability.
Hii @sidharth_soman
Applied your patch and ran successfully, found warning errors as you mentioned.
I have Created a patch and solve all the warning errors.
Please review.
- ๐ต๐ญPhilippines clarkssquared
Hi Satish_kumar,
I applied your patch and I confirmed that it fixed all the PHPCS issues, below is the output based in my terminal:
โ d9-local git:(master) โ cd web/modules/contrib/s3fs_cors โ s3fs_cors git:(8.x-1.0-rc5) curl https://www.drupal.org/files/issues/2023-09-25/coding-standard-fixed-issue-3373658-3.patch | git apply -v % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 10138 100 10138 0 0 17052 0 --:--:-- --:--:-- --:--:-- 17241 Checking patch s3fs_cors.install... Checking patch s3fs_cors.post_update.php... Checking patch src/Controller/AjaxController.php... Checking patch src/Element/S3fsCorsFile.php... Checking patch src/Form/S3fsCorsAdminForm.php... Checking patch src/Plugin/Field/FieldWidget/S3fsCorsFileWidget.php... Checking patch src/Plugin/Field/FieldWidget/S3fsCorsImageWidget.php... Applied patch s3fs_cors.install cleanly. Applied patch s3fs_cors.post_update.php cleanly. Applied patch src/Controller/AjaxController.php cleanly. Applied patch src/Element/S3fsCorsFile.php cleanly. Applied patch src/Form/S3fsCorsAdminForm.php cleanly. Applied patch src/Plugin/Field/FieldWidget/S3fsCorsFileWidget.php cleanly. Applied patch src/Plugin/Field/FieldWidget/S3fsCorsImageWidget.php cleanly. โ s3fs_cors git:(8.x-1.0-rc5) โ export PATH="$PATH:$HOME/.composer/vendor/squizlabs/php_codesniffer/bin" โ s3fs_cors git:(8.x-1.0-rc5) โ .. โ contrib git:(master) โ phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml s3fs_cors โ contrib git:(master) โ
Retaining the status to needs review so that others can review your patch. RTBC +1 for me
- ๐ฌ๐งUnited Kingdom schillerm
Hi, I applied #3 patch to 1.x-dev version on a D10 site.
All PHPCS errors are gone except on the PATCHES.txt file.. see below..
#######################################
๐ธ ~/Documents/Sites/D10 phpcs --standard=Drupal --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml web/modules/contrib/s3fs_cors
FILE: /home/user/Documents/Sites/D10/web/modules/contrib/s3fs_cors/PATCHES.txt
------------------------------------------------------------------------------------
FOUND 1 ERROR AND 1 WARNING AFFECTING 2 LINES
------------------------------------------------------------------------------------
1 | WARNING | [ ] Line exceeds 80 characters; contains 104 characters
5 | ERROR | [x] Expected 1 newline at end of file; 3 found
------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------Time: 107ms; Memory: 10MB
###################################
RTBC +1 from me!
- ๐ฎ๐ณIndia Gautam_105@
Gautam_105@ โ made their first commit to this issueโs fork.
- @gautam_105 opened merge request.
- ๐ฎ๐ณIndia Gautam_105@
Hi sidharth_soman,
i have fixed PHPCS reported issue and created MR for same . Please review and see attachment . - Status changed to RTBC
11 months ago 12:47am 3 January 2024 - ๐ต๐ญPhilippines paraderojether
Hi Gautam_105@,
I reviewed MR!24 and applied it against S3 File System CORS Upload 8.x-1.x-dev with Drupal core version 10.1.7 and confirmed it fixes the issues reported by phpcs.
I added screenshots for reference.
Thank you.