Closed (fixed)
Project:
Drupal.org security advisory coverage applications
Component:
module
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
14 Jun 2024 at 11:18 UTC
Updated:
18 Sep 2024 at 02:34 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
chrisvanwormer commentedComment #3
vishal.kadamThank you for applying!
Please read Review process for security advisory coverage: What to expect for more details and Security advisory coverage application checklist to understand what reviewers look for. Tips for ensuring a smooth review gives some hints for a smoother review.
The important notes are the following.
phpcs --standard=Drupal,DrupalPracticeon the project, which alone fixes most of what reviewers would report.To the reviewers
Please read How to review security advisory coverage applications, Application workflow, What to cover in an application review, and Tools to use for reviews.
The important notes are the following.
For new reviewers, I would also suggest to first read In which way the issue queue for coverage applications is different from other project queues.
Comment #4
vishal.kadamComment #5
vishal.kadam1. Fix phpcs issues.
See attached nys_unav-phpcs-errors.txt
2. FILE: nys_unav.info.yml
core_version_requirement: ^8 || ^9 || ^10The Drupal Core versions before 8.7.7 do not recognize the core_version_requirement key.
3. FILE: README.md
The module uses a README.md file instead of a README.txt file. While the Drupal coding standards have not been yet updated about that, the Drupal.org community consider that positive.
Since there is a README.md file, that should follow the content and formatting described in README.md template.
4. FILE: templates/nys-unav-header.html.twig
In Drupal 8 and later versions, stylesheets (CSS) and JavaScript (JS) are loaded through asset libraries.
5. FILE: src/Form/NysUNavForm.php
Remove empty method.
Comment #6
chrisvanwormer commentedGood morning Vishal. Thank you for taking the time to do this.
I've gone ahead and updated the 2.0.x-dev branch. I've fixed all the PHPCS Errors, updated the core_version_requirement, used the template for the README.md, changed our loading of an offsite JS library to be within our libraries.yml file instead of the template and removed the empty method in the NysUNavForm.php file.
Comment #7
chrisvanwormer commentedComment #8
vishal.kadam1. FILE: src/Form/NysUNavForm.php
$config = \Drupal::configFactory()->getEditable('nys_unav.settings');\Drupal calls should be avoided in classes, use dependency injection instead.
{@inheritdoc} is used if you are overriding or implementing a method from a base class or interface.
2. FILE: nys_unav.module
The usual description for a .module file is Hook implementations for the [module name] module. where [module name] is the module name given in the .info.yml file.
When implementing a hook, use a short summary of the form "Implements hook_menu().". Omit the parameter and return value documentation in this case.
3. Code needs to be correctly indented. Drupal uses two spaces for indentation, not four spaces nor tabs.
FILE: templates/nys-unav-footer.html.twig
FILE: templates/nys-unav-header.html.twig
FILE: templates/nys-unav-smartling.html.twig
FILE: js/nys_unav_smartling.js
Comment #9
chrisvanwormer commentedGood morning once again Vishal.
Changes have been implemented into 2.0.x-dev.
I updated everything mentioned above. Upon fixing those I ran PHPCS again and had some minor additional changes needed. Those have been fixed as well.
Thanks again.
Updating the status to Needs Review.
Comment #10
chrisvanwormer commentedComment #11
vishal.kadamRest seems fine to me.
Let’s wait for other reviewers to take a look and if everything goes fine, you will get the role.
Comment #12
chrisvanwormer commentedThanks. Look forward to it.
Comment #13
vishal.kadamI am changing priority as per Issue priorities.
Comment #14
avpadernoThank you for your contribution and for your patience with the review process!
I am going to update your account so you can opt into security advisory coverage any project you create, including the projects you already created.
These are some recommended readings to help you with maintainership:
You can find more contributors chatting on Slack or IRC in #drupal-contribute. So, come hang out and stay involved!
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 the dedicated reviewers as well.
Comment #15
avpaderno