- Merge request !10Issue #3328761: Drupal Coding Standards Issues | phpcs → (Open) created by Charchil Khandelwal
- 🇮🇳India Charchil Khandelwal
Thanks @samit.310@gmail.com, patch #2 applied cleanly, all warnings are fixed.
And i also created MR for same.
Please review. - Status changed to RTBC
over 1 year ago 3:47am 4 May 2023 - 🇵ðŸ‡Philippines paraderojether
Hi Charchil Khandelwal
I reviewed MR!10, and verified it fixes the issues reported by the phpcs. Drupal core version 9.5.8, Extra Field 8.x-2.x-dev.
I added screenshots for reference.
Thank You. - Status changed to Needs work
over 1 year ago 7:26am 4 May 2023 - 🇮🇹Italy apaderno Brescia, 🇮🇹
If I run phpcs for the 8.x-2.x branch of this module, I get a longer report.
- First commit to issue fork.
- last update
about 1 year ago 41 pass - Status changed to Needs review
12 months ago 7:48am 14 February 2024 - 🇮🇳India zkhan.aamir
Hi,
MR #11 applied successfully.
Admin@DESKTOP-252TO6V MINGW64 ~/Desktop/projects/drupal/web/modules/extra_field (8.x-2.x) $ curl https://git.drupalcode.org/project/extra_field/-/merge_requests/10.diff | patch -p1 % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 4437 0 4437 0 0 12768 0 --:--:-- --:--:-- --:--:-- 12823 patching file modules/extra_field_example/src/Plugin/ExtraField/Form/CustomSubmit.php patching file modules/extra_field_example/src/Plugin/ExtraField/Form/ExampleCustomInput.php patching file modules/extra_field_example/src/Plugin/ExtraField/Form/ExampleMarkup.php patching file src/Plugin/ExtraFieldDisplayFormattedBase.php Hunk #1 succeeded at 131 (offset -7 lines). patching file src/Plugin/ExtraFieldManagerBase.php patching file tests/src/Kernel/ExtraFieldDisplayPluginTest.php
No issues remaining.
Admin@DESKTOP-252TO6V MINGW64 ~/Desktop/projects/drupal/web/modules $ phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,info,txt,md,js,yml extra_field/ Admin@DESKTOP-252TO6V MINGW64 ~/Desktop/projects/drupal/web/modules $
- 🇮🇳India dev16.addweb
I received the phpcs error that is mentioned below, along with the patch that fixes the issues.
phpcs --standard="Drupal,DrupalPractice" --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml extra_field/ FILE: /home/addweb/Drupal8-vagrant/web/web/patches/extra_field/src/Plugin/ExtraFieldDisplayManager.php ----------------------------------------------------------------------------------------------------------------------------------- FOUND 2 ERRORS AFFECTING 2 LINES ----------------------------------------------------------------------------------------------------------------------------------- 9 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Core\Cache\CacheBackendInterface. 159 | ERROR | [x] list(...) is forbidden, use [...] instead. ----------------------------------------------------------------------------------------------------------------------------------- PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY -----------------------------------------------------------------------------------------------------------------------------------
- Status changed to Needs work
8 months ago 11:59am 6 June 2024 Hi @silvi.addweb,
Your patch applied unsuccessfully
extra_field git:(8335a0e) curl https://www.drupal.org/files/issues/2024-06-06/extra_field-3328761-14.patch | patch -p1 % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 1235 100 1235 0 0 2364 0 --:--:-- --:--:-- --:--:-- 2416 patching file src/Plugin/ExtraFieldDisplayManager.php Hunk #1 FAILED at 2. Hunk #2 FAILED at 156. 2 out of 2 hunks FAILED -- saving rejects to file src/Plugin/ExtraFieldDisplayManager.php.rej
Kindly check.
Thanks,
Jake- 🇮🇳India prem suthar Ahemdabad- Gujrat , Jodhpur - Rajsthan
The patch resolves all PHPCS issues once applied. Additionally, if possible, please create a Merge Request following the Drupal standard process.
- Status changed to Needs review
8 months ago 6:49am 7 June 2024 - last update
8 months ago 41 pass - 🇮🇹Italy apaderno Brescia, 🇮🇹
- Status changed to Closed: won't fix
6 months ago 11:11am 15 August 2024