- Issue created by @sidharth_soman
- last update
over 1 year ago Composer require failure - @sidharth_soman opened merge request.
- Issue was unassigned.
- Status changed to Needs review
over 1 year ago 9:00am 7 July 2023 - š®š³India sidharth_soman Bangalore
I've solved mostly all the issues, but there are a few remaining to do with the 'line exceeds 80 characters' error and naming conventions for the functions. Leaving those as it is for the maintainer to decide what standard suits them.
Please review the MR
- Status changed to Needs work
3 months ago 7:45am 21 August 2024 - šµšPhilippines cleavinjosh
Hi @sidhart_soman,
I applied MR!2, it was not applied smoothly but fixed most of the phpcs issues.
These are the remaining issues after I ran
phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml
:ā protect_form_flood_control git:(1.0.x) curl https://git.drupalcode.org/project/protect_form_flood_control/-/merge_requests/2.diff | patch -p1 % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 7967 0 7967 0 0 20437 0 --:--:-- --:--:-- --:--:-- 20428 patching file css/admin.css patching file protect_form_flood_control.links.menu.yml patching file protect_form_flood_control.module patching file src/Form/ProtectFormFloodControlSettings.php patching file src/Manager.php Hunk #3 FAILED at 262. 1 out of 3 hunks FAILED -- saving rejects to file src/Manager.php.rej patching file src/ManagerInterface.php patching file tests/src/Functional/ProtectFormFloodControlFormTest.php ā protect_form_flood_control git:(1.0.x) ā .. ā contrib phpcs --standard="Drupal,DrupalPractice" --extensions=php,module,inc,install,test,profile,theme,info,txt,md,yml,css,js protect_form_flood_control FILE: /Users/interns/Demo-site/drupal-org-issues/web/modules/contrib/protect_form_flood_control/tests/src/Functional/ProtectFormFloodControlFormTest.php -------------------------------------------------------------------------------------------------------------------------------------------------------- FOUND 1 ERROR AFFECTING 1 LINE -------------------------------------------------------------------------------------------------------------------------------------------------------- 6 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\comment\Plugin\Field\FieldType\CommentItemInterface. -------------------------------------------------------------------------------------------------------------------------------------------------------- PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY -------------------------------------------------------------------------------------------------------------------------------------------------------- FILE: /Users/interns/Demo-site/drupal-org-issues/web/modules/contrib/protect_form_flood_control/README.txt ---------------------------------------------------------------------------------------------------------- FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE ---------------------------------------------------------------------------------------------------------- 66 | WARNING | Line exceeds 80 characters; contains 82 characters ---------------------------------------------------------------------------------------------------------- FILE: /Users/interns/Demo-site/drupal-org-issues/web/modules/contrib/protect_form_flood_control/src/Form/ProtectFormFloodControlSettings.php -------------------------------------------------------------------------------------------------------------------------------------------- FOUND 1 ERROR AFFECTING 1 LINE -------------------------------------------------------------------------------------------------------------------------------------------- 249 | ERROR | Missing parameter comment -------------------------------------------------------------------------------------------------------------------------------------------- FILE: /Users/interns/Demo-site/drupal-org-issues/web/modules/contrib/protect_form_flood_control/src/ManagerInterface.php ------------------------------------------------------------------------------------------------------------------------ FOUND 1 ERROR AFFECTING 1 LINE ------------------------------------------------------------------------------------------------------------------------ 167 | ERROR | Public method name "ManagerInterface::displayFormID" is not in lowerCamel format ------------------------------------------------------------------------------------------------------------------------ FILE: /Users/interns/Demo-site/drupal-org-issues/web/modules/contrib/protect_form_flood_control/src/Manager.php ---------------------------------------------------------------------------------------------------------------------------------------------- FOUND 4 ERRORS AND 1 WARNING AFFECTING 5 LINES ---------------------------------------------------------------------------------------------------------------------------------------------- 7 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Core\Config\ConfigFactoryInterface. 187 | WARNING | [ ] Line exceeds 80 characters; contains 81 characters 268 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 3 282 | ERROR | [ ] Public method name "Manager::displayFormID" is not in lowerCamel format 289 | ERROR | [ ] The array declaration extends to column 135 (the limit is 120). The array content should be split up over multiple lines ---------------------------------------------------------------------------------------------------------------------------------------------- PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY ---------------------------------------------------------------------------------------------------------------------------------------------- Time: 347ms; Memory: 12MB ā contrib
Thank you.