- Issue created by @sidharth_soman
- @sidharth_soman opened merge request.
- Issue was unassigned.
- Status changed to Needs review
almost 2 years ago 2:25pm 5 July 2023 - 🇮🇳India sidharth_soman Bangalore
I have fixed all the issues... including the dependency injection.
Please review the MR. - Status changed to Needs work
almost 2 years ago 8:38am 6 July 2023 @sidharth_soman , still seeing these errors/warning ->
$ phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml,twig bulk_copy_fields
FILE: C:\xampp\htdocs\project\modules\contrib\bulk_copy_fields\bulk_copy_fields.info.yml
-------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 3 WARNINGS AFFECTING 1 LINE
-------------------------------------------------------------------------------------------------------------
1 | WARNING | Remove "project" from the info file, it will be added by drupal.org packaging automatically
1 | WARNING | Remove "datestamp" from the info file, it will be added by drupal.org packaging automatically
1 | WARNING | Remove "version" from the info file, it will be added by drupal.org packaging automatically
-------------------------------------------------------------------------------------------------------------FILE: C:\xampp\htdocs\project\modules\contrib\bulk_copy_fields\bulk_copy_fields.install
---------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
---------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
---------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------FILE: C:\xampp\htdocs\project\modules\contrib\bulk_copy_fields\bulk_copy_fields.module
-----------------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
-----------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
9 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Core\Database\Database.
-----------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------------------------FILE: C:\xampp\htdocs\project\modules\contrib\bulk_copy_fields\src\BulkCopyFields.php
----------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AND 2 WARNINGS AFFECTING 3 LINES
----------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
9 | WARNING | [ ] The class short comment should describe what the class does and not simply repeat the class name
140 | WARNING | [ ] Line exceeds 80 characters; contains 82 characters
----------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------------------FILE: C:\xampp\htdocs\project\modules\contrib\bulk_copy_fields\src\Form\BulkCopyFieldsForm.php
-----------------------------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
-----------------------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
11 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Core\Messenger\MessengerInterface.
-----------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------------------------------------FILE: C:\xampp\htdocs\project\modules\contrib\bulk_copy_fields\src\Plugin\Action\BulkCopyFieldsActionBase.php
---------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
---------------------------------------------------------------------------------------------------------------------------------------
9 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Core\TempStore\PrivateTempStoreFactory.
---------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------------------------------Time: 319ms; Memory: 12MB
- Status changed to Needs review
almost 2 years ago 1:00pm 11 July 2023 - 🇮🇳India ashutosh ahirwal India
I'm Providing new patch with all the fixes.
please review.phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,info,txt,md,css,js,yml web/modules/custom/bulk_copy_fields
For below issue clone the module from command available in version control menu.
Project, datestamp, version added by drupal as a info of module when we download any module using composer.FILE: C:\xampp\htdocs\project\modules\contrib\bulk_copy_fields\bulk_copy_fields.info.yml
-------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 3 WARNINGS AFFECTING 1 LINE
-------------------------------------------------------------------------------------------------------------
1 | WARNING | Remove "project" from the info file, it will be added by drupal.org packaging automatically
1 | WARNING | Remove "datestamp" from the info file, it will be added by drupal.org packaging automatically
1 | WARNING | Remove "version" from the info file, it will be added by drupal.org packaging automatically
------------------------------------------------------------------------------------------------------------- - Status changed to RTBC
almost 2 years ago 1:00am 12 July 2023 - 🇵🇭Philippines clarkssquared
Hi Ashutosh Ahirwal
I applied your patch #5 in my local after cloning the module and I confirmed that your patch fixed all the PHPCS errors/warnings.
Please look at the screenshot attached for your reference
Thank you.