- Issue created by @manuel.adan
- Issue was unassigned.
- Status changed to Needs review
over 1 year ago 2:32pm 20 May 2023 - last update
over 1 year ago 16 pass - First commit to issue fork.
- š®š³India dineshkumarbollu
Hi manuel.adan
I review The patch #2 applied cleanly, found 1 minor issues
vendor/bin/phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml,twig web/modules/contrib/fixed_block_content-3361644/
FILE: /var/www/html/vbd9/web/modules/contrib/fixed_block_content-3361644/tests/modules/fixed_block_content_test/fixed_block_content_test.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
-------------------------------------------------------------------------------------------------------------------------------------------------Time: 2.11 secs; Memory: 12MB
Hi @manuel.adan & @dineshkumarbollu,
I applied the patch that was provided, it was applied not-so successfully and may be the reason multiple errors were reported. Please see below:
fixed_block_content git:(8.x-1.x) ā curl https://www.drupal.org/files/issues/2023-05-20/fixed_block_content-cs_review-3361644-2.patch | patch -p1 % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 5476 100 5476 0 0 23723 0 --:--:-- --:--:-- --:--:-- 24666 patching file fixed_block_content.module Hunk #1 succeeded at 71 (offset 6 lines). patching file src/DefaultContentHandler.php patching file src/Form/ExportConfirmForm.php patching file src/Form/FixedBlockContentDeleteForm.php patching file src/Form/FixedBlockContentForm.php patching file src/Plugin/Block/FixedBlockContentBlock.php ā fixed_block_content git:(8.x-1.x) ā cd .. ā contrib git:(master) ā phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml,twig fixed_block_content FILE: ...9/web/modules/contrib/fixed_block_content/fixed_block_content.services.yml -------------------------------------------------------------------------------- FOUND 1 ERROR AFFECTING 1 LINE -------------------------------------------------------------------------------- 23 | ERROR | [x] Expected 1 newline at end of file; 0 found -------------------------------------------------------------------------------- PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY -------------------------------------------------------------------------------- FILE: ...t/tests/modules/fixed_block_content_test/fixed_block_content_test.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: ...web/modules/contrib/fixed_block_content/fixed_block_content.links.task.yml -------------------------------------------------------------------------------- FOUND 1 ERROR AFFECTING 1 LINE -------------------------------------------------------------------------------- 11 | ERROR | [x] Expected 1 newline at end of file; 2 found -------------------------------------------------------------------------------- PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY -------------------------------------------------------------------------------- FILE: ...ssue-v9/web/modules/contrib/fixed_block_content/fixed_block_content.module -------------------------------------------------------------------------------- FOUND 1 ERROR AFFECTING 1 LINE -------------------------------------------------------------------------------- 12 | ERROR | [x] Use statements should be sorted alphabetically. The first | | wrong one is Drupal\Core\Entity\EntityFormInterface. -------------------------------------------------------------------------------- PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY -------------------------------------------------------------------------------- FILE: ...-v9/web/modules/contrib/fixed_block_content/src/Form/ExportConfirmForm.php -------------------------------------------------------------------------------- FOUND 1 ERROR AFFECTING 1 LINE -------------------------------------------------------------------------------- 6 | ERROR | [x] Use statements should be sorted alphabetically. The first | | wrong one is Drupal\Core\Form\FormStateInterface. -------------------------------------------------------------------------------- PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY -------------------------------------------------------------------------------- FILE: ...-v9/web/modules/contrib/fixed_block_content/src/Form/ImportConfirmForm.php -------------------------------------------------------------------------------- FOUND 1 ERROR AFFECTING 1 LINE -------------------------------------------------------------------------------- 6 | ERROR | [x] Use statements should be sorted alphabetically. The first | | wrong one is Drupal\Core\Form\FormStateInterface. -------------------------------------------------------------------------------- PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY -------------------------------------------------------------------------------- FILE: ...e-v9/web/modules/contrib/fixed_block_content/src/DefaultContentHandler.php -------------------------------------------------------------------------------- FOUND 1 ERROR AFFECTING 1 LINE -------------------------------------------------------------------------------- 7 | ERROR | [x] Use statements should be sorted alphabetically. The first | | wrong one is Drupal\Core\Cache\CacheBackendInterface. -------------------------------------------------------------------------------- PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY -------------------------------------------------------------------------------- FILE: ...9/web/modules/contrib/fixed_block_content/src/Entity/FixedBlockContent.php -------------------------------------------------------------------------------- FOUND 1 ERROR AFFECTING 1 LINE -------------------------------------------------------------------------------- 7 | ERROR | [x] Use statements should be sorted alphabetically. The first | | wrong one is Drupal\block_content\BlockContentInterface. -------------------------------------------------------------------------------- PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY -------------------------------------------------------------------------------- FILE: ...es/contrib/fixed_block_content/src/Plugin/Block/FixedBlockContentBlock.php -------------------------------------------------------------------------------- FOUND 1 ERROR AFFECTING 1 LINE -------------------------------------------------------------------------------- 8 | ERROR | [x] Use statements should be sorted alphabetically. The first | | wrong one is Drupal\Core\Entity\EntityTypeManagerInterface. -------------------------------------------------------------------------------- PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY -------------------------------------------------------------------------------- FILE: ...odules/contrib/fixed_block_content/src/Routing/CompatibilitySubscriber.php -------------------------------------------------------------------------------- FOUND 1 ERROR AFFECTING 1 LINE -------------------------------------------------------------------------------- 7 | ERROR | [x] Use statements should be sorted alphabetically. The first | | wrong one is Composer\Semver\Comparator. -------------------------------------------------------------------------------- PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY -------------------------------------------------------------------------------- Time: 718ms; Memory: 12MB
Kindly check
Thanks,
Jake- š®š¹Italy apaderno Brescia, š®š¹
Let's use the merge request, now that patches are no longer tested.
- First commit to issue fork.
- Status changed to RTBC
4 months ago 6:28am 21 August 2024 - š®š¹Italy apaderno Brescia, š®š¹
- Merge request !12Created a new merge request to get the list of all the PHP_CodeSniffer errors/warnings to fix ā (Open) created by apaderno
- š®š¹Italy apaderno Brescia, š®š¹
avpaderno ā changed the visibility of the branch 3361644-gitlab-ci-reports to hidden.