Closed (won't fix)
Project:
Drupal.org security advisory coverage applications
Component:
module
Priority:
Minor
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
4 Sep 2024 at 21:35 UTC
Updated:
15 Aug 2025 at 23:18 UTC
Jump to comment: Most recent
Comments
Comment #2
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 #3
vishal.kadamComment #4
rushikesh raval commented1. Fix phpcs issues.
phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml amswap/
FILE: README.md
--------------------------------------------------------------------------
FOUND 0 ERRORS AND 3 WARNINGS AFFECTING 3 LINES
--------------------------------------------------------------------------
3 | WARNING | Line exceeds 80 characters; contains 90 characters
41 | WARNING | Line exceeds 80 characters; contains 83 characters
42 | WARNING | Line exceeds 80 characters; contains 91 characters
--------------------------------------------------------------------------
FILE: src/Form/AmswapConfigForm.php
----------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------------
7 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Core\Link.
----------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
Comment #5
vishal.kadam1. FILE: amswap.info.yml
core_version_requirement: ^8 || ^9 || ^10The Drupal Core versions before 8.7.7 do not recognize the core_version_requirement key.
2. FILE: amswap.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.
Comment #6
avpadernoActually, the 8.x-1.x is a better branch to review, since all the commits have been done by you.
Comment #7
avpadernosrc/Form/AmswapConfigForm.php
The constructor of the parent class has not been called. Keep in mind, it is expecting a parameter.
Messages shown in the user interface must be translatable. Translatable messages are not concatenations of strings, including translatable strings.
src/Tests/LoadTest.php
The test is checking the front page can be loaded, but the module does not alter the front page. It means the test is not testing the module works, and it should be removed.
Furthermore, Drupal core already tests the front page.
Comment #8
rushikesh raval commentedI am changing priority as per Issue priorities.
Comment #9
avpadernoThis thread has been idle, in the Needs work state with no activity for more than eight months; the application has been created more than 11 months ago. Therefore, I marked it as Closed (won't fix).
If this is incorrect, and you are still pursuing this application, please feel free to re-open it and set the issue status to Needs work or Needs review, depending on the current status of your code.