- Issue created by @urvashi_vora
- Status changed to Needs work
about 1 year ago 7:48am 16 January 2024 - 🇮🇳India ashutosh ahirwal India
Updating the Issue summary.
it showing only few error in readme file only. - 🇮🇳India Yashaswi18
The above patch was not applying. Please review this patch.
- 🇮🇳India zkhan.aamir
Hi,
Patch #4 applied successfully.
Admin@DESKTOP-252TO6V MINGW64 ~/Desktop/projects/drupal/web/modules/contrib/dscm (1.0.0) $ curl https://www.drupal.org/files/issues/2024-01-23/3372533-coding-standards-fixes.patch | patch -p1 % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 3046 100 3046 0 0 5580 0 --:--:-- --:--:-- --:--:-- 5599 patching file config/install/didsomeonecloneme.settings.yml patching file didsomeonecloneme.module patching file src/Form/SettingsForm.php
Still some issues remianing.
Admin@DESKTOP-252TO6V MINGW64 ~/Desktop/projects/drupal/web/modules/contrib $ phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,info,txt,md,js,yml dscm/ FILE: C:\Users\Admin\Desktop\projects\drupal\web\modules\contrib\dscm\didsomeonecloneme.info.yml ----------------------------------------------------------------------------------------------------------- FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE ----------------------------------------------------------------------------------------------------------- 1 | WARNING | Remove "project" from the info file, it will be added by drupal.org packaging automatically ----------------------------------------------------------------------------------------------------------- FILE: C:\Users\Admin\Desktop\projects\drupal\web\modules\contrib\dscm\didsomeonecloneme.module ---------------------------------------------------------------------------------------------- FOUND 1 ERROR AFFECTING 1 LINE ---------------------------------------------------------------------------------------------- 3 | ERROR | Missing short description in doc comment ---------------------------------------------------------------------------------------------- FILE: C:\Users\Admin\Desktop\projects\drupal\web\modules\contrib\dscm\README.txt ------------------------------------------------------------------------------------------------- FOUND 2 ERRORS AND 2 WARNINGS AFFECTING 2 LINES ------------------------------------------------------------------------------------------------- 1 | WARNING | [ ] File has mixed line endings; this may cause incorrect results 1 | WARNING | [ ] File encoding is invalid, expected UTF-8 1 | ERROR | [ ] File contains UTF-16 (LE) byte order mark, which may corrupt your application 2 | ERROR | [x] Expected 1 newline at end of file; 0 found ------------------------------------------------------------------------------------------------- PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY ------------------------------------------------------------------------------------------------- FILE: C:\Users\Admin\Desktop\projects\drupal\web\modules\contrib\dscm\src\Form\SettingsForm.php ----------------------------------------------------------------------------------------------- FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE ----------------------------------------------------------------------------------------------- 93 | WARNING | Do not pass empty strings to t() ----------------------------------------------------------------------------------------------- Time: 218ms; Memory: 10MB
- Assigned to nitin_lama
- Issue was unassigned.
- Status changed to Needs review
about 1 year ago 8:32am 24 January 2024 Hi, The patch provided in #7 applies cleanly, still could see some errors and warning. Attaching ss for reference
- Status changed to Needs work
9 months ago 2:35am 16 July 2024 Hi @nitin_lama,
Your patch was applied not-so successfully, might be the reason errors are still reported. Please see below:
Applying of patch:dscm git:(main) ✗ curl https://www.drupal.org/files/issues/2024-01-24/3372533-coding-standards-fixes-7.patch | patch -p1 % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 3535 100 3535 0 0 11761 0 --:--:-- --:--:-- --:--:-- 12189 patching file config/install/didsomeonecloneme.settings.yml patching file didsomeonecloneme.info.yml Hunk #1 FAILED at 2. 1 out of 1 hunk FAILED -- saving rejects to file didsomeonecloneme.info.yml.rej patching file didsomeonecloneme.module patching file src/Form/SettingsForm.php
➜ contrib git:(main) ✗ phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml,twig dscm FILE: ...rometInterns/Demo-site/drupal-orgissue/web/modules/contrib/dscm/README.txt -------------------------------------------------------------------------------- FOUND 2 ERRORS AND 2 WARNINGS AFFECTING 2 LINES -------------------------------------------------------------------------------- 1 | WARNING | [ ] File has mixed line endings; this may cause incorrect | | results 1 | WARNING | [ ] File encoding is invalid, expected UTF-8 1 | ERROR | [ ] File contains UTF-16 (LE) byte order mark, which may corrupt | | your application 2 | ERROR | [x] Expected 1 newline at end of file; 0 found -------------------------------------------------------------------------------- PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY -------------------------------------------------------------------------------- FILE: ...mo-site/drupal-orgissue/web/modules/contrib/dscm/src/Form/SettingsForm.php -------------------------------------------------------------------------------- FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE -------------------------------------------------------------------------------- 93 | WARNING | Do not pass empty strings to t() -------------------------------------------------------------------------------- Time: 145ms; Memory: 10MB
Kindly check
Thanks,
Jake- Assigned to amit.rawat777
- First commit to issue fork.