Closed (fixed)
Project:
Drupal.org security advisory coverage applications
Component:
module
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
16 Sep 2020 at 05:32 UTC
Updated:
25 Oct 2020 at 10:44 UTC
Jump to comment: Most recent
Comments
Comment #2
avpadernoThank you for applying! Remember to change status, as the current one is used to say to the reviewers the project is not ready to be reviewed.
Comment #3
avpadernoComment #4
avpadernoComment #5
drupal-ramesh commentedComment #6
batkorHi
1. Add check entity type this line https://git.drupalcode.org/project/searchapi_nodeview_count/-/blob/1.0.x...
#
2. Code standard https://git.drupalcode.org/project/searchapi_nodeview_count/-/blob/1.0.x...
3. Please use DI
https://git.drupalcode.org/project/searchapi_nodeview_count/-/blob/1.0.x...
#
Comment #7
kuldeep_mehra27 commentedThank you for the contribution!
Please fix the Drupal coding standards.
FILE: /var/www/html/nutrition-tracker/web/modules/contrib/searchapi_nodeview_count/src/Plugin/search_api/processor/NodeViewsCount.php
---------------------------------------------------------------------------------------------------------------------------------------------
FOUND 9 ERRORS AFFECTING 5 LINES
---------------------------------------------------------------------------------------------------------------------------------------------
49 | ERROR | [x] Whitespace found at end of line
49 | ERROR | [x] Functions must not contain multiple empty lines in a row; found 2 empty lines
50 | ERROR | [x] Whitespace found at end of line
51 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
51 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 3
57 | ERROR | [x] No space found before comment text; expected "// get node's user views count using statistics module" but found "//get
| | node's user views count using statistics module"
57 | ERROR | [x] Inline comments must start with a capital letter
57 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
59 | ERROR | [x] Expected 1 space after IF keyword; 0 found
---------------------------------------------------------------------------------------------------------------------------------------------
Comment #8
kuldeep_mehra27 commented------ ----------------------------------------------------------------------------------------------
Line src/Plugin/search_api/processor/NodeViewsCount.php
------ ----------------------------------------------------------------------------------------------
Class Drupal\search_api\Processor\ProcessorPluginBase not found and could not be autoloaded.
24 Class Drupal\search_api\Processor\ProcessorPluginBase not found and could not be autoloaded.
------ ----------------------------------------------------------------------------------------------
Comment #9
drupal-ramesh commentedHi
Thank you for valuable feedback. I have fixed above coding issues and used DI in plugin.
@kuldeep_mehra27 - kindly let me know that when you got pluginbase not found error.
Comment #10
drupal-ramesh commentedComment #11
batkorRemove this condition https://git.drupalcode.org/project/searchapi_nodeview_count/-/blob/1.0.x...
You already checked https://git.drupalcode.org/project/searchapi_nodeview_count/-/blob/1.0.x...
$views_count not exists https://git.drupalcode.org/project/searchapi_nodeview_count/-/blob/1.0.x...
Change code to for example
Comment #12
drupal-ramesh commented@batkor above changes are updated in dev version.
Comment #13
drupal-ramesh commentedComment #14
batkorLooks good to me now.
Comment #15
klausiLooks good to me!
Thanks for your contribution, Ramesh!
The module is too short to approve you as git vetted user, but I have opted into security coverage for you on your project. Please get back to us once you have another project to promote.
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.