Closed (won't fix)
Project:
Drupal.org security advisory coverage applications
Component:
module
Priority:
Minor
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
13 Apr 2020 at 19:26 UTC
Updated:
5 Nov 2020 at 12:38 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #3
avpadernoThank you for applying! I added the PAReview checklist link. Reviewers will check the project and post comments to list what should be changed.
If you haven't done it, yet, please check the PAReview report and fix what needs to be fixed. There could be some false positives; verify that what reported is correct, before making any change.
Comment #4
avpadernoAt a quick review, I didn't find any security issues. There are some small coding standard issues to fix, reported from PAReview.
Since the composer.json file is setting the minimum Drupal version to 8.8, also the .info file should report the same requirement. (
core_version_requirementworks also with^8 || ^9.) (There is also a comma before the period that should be removed, in the module description.)The LICENSE.txt file is not necessary, as any module hosted on drupal.org is licensed under the same license used by Drupal.
It should be Implements hook_element_info_alter().
Comment #5
rohitrajputsahab commentedFound "doc" folder.
Please remove this folder. Please see attached screenshot.
Comment #6
rohitrajputsahab commentedRemove comma in *.info.yml file. Please see below
description: Define styles from modules and themes,.
Comment #7
ankush_03Still some pareview issue pending :
FILE: ...000000/site1101/web/vendor/drupal/pareviewsh/pareview_temp/README.md
--------------------------------------------------------------------------
FOUND 0 ERRORS AND 9 WARNINGS AFFECTING 9 LINES
--------------------------------------------------------------------------
8 | WARNING | Line exceeds 80 characters; contains 94 characters
9 | WARNING | Line exceeds 80 characters; contains 121 characters
14 | WARNING | Line exceeds 80 characters; contains 131 characters
16 | WARNING | Line exceeds 80 characters; contains 287 characters
17 | WARNING | Line exceeds 80 characters; contains 197 characters
18 | WARNING | Line exceeds 80 characters; contains 155 characters
19 | WARNING | Line exceeds 80 characters; contains 127 characters
27 | WARNING | Line exceeds 80 characters; contains 125 characters
60 | WARNING | Line exceeds 80 characters; contains 439 characters
--------------------------------------------------------------------------
FILE: ...view_temp/modules/ui_styles_library/ui_styles_library.links.menu.yml
--------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------
5 | ERROR | [x] Expected 1 newline at end of file; 2 found
--------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------
FILE: ...emp/modules/ui_styles_layout_builder/ui_styles_layout_builder.module
--------------------------------------------------------------------------
FOUND 6 ERRORS AND 4 WARNINGS AFFECTING 10 LINES
--------------------------------------------------------------------------
118 | ERROR | [x] Expected 1 blank line after function; 2 found
122 | WARNING | [ ] Format should be "* Implements hook_foo().", "*
| | Implements hook_foo_BAR_ID_bar() for xyz_bar().",,
| | "* Implements hook_foo_BAR_ID_bar() for
| | xyz-bar.html.twig.", "* Implements
| | hook_foo_BAR_ID_bar() for xyz-bar.tpl.php.", or "*
| | Implements hook_foo_BAR_ID_bar() for block
| | templates."
124 | ERROR | [x] Whitespace found at end of line
126 | ERROR | [x] Whitespace found at end of line
127 | WARNING | [ ] Line exceeds 80 characters; contains 81 characters
161 | WARNING | [ ] Format should be "* Implements hook_foo().", "*
| | Implements hook_foo_BAR_ID_bar() for xyz_bar().",,
| | "* Implements hook_foo_BAR_ID_bar() for
| | xyz-bar.html.twig.", "* Implements
| | hook_foo_BAR_ID_bar() for xyz-bar.tpl.php.", or "*
| | Implements hook_foo_BAR_ID_bar() for block
| | templates."
163 | ERROR | [x] Whitespace found at end of line
165 | ERROR | [x] Whitespace found at end of line
166 | WARNING | [ ] Line exceeds 80 characters; contains 81 characters
182 | ERROR | [x] Expected 1 newline at end of file; 2 found
--------------------------------------------------------------------------
PHPCBF CAN FIX THE 6 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------
Time: 1.16 secs; Memory: 4Mb
Comment #8
avpadernoThe doc directory contains the image linked from the README.md file. Modules can have any directory they need and the Drupal coding standards don't vet the use of such directories.
Comment #9
pdureau commentedHI @kiamlaluno,
Thanks for your review.
I will do those changes:
- Removal of the comma before the period in the module description.
- Implements hook_element_info_alter().
- Minimum Drupal version to 8.8 in core_version_requirement
Other subjects:
- Yes, the doc directory is needed for the README.md
- I will keep LICENSE.txt because I host this module also on Github
PARview subjects: I run PHPCS with Drupal and Drupal Practice on my local environment, and I don't see those reports.
I will fix some.
Comment #10
pdureau commentedComment #11
avpadernoComment #12
rohitrajputsahab commentedPareviewsh issue is still pending. Please fix this.
FILE: ...000000/site1101/web/vendor/drupal/pareviewsh/pareview_temp/README.md
--------------------------------------------------------------------------
FOUND 0 ERRORS AND 9 WARNINGS AFFECTING 9 LINES
--------------------------------------------------------------------------
8 | WARNING | Line exceeds 80 characters; contains 94 characters
9 | WARNING | Line exceeds 80 characters; contains 121 characters
14 | WARNING | Line exceeds 80 characters; contains 131 characters
16 | WARNING | Line exceeds 80 characters; contains 287 characters
17 | WARNING | Line exceeds 80 characters; contains 197 characters
18 | WARNING | Line exceeds 80 characters; contains 155 characters
19 | WARNING | Line exceeds 80 characters; contains 127 characters
27 | WARNING | Line exceeds 80 characters; contains 125 characters
60 | WARNING | Line exceeds 80 characters; contains 439 characters
--------------------------------------------------------------------------
FILE: ...emp/modules/ui_styles_layout_builder/ui_styles_layout_builder.module
--------------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
--------------------------------------------------------------------------
127 | WARNING | Line exceeds 80 characters; contains 81 characters
166 | WARNING | Line exceeds 80 characters; contains 81 characters
--------------------------------------------------------------------------
Time: 1.23 secs; Memory: 6Mb
Comment #13
avpadernoComment #14
avpadernoI am closing this application due to lack of replies.