Closed (fixed)
Project:
Drupal.org security advisory coverage applications
Component:
module
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
9 Sep 2021 at 19:29 UTC
Updated:
9 Oct 2021 at 14:54 UTC
Jump to comment: Most recent
Comments
Comment #2
marijan gudeljRunning pareview.net
First of all run your code through a formatter.
In the
add the comment to the first function
In the .module file remove
As it is not used.
Line 64
/** @var EnableService $enabler */is not needed then as you will not be useing the Enabler service.
Line 97 instead of
'#header' => [t('Role'), t('Weight'),],Switch it to
'#header' => [t('Role'), t('Weight')],as there is no following array value.
The Concat operator must be surrounded by a single space is something that a proper formatter will fix.
On line 116 you have
'#title' => t('Redirect ' . $role->label() . ' to:'),You need to use an placeholder so it would look something like this
Comment #3
marijan gudeljComment #4
marijan gudeljComment #5
wesleyl commentedFixed points addressed in #2 (https://git.drupalcode.org/project/redirect_page_by_role/-/commit/19398a...)
In
.modulefile was removed the unused statement, but it was updated the comment on line 64, because the Enabler service is been used on:What means this git error?
Comment #6
marijan gudeljYou corrected everything. I see nothing else
Automated review Passed
Manual review Passed
Breakdown:
Individual user account: yes
No duplication: yes
Master branch: Semantic (1.0.x)
Licensing : follows (nothing specified: falls under default Drupal GPL)
3rd party assets/code: no third party code
README.txt/README.md : follows
Code long/complex enough for review: Follows
Secure code: Yes
Coding style & Drupal API usage: Clear
Comment #7
marijan gudeljEverything fixed and passed automated and manual review
Comment #8
avpadernoA class that extends
ControllerBasecan useControllerBase::redirect()instead on implementing its own method.Comment #9
avpadernoThank you for your contribution! I am going to update your account.
These are some recommended readings to help with excellent maintainership:
You can find more contributors chatting on the IRC #drupal-contribute channel. So, come hang out and stay involved.
Thank you, also, for your patience with the review process.
Anyone is welcome to participate in the review process. Please consider reviewing other projects that are pending review. I encourage you to learn more about that process and join the group of reviewers.
I thank all the dedicated reviewers as well.