Closed (fixed)
Project:
Drupal.org security advisory coverage applications
Component:
module
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
22 Feb 2020 at 10:11 UTC
Updated:
22 May 2020 at 13:14 UTC
Jump to comment: Most recent
Comments
Comment #2
rksyraviHi @mafzalzadeh,
Thank you for contribution!!
From the initial automated testing found below warnings, these are not the blockers, just good practice
Comment #3
rksyraviComment #4
avpadernoComment #5
mafzalzadeh commentedThese warnings fixed due to best practices.
Thanks for report and contribution.
Comment #6
avpadernoComment #7
klausiThanks for your contribution!
Comment #8
ankush_03Line disable_author.module
------ ---------------------------------------------------------------------------------------------------------------
19 PHPDoc tag @param has invalid value ($route_name): Unexpected token "$route_name", expected type at offset 44
35 PHPDoc tag @param has invalid value ($form): Unexpected token "$form", expected type at offset 14
35 PHPDoc tag @param has invalid value ($form_id): Unexpected token "$form_id", expected type at offset 89
------ ---------------------------------------------------------------------------------------------------------------
[ERROR] Found 3 errors.
Comment #9
shaktikFix below issues :
Shakti-Kumar:disable_author shakti.kumar$ ../../../../vendor/bin/drupal-check -ad .
2/2 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓] 100%
------ ----------------------------------
Line disable_author.module
------ ----------------------------------
6 Right side of || is always true.
------ ----------------------------------
[ERROR] Found 1 error
Comment #10
avpaderno@shaktik It would be helpful for the OP if you could explain what exactly is wrong with the code.
Comment #11
shaktikHi @kiamlaluno,
The line on 6: disable_author.module. got wrong code.
it should be.
Thanks,
Shakti.
Comment #12
mafzalzadeh commentedHi @klausi,
Thanks to Report these issues.
all of them fixed.
Comment #13
mafzalzadeh commentedHi @shaktik,
Thanks for your contribution,
The Issue fixed Due to #7 comment.
Comment #14
mafzalzadeh commentedComment #15
mafzalzadeh commentedComment #16
shaktikstill have some issue.
Review of the 8.x-1.x branch (commit 96450d0):
hook_help(). See https://www.drupal.org/docs/develop/documenting-your-project/module-docu... .This automated report was generated with PAReview.sh, your friendly project application review script.
Comment #17
shaktikComment #18
klausi@shaktik: small coding standard issues are not application blockers, anything else that you found or should this be RTBC?
Comment #19
shaktikHi @klausi,
rest looks good, we can move RTBC.
Comment #20
shaktikComment #21
avpadernoActually, using the wrong permission to access a route is not just a coding standards issue, but it's a security issue. The code in the 8.x-1.x branch uses the administer site configuration permission, though, which means the issue doesn't exist in the branch to review.
Comment #22
avpadernoThe code is wrong, since:
$form['author'],$form['created'], and$form['uid']with an array containing two wrong items which are probably causing issues to Drupal core and third-party modulesDrupal::currentUser()has agetRoles()methodFor the second point, to avoid a user sees a form element is enough to use a line similar to
$form['author']['#access'] = FALSE;. An array like['#access' => 'value', '#value' => FALSE]is going to give access to the form element, but it's also changing a form element into something that is not a form element.Comment #23
mafzalzadeh commentedHi @kiamlaluno
Thanks for your contribution,
The issues are fixed now.
Comment #24
mafzalzadeh commentedComment #25
klausiOtherwise looks good to me.
I also think we have enough code here to promote mafzalzadeh (config form, routing file, alter hook, config schema).
Thanks for your contribution, Mahmood!
I updated your account so you can opt into security advisory coverage now.
Here are some recommended readings to help with excellent maintainership:
You can find lots more contributors chatting on Slack or IRC in #drupal-contribute. So, come hang out and stay involved!
Thanks, 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.
Thanks to the dedicated reviewer(s) as well.
Comment #26
klausiForgot to add credits for mafzalzadeh for applying here.