Closed (fixed)
Project:
Drupal.org security advisory coverage applications
Component:
module
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
13 Jan 2020 at 17:10 UTC
Updated:
19 Feb 2020 at 06:59 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
rksyraviHi @gurubaskar,
Thank you for contribution!!!
This below link will help you in resolving all the issue and also I am adding it in the summary. First resolve all, then again reopen to 'Needs Review'.
https://pareview.sh/pareview/https-git.drupal.org-project-tmgmt_mornings...
Comment #3
rksyraviComment #4
gurubaskarHi @rksyravi
Thanks for your review.
1. I have fixed README file, hook_help() and Coding standards.
2. We are not using PHPUnit test case. So, we ignore it.
3. I have tried to execute my git in parview.sh, but its keep on executing.
Please review it.
Comment #5
ankush_03Still some issue on pareview.sh, check at https://pareview.sh/pareview/https-git.drupal.org-project-tmgmt_mornings...
DrupalPractice has found some issues with your code but could be false positives.
FILE: .../drupal/pareviewsh/pareview_temp/src/UpdateRequestStatusServices.php
--------------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
--------------------------------------------------------------------------
26 | WARNING | \Drupal calls should be avoided in classes, use
| | dependency injection instead
147 | WARNING | \Drupal calls should be avoided in classes, use
| | dependency injection instead
--------------------------------------------------------------------------
FILE: .../pareview_temp/src/Plugin/tmgmt/Translator/MorningsideTranslator.php
--------------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
--------------------------------------------------------------------------
244 | WARNING | Variable $path is undefined.
284 | WARNING | Unused variable $send.
--------------------------------------------------------------------------
Time: 1.68 secs; Memory: 10Mb
Comment #6
ankush_03Comment #7
avpadernoComment #8
gurubaskarHi @ankushgautam76@gmail.com,
Thanks for your review.
The issue raised by you are already fixed. When I execute the parview.sh, I am getting below errors.
FILE: ...000000/site1101/web/vendor/drupal/pareviewsh/pareview_temp/README.md
--------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------
62 | ERROR | [x] Expected 1 newline at end of file; 0 found
--------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------
FILE: ...endor/drupal/pareviewsh/pareview_temp/tmgmt_morningside.services.yml
--------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------
4 | ERROR | [x] Expected 1 newline at end of file; 0 found
--------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------
FILE: .../drupal/pareviewsh/pareview_temp/src/UpdateRequestStatusServices.php
--------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------
35 | ERROR | Parameter $database is not described in comment
--------------------------------------------------------------------------
FILE: .../web/vendor/drupal/pareviewsh/pareview_temp/tmgmt_morningside.module
--------------------------------------------------------------------------
FOUND 2 ERRORS AND 1 WARNING AFFECTING 2 LINES
--------------------------------------------------------------------------
9 | WARNING | [x] Unused use statement
23 | ERROR | [x] Expected 1 space between comma and "':sources'"; 0
| | found
23 | ERROR | [x] Expected one space after the comma, 0 found
--------------------------------------------------------------------------
PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------
Please apply the patch and update your review.
All the functions are using APIs and creating actual entry to Morning side in the third party. Hence could not provide test case. PHPUnit test.
Comment #9
rksyraviHi @gurubaskar,
Here you should not provide any patch.
If you have already fixed the above-mentioned issue then push that code to your project branch and then change the status to Needs Review, so that all the active members can review and give you the feedback.
Comment #10
gurubaskarHi @rksyravi,
I have commit and pushed all the code to dev branch. Please review it.
Comment #11
ankush_03@gurubaskar
Minor Pareview issue pending :
FILE: ...000000/site1101/web/vendor/drupal/pareviewsh/pareview_temp/README.md
--------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------
62 | ERROR | [x] Expected 1 newline at end of file; 0 found
--------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------
FILE: ...endor/drupal/pareviewsh/pareview_temp/tmgmt_morningside.services.yml
--------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------
4 | ERROR | [x] Expected 1 newline at end of file; 0 found
--------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------
FILE: .../drupal/pareviewsh/pareview_temp/src/UpdateRequestStatusServices.php
--------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------
35 | ERROR | Parameter $database is not described in comment
--------------------------------------------------------------------------
FILE: .../web/vendor/drupal/pareviewsh/pareview_temp/tmgmt_morningside.module
--------------------------------------------------------------------------
FOUND 2 ERRORS AND 1 WARNING AFFECTING 2 LINES
--------------------------------------------------------------------------
9 | WARNING | [x] Unused use statement
23 | ERROR | [x] Expected 1 space between comma and "':sources'"; 0
| | found
23 | ERROR | [x] Expected one space after the comma, 0 found
--------------------------------------------------------------------------
PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------
Time: 4.47 secs; Memory: 12Mb
Comment #12
ankush_03Comment #13
gurubaskarHi @ankushgautam76@gmail.com,
Can you please let me know how you are able to get these issues so that I can also reproduce it and fix it. I am unable to get these in this review
Please check below link and attached screenshot for your reference.
https://pareview.sh/pareview/https-git.drupal.org-project-tmgmt_mornings...
Comment #14
avpadernoComment #15
avpadernoAt the moment, pareview.sh isn't working. When I try it, it throws an exception, or it doesn't run the tests and it shows (I think) a default message.
Comment #16
avpadernoOn a quick preview, it seems that what reported from the previous comment was already fixed. I cannot speak about the empty line at the end of the files, since the Gitlab viewer doesn't seem to show them.
Comment #17
imclean commentedpareview.sh is now up and running. I requested a "Repeat review" and there are no errors or warnings.
Comment #18
imclean commentedhttps://pareview.sh/pareview/https-git.drupal.org-project-tmgmt_mornings...
Comment #19
klausiThanks for you contribution!
Did not see any security issues, looks good to me.
Comment #20
gurubaskarHi @klausi,
Thanks for reviewing.
I have fixed the points mentioned at #19 by you. In Point 2 one database table require primary key that has updated. Rest not required in our scenario.
Great, thank you everyone for reviewing. What's the next step?
Comment #21
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.
Comment #22
gurubaskarThank you, everyone for your comments and suggestions.