Closed (fixed)
Project:
Drupal.org security advisory coverage applications
Component:
module
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
26 Mar 2024 at 21:52 UTC
Updated:
14 Sep 2025 at 14:14 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.Keep in mind that once the project is opted into security advisory coverage, only Security Team members may change coverage.
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
vishal.kadamRemember to change status, when the project is ready to be reviewed. In this queue, projects are only reviewed when the status is Needs review.
Comment #5
joaopauloc.dev commentedComment #6
rushikesh raval commentedFix phpcs issues
phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml calculation_fields/
FILE: calculation_fields/README.md
----------------------------------------------------------------------
FOUND 0 ERRORS AND 10 WARNINGS AFFECTING 10 LINES
----------------------------------------------------------------------
4 | WARNING | Line exceeds 80 characters; contains 403 characters
9 | WARNING | Line exceeds 80 characters; contains 141 characters
16 | WARNING | Line exceeds 80 characters; contains 86 characters
21 | WARNING | Line exceeds 80 characters; contains 118 characters
24 | WARNING | Line exceeds 80 characters; contains 512 characters
31 | WARNING | Line exceeds 80 characters; contains 178 characters
50 | WARNING | Line exceeds 80 characters; contains 109 characters
53 | WARNING | Line exceeds 80 characters; contains 199 characters
72 | WARNING | Line exceeds 80 characters; contains 118 characters
74 | WARNING | Line exceeds 80 characters; contains 164 characters
----------------------------------------------------------------------
FILE: calculation_fields/calculation_fields.info.yml
--------------------------------------------------------------------------------
FOUND 0 ERRORS AND 3 WARNINGS AFFECTING 1 LINE
--------------------------------------------------------------------------------
1 | WARNING | Remove "project" from the info file, it will be added by
| | drupal.org packaging automatically
1 | WARNING | Remove "datestamp" from the info file, it will be added by
| | drupal.org packaging automatically
1 | WARNING | Remove "version" from the info file, it will be added by
| | drupal.org packaging automatically
--------------------------------------------------------------------------------
FILE: calculation_fields/modules/calculation_fields_example/calculation_fields_example.info.yml
--------------------------------------------------------------------------------
FOUND 0 ERRORS AND 3 WARNINGS AFFECTING 1 LINE
--------------------------------------------------------------------------------
1 | WARNING | Remove "project" from the info file, it will be added by
| | drupal.org packaging automatically
1 | WARNING | Remove "datestamp" from the info file, it will be added by
| | drupal.org packaging automatically
1 | WARNING | Remove "version" from the info file, it will be added by
| | drupal.org packaging automatically
--------------------------------------------------------------------------------
FILE: calculation_fields/modules/webform_calculation_fields/README.md
--------------------------------------------------------------------------------
FOUND 0 ERRORS AND 14 WARNINGS AFFECTING 14 LINES
--------------------------------------------------------------------------------
4 | WARNING | Line exceeds 80 characters; contains 395 characters
9 | WARNING | Line exceeds 80 characters; contains 178 characters
18 | WARNING | Line exceeds 80 characters; contains 111 characters
21 | WARNING | Line exceeds 80 characters; contains 118 characters
24 | WARNING | Line exceeds 80 characters; contains 325 characters
25 | WARNING | Line exceeds 80 characters; contains 81 characters
28 | WARNING | Line exceeds 80 characters; contains 213 characters
31 | WARNING | Line exceeds 80 characters; contains 216 characters
34 | WARNING | Line exceeds 80 characters; contains 177 characters
40 | WARNING | Line exceeds 80 characters; contains 223 characters
43 | WARNING | Line exceeds 80 characters; contains 223 characters
46 | WARNING | Line exceeds 80 characters; contains 134 characters
49 | WARNING | Line exceeds 80 characters; contains 271 characters
51 | WARNING | Line exceeds 80 characters; contains 161 characters
--------------------------------------------------------------------------------
FILE: calculation_fields/modules/webform_calculation_fields/webform_calculation_fields.info.yml
--------------------------------------------------------------------------------
FOUND 0 ERRORS AND 3 WARNINGS AFFECTING 1 LINE
--------------------------------------------------------------------------------
1 | WARNING | Remove "project" from the info file, it will be added by
| | drupal.org packaging automatically
1 | WARNING | Remove "datestamp" from the info file, it will be added by
| | drupal.org packaging automatically
1 | WARNING | Remove "version" from the info file, it will be added by
| | drupal.org packaging automatically
--------------------------------------------------------------------------------
FILE: calculation_fields/modules/calculation_fields_example/webform_calculation_fields_examples.info.yml
--------------------------------------------------------------------------------
FOUND 0 ERRORS AND 3 WARNINGS AFFECTING 1 LINE
--------------------------------------------------------------------------------
1 | WARNING | Remove "project" from the info file, it will be added by
| | drupal.org packaging automatically
1 | WARNING | Remove "datestamp" from the info file, it will be added by
| | drupal.org packaging automatically
1 | WARNING | Remove "version" from the info file, it will be added by
| | drupal.org packaging automatically
--------------------------------------------------------------------------------
Time: 165ms; Memory: 10MB
Comment #7
vishal.kadam1. 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.
2. FILE: calculation_fields.module
FILE: modules/calculation_fields_example/calculation_fields_example.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 #8
vishal.kadamI am changing priority as per Issue priorities.
Comment #9
vishal.kadamThis thread has been idle, in the Needs work state with no activity for several months. Therefore, I am assuming that you are no longer pursuing this application, and I marked it as Closed (won't fix).
If this is incorrect, and you are still pursuing this application, then 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.
Comment #10
avpadernoWe close as Closed (won't fix) applications created the previous year, whose status has been Needs work for more than eight months.
Let's keep this application open a month more.
Comment #11
joaopauloc.dev commentedHey folks.
Sorry for the late response.
All PHP-CodeSniffer issues fixed and README file updated.
Comment #12
vishal.kadamComment #13
avpadernoComment #14
vishal.kadamFILE: calculation_fields.info.yml
FILE: modules/calculation_fields_example/calculation_fields_example.info.yml
FILE: modules/webform_calculation_fields/webform_calculation_fields.info.yml
FILE: modules/webform_calculation_fields/modules/webform_calculation_fields_examples/webform_calculation_fields_examples.info.yml
Remove "project", "version" and "datestamp" from the info file, it will be added by drupal.org packaging automatically.
Comment #15
joaopauloc.dev commentedThanks @vishal.kadam for the feedback.
I remove all the mentioned information from the info modules.
Comment #16
vishal.kadamRest looks fine to me.
Let’s wait for a Code Review Administrator to take a look and if everything goes fine, you will get the role.
Comment #17
avpadernosrc/Element/FormCalculationElement.php
The second argument passed to
::setError()must be a translatable string, not a dynamic string.src/CalculationFieldsTrait.php
Drupal has an API to create instances of service classes; they should not be created with
new.In some methods, there are @todo improve this validation. comments. Either those @todo's should be already implemented, or there should be an issue to change the code.
Comment #18
joaopauloc.dev commentedThank you for reviewing this issue and the feedback @avpaderno
Both comments above regarding getting the service and error message translatable were fixed.
Some of the TODO comments were outdated.
For those that still make sense, I create a new task to address these improvements in the next release.
Comment #19
joaopauloc.dev commentedHey guys, any update on this? I would appreciate that.
Thanks in advance.
Comment #20
bbu23Updating priority according to issue priorities.
Comment #21
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 also all the reviewers for helping with these applications.
Comment #22
avpadernoComment #23
joaopauloc.dev commentedThank you so much guys!
Comment #24
orkutmuratyilmazcongratulations:)