- Status changed to Needs work
almost 2 years ago 6:36pm 28 January 2023 - Assigned to vishaljd
- Issue was unassigned.
- Status changed to Needs review
over 1 year ago 9:23am 3 March 2023 - Status changed to Needs work
over 1 year ago 12:27pm 3 March 2023 - š®š¹Italy apaderno Brescia, š®š¹
The issue summary should always describe what the issue is trying to fix and, in the case, of coding standards issues, report which command has been used, which arguments have been used, and which report that command shown.
- š®š³India rassoni Bangalore
Review patched #12 and applied locally. Below issue still present.
FILE: ~/projects/drupal-d10/modules/contrib/rabbit_hole/README.md ------------------------------------------------------------------------------------------ FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE ------------------------------------------------------------------------------------------ 31 | WARNING | Line exceeds 80 characters; contains 98 characters ------------------------------------------------------------------------------------------ Time: 589ms; Memory: 14MB
- Assigned to sourabhjain
- Issue was unassigned.
- Status changed to Needs review
over 1 year ago 10:36am 29 March 2023 - š®š³India sourabhjain
Rashmi after #12 we have more commits and MR so you need to review them.
Resolved a issue in MR 31. Please review. - Status changed to Needs work
over 1 year ago 11:45am 29 March 2023 - š®š¹Italy apaderno Brescia, š®š¹
- // TODO: Switch to trait when/if the patch is committed and released. + // @todo Switch to trait when/if the patch is committed and released. // See: https://www.drupal.org/project/group/issues/3177542
if/when is not necessary.
It would also be better to make a single comment out of those.@todo Switch to trait when the patch on https://www.drupal.org/project/group/issues/3177542 š Provide test trait with helper methods Needs review is committed.
- First commit to issue fork.
- š®š³India rassoni Bangalore
@sourabhjain majorly two MR was created and has same code like patch 12. If an issue is using a patch workflow then it is usually best to continue with that. Introducing an multiple MR can cause confusion, as in this case. and sometimes duplication of work.
- š®š¹Italy apaderno Brescia, š®š¹
- // TODO: Switch to trait when/if the patch is committed and released. - // See: https://www.drupal.org/project/group/issues/3177542 - $storage = \Drupal::entityTypeManager()->getStorage('group_type'); - $group_type = $storage->create([ - 'id' => mb_strtolower($this->randomMachineName()), - 'label' => $this->randomString(), - ]); - $storage->save($group_type); - $this->groupType = $group_type; + // Group trait method to created group type. + $this->groupType = $this->createGroupType();
That is not a change required by the
phpcs
report shown in the issue summary. Let us keep the focus on what needs to be changed basing on what reported in the issue summary. - Status changed to Needs review
9 months ago 8:34am 13 February 2024 - Status changed to Needs work
4 months ago 10:37am 10 July 2024 - šµšPhilippines cleavinjosh
Hi @chaitanyadessai,
I applied patch #31 and it was applied smoothly. However I still encounter some issues after I ran
phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml
.ā rabbit_hole git:(b35e7ec) curl https://www.drupal.org/files/issues/2024-02-13/3298741-31.patch | patch -p1 % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 23624 100 23624 0 0 6656 0 0:00:03 0:00:03 --:--:-- 6656 patching file README.md patching file modules/rh_group/tests/src/Functional/GroupBehaviorInvocationTest.php patching file modules/rh_group/tests/src/Functional/GroupBehaviorSettingsFormTest.php patching file modules/rh_media/tests/src/Functional/MediaBehaviorSettingsFormTest.php patching file rabbit_hole.module patching file rabbit_hole.permissions.yml patching file src/BehaviorInvoker.php patching file src/Entity/BehaviorSettings.php patching file src/EventSubscriber/RabbitHoleSubscriber.php patching file src/FormManglerService.php patching file src/Plugin/RabbitHoleBehaviorPlugin/AccessDenied.php patching file src/Plugin/RabbitHoleBehaviorPlugin/PageNotFound.php patching file src/Plugin/RabbitHoleBehaviorPlugin/PageRedirect.php patching file src/Plugin/RabbitHoleBehaviorPluginBase.php patching file src/Plugin/RabbitHoleBehaviorPluginInterface.php patching file src/Plugin/RabbitHoleBehaviorPluginManager.php patching file src/Plugin/RabbitHoleEntityPluginManager.php patching file src/RabbitHolePermissionGenerator.php patching file tests/src/Functional/RabbitHoleBehaviorPluginTest.php patching file tests/src/Functional/RabbitHoleBehaviorSettingsEntityMethodsTest.php patching file tests/src/Functional/RabbitHolePageRedirectActionTest.php ā rabbit_hole git:(b35e7ec) ā .. ā contrib git:(main) ā phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml rabbit_hole FILE: /Users/interns/Demo-site/drupal-org-issues/web/modules/contrib/rabbit_hole/src/EntityExtender.php ------------------------------------------------------------------------------------------------------------------------- FOUND 3 ERRORS AFFECTING 2 LINES ------------------------------------------------------------------------------------------------------------------------- 33 | ERROR | [x] The first parameter of a multi-line function declaration must be on the line after the opening bracket 34 | ERROR | [x] Multi-line function declarations must have a trailing comma after the last parameter 34 | ERROR | [x] The closing parenthesis of a multi-line function declaration must be on a new line ------------------------------------------------------------------------------------------------------------------------- PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY ------------------------------------------------------------------------------------------------------------------------- FILE: /Users/interns/Demo-site/drupal-org-issues/web/modules/contrib/rabbit_hole/src/FormManglerService.php ----------------------------------------------------------------------------------------------------------- FOUND 4 ERRORS AND 1 WARNING AFFECTING 4 LINES ----------------------------------------------------------------------------------------------------------- 82 | ERROR | [x] Multi-line function declarations must have a trailing comma after the last parameter 82 | ERROR | [x] The closing parenthesis of a multi-line function declaration must be on a new line 164 | ERROR | [x] Multi-line function declarations must have a trailing comma after the last parameter 493 | ERROR | [x] Multi-line function declarations must have a trailing comma after the last parameter 509 | WARNING | [ ] Unused variable $array_ref. ----------------------------------------------------------------------------------------------------------- PHPCBF CAN FIX THE 4 MARKED SNIFF VIOLATIONS AUTOMATICALLY ----------------------------------------------------------------------------------------------------------- FILE: /Users/interns/Demo-site/drupal-org-issues/web/modules/contrib/rabbit_hole/src/Plugin/RabbitHoleBehaviorPlugin/PageRedirect.php ------------------------------------------------------------------------------------------------------------------------------------- FOUND 3 ERRORS AFFECTING 2 LINES ------------------------------------------------------------------------------------------------------------------------------------- 98 | ERROR | [x] Multi-line function declarations must have a trailing comma after the last parameter 98 | ERROR | [x] The closing parenthesis of a multi-line function declaration must be on a new line 266 | ERROR | [x] Multi-line function declarations must have a trailing comma after the last parameter ------------------------------------------------------------------------------------------------------------------------------------- PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY ------------------------------------------------------------------------------------------------------------------------------------- FILE: /Users/interns/Demo-site/drupal-org-issues/web/modules/contrib/rabbit_hole/src/Plugin/RabbitHoleEntityPluginManager.php ----------------------------------------------------------------------------------------------------------------------------- FOUND 1 ERROR AFFECTING 1 LINE ----------------------------------------------------------------------------------------------------------------------------- 39 | ERROR | [x] Multi-line function declarations must have a trailing comma after the last parameter ----------------------------------------------------------------------------------------------------------------------------- PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY ----------------------------------------------------------------------------------------------------------------------------- FILE: /Users/interns/Demo-site/drupal-org-issues/web/modules/contrib/rabbit_hole/src/Plugin/RabbitHoleBehaviorPluginInterface.php --------------------------------------------------------------------------------------------------------------------------------- FOUND 1 ERROR AFFECTING 1 LINE --------------------------------------------------------------------------------------------------------------------------------- 50 | ERROR | [x] Multi-line function declarations must have a trailing comma after the last parameter --------------------------------------------------------------------------------------------------------------------------------- PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY --------------------------------------------------------------------------------------------------------------------------------- FILE: /Users/interns/Demo-site/drupal-org-issues/web/modules/contrib/rabbit_hole/src/Plugin/RabbitHoleBehaviorPluginBase.php ---------------------------------------------------------------------------------------------------------------------------- FOUND 1 ERROR AFFECTING 1 LINE ---------------------------------------------------------------------------------------------------------------------------- 34 | ERROR | [x] Multi-line function declarations must have a trailing comma after the last parameter ---------------------------------------------------------------------------------------------------------------------------- PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY ---------------------------------------------------------------------------------------------------------------------------- FILE: /Users/interns/Demo-site/drupal-org-issues/web/modules/contrib/rabbit_hole/src/BehaviorSettingsManagerInterface.php ------------------------------------------------------------------------------------------------------------------------- FOUND 3 ERRORS AFFECTING 2 LINES ------------------------------------------------------------------------------------------------------------------------- 54 | ERROR | [x] The first parameter of a multi-line function declaration must be on the line after the opening bracket 55 | ERROR | [x] Multi-line function declarations must have a trailing comma after the last parameter 55 | ERROR | [x] The closing parenthesis of a multi-line function declaration must be on a new line ------------------------------------------------------------------------------------------------------------------------- PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY ------------------------------------------------------------------------------------------------------------------------- FILE: /Users/interns/Demo-site/drupal-org-issues/web/modules/contrib/rabbit_hole/src/RabbitHolePermissionGenerator.php ---------------------------------------------------------------------------------------------------------------------- FOUND 2 ERRORS AFFECTING 1 LINE ---------------------------------------------------------------------------------------------------------------------- 39 | ERROR | [x] Multi-line function declarations must have a trailing comma after the last parameter 39 | ERROR | [x] The closing parenthesis of a multi-line function declaration must be on a new line ---------------------------------------------------------------------------------------------------------------------- PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY ---------------------------------------------------------------------------------------------------------------------- FILE: /Users/interns/Demo-site/drupal-org-issues/web/modules/contrib/rabbit_hole/src/BehaviorInvoker.php -------------------------------------------------------------------------------------------------------- FOUND 1 ERROR AFFECTING 1 LINE -------------------------------------------------------------------------------------------------------- 83 | ERROR | [x] Multi-line function declarations must have a trailing comma after the last parameter -------------------------------------------------------------------------------------------------------- PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY -------------------------------------------------------------------------------------------------------- FILE: /Users/interns/Demo-site/drupal-org-issues/web/modules/contrib/rabbit_hole/src/BehaviorSettingsManager.php ------------------------------------------------------------------------------------------------------------------------- FOUND 6 ERRORS AFFECTING 4 LINES ------------------------------------------------------------------------------------------------------------------------- 52 | ERROR | [x] The first parameter of a multi-line function declaration must be on the line after the opening bracket 53 | ERROR | [x] Multi-line function declarations must have a trailing comma after the last parameter 53 | ERROR | [x] The closing parenthesis of a multi-line function declaration must be on a new line 90 | ERROR | [x] The first parameter of a multi-line function declaration must be on the line after the opening bracket 91 | ERROR | [x] Multi-line function declarations must have a trailing comma after the last parameter 91 | ERROR | [x] The closing parenthesis of a multi-line function declaration must be on a new line ------------------------------------------------------------------------------------------------------------------------- PHPCBF CAN FIX THE 6 MARKED SNIFF VIOLATIONS AUTOMATICALLY ------------------------------------------------------------------------------------------------------------------------- Time: 1.32 secs; Memory: 12MB ā contrib git:(main) ā
Thank you.
- š®š¹Italy apaderno Brescia, š®š¹
apaderno ā changed the visibility of the branch 3298741-phpcs-coding-standards to hidden.
- Status changed to Closed: outdated
4 months ago 6:14pm 19 July 2024