Review of the 8.x-1.x branch (commit d516551):
Your README.txt does not follow best practices (headings need to be uppercase). See https://www.drupal.org/node/2181737 .
The INTRODUCTION section is missing.
The REQUIREMENTS section is missing.
The INSTALLATION section is missing.
The CONFIGURATION section is missing.
Remove LICENSE.txt, it will be added by drupal.org packaging automatically.
The prevent_homepage_deletion.module does not implement hook_help(). See https://www.drupal.org/docs/develop/documenting-your-project/module-docu... .
Coder Sniffer has found some issues with your code (please check the Drupal coding standards). See attachment.
No automated test cases were found, did you consider writing PHPUnit tests? This is not a requirement but encouraged for professional software development.
This automated report was generated with PAReview.sh, your friendly project application review script.
FILE: ...00000/site1101/web/vendor/drupal/pareviewsh/pareview_temp/README.txt
--------------------------------------------------------------------------
FOUND 0 ERRORS AND 4 WARNINGS AFFECTING 4 LINES
--------------------------------------------------------------------------
5 | WARNING | Line exceeds 80 characters; contains 110 characters
6 | WARNING | Line exceeds 80 characters; contains 87 characters
9 | WARNING | Line exceeds 80 characters; contains 83 characters
10 | WARNING | Line exceeds 80 characters; contains 94 characters
--------------------------------------------------------------------------
FILE: ...dor/drupal/pareviewsh/pareview_temp/prevent_homepage_deletion.module
--------------------------------------------------------------------------
FOUND 4 ERRORS AFFECTING 4 LINES
--------------------------------------------------------------------------
1 | ERROR | [x] The PHP open tag must be followed by exactly one blank
| | line
12 | ERROR | [x] Missing function doc comment
25 | ERROR | [x] Missing function doc comment
41 | ERROR | [x] Inline comments must end in full-stops, exclamation
| | marks, colons, question marks, or closing parentheses
--------------------------------------------------------------------------
PHPCBF CAN FIX THE 4 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------
FILE: ...or/drupal/pareviewsh/pareview_temp/prevent_homepage_deletion.install
--------------------------------------------------------------------------
FOUND 1 ERROR AND 1 WARNING AFFECTING 2 LINES
--------------------------------------------------------------------------
1 | ERROR | [x] The PHP open tag must be followed by exactly one blank
| | line
8 | 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."
--------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------
Time: 428ms; Memory: 4Mb
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | prevent_homepage_deletion-3108500-5.patch | 22.33 KB | joshahubbers |
Comments
Comment #2
ankush_03Comment #3
ankush_03Adding updated patch file !
Comment #4
akashkumar07 commentedPatch looks good to me. Just need to remove extra whitespace.
And, please tell me, why license.txt deleted in this patch.
Thanks
Comment #5
joshahubbers commentedThank You.
Ik corrected some spelling mistakes and will apply your patch.
Comment #7
joshahubbers commentedThank you for your attribution.