Review of the 8.x-1.x branch (commit 486bdf3):

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 2 WARNINGS AFFECTING 2 LINES
--------------------------------------------------------------------------
 5 | WARNING | Line exceeds 80 characters; contains 137 characters
 7 | WARNING | Line exceeds 80 characters; contains 140 characters
--------------------------------------------------------------------------


FILE: .../web/vendor/drupal/pareviewsh/pareview_temp/registration_link.module
--------------------------------------------------------------------------
FOUND 26 ERRORS AND 2 WARNINGS AFFECTING 12 LINES
--------------------------------------------------------------------------
  1 | ERROR   | [x] Missing file doc comment
  1 | ERROR   | [x] The PHP open tag must be followed by exactly one
    |         |     blank line
  2 | WARNING | [x] Unused use statement
  3 | WARNING | [x] Unused use statement
  5 | ERROR   | [x] Missing function doc comment
  5 | ERROR   | [ ] registration_link_uninstall() is an installation hook
    |         |     and must be declared in an install file
  5 | ERROR   | [x] Expected 1 space before opening brace; found 0
  6 | ERROR   | [x] Spaces must be used to indent lines; tabs are not
    |         |     allowed
  6 | ERROR   | [x] Line indented incorrectly; expected 2 spaces, found 1
  6 | ERROR   | [x] Inline comments must start with a capital letter
  6 | ERROR   | [x] Inline comments must end in full-stops, exclamation
    |         |     marks, colons, question marks, or closing parentheses
  7 | ERROR   | [x] Spaces must be used to indent lines; tabs are not
    |         |     allowed
  7 | ERROR   | [x] Line indented incorrectly; expected 2 spaces, found 1
  8 | ERROR   | [x] Spaces must be used to indent lines; tabs are not
    |         |     allowed
  8 | ERROR   | [x] Line indented incorrectly; expected 2 spaces, found 1
  8 | ERROR   | [x] Short array syntax must be used to define arrays
  9 | ERROR   | [x] Spaces must be used to indent lines; tabs are not
    |         |     allowed
  9 | ERROR   | [x] Line indented incorrectly; expected 2 spaces, found 1
  9 | ERROR   | [x] Expected 1 space after FOREACH keyword; 0 found
  9 | ERROR   | [x] Expected 1 space after closing parenthesis; found 0
 10 | ERROR   | [x] Spaces must be used to indent lines; tabs are not
    |         |     allowed
 10 | ERROR   | [x] Line indented incorrectly; expected 4 spaces, found 2
 10 | ERROR   | [x] Inline comments must end in full-stops, exclamation
    |         |     marks, colons, question marks, or closing parentheses
 11 | ERROR   | [x] Spaces must be used to indent lines; tabs are not
    |         |     allowed
 11 | ERROR   | [x] Line indented incorrectly; expected 4 spaces, found 2
 12 | ERROR   | [x] Spaces must be used to indent lines; tabs are not
    |         |     allowed
 12 | ERROR   | [x] Line indented incorrectly; expected 2 spaces, found 1
 13 | ERROR   | [x] Expected 1 newline at end of file; 0 found
--------------------------------------------------------------------------
PHPCBF CAN FIX THE 27 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------


FILE: ...vendor/drupal/pareviewsh/pareview_temp/registration_link.routing.yml
--------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------
 8 | ERROR | [x] Expected 1 newline at end of file; 0 found
--------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------


FILE: ...web/vendor/drupal/pareviewsh/pareview_temp/registration_link.install
--------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------
 1 | ERROR | [x] Missing file doc comment
--------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------

Time: 449ms; Memory: 4Mb

Comments

nkoporec created an issue. See original summary.

nkoporec’s picture

Status: Active » Needs review
StatusFileSize
new1.93 KB

Created a patch.

vdenis’s picture

StatusFileSize
new2.34 KB

Found some issues:

➜  dummy-project phpcs --standard=Drupal modules/contrib/registration_link/registration_link.install

FILE: /Users/denis/Documents/web/dummy-project/modules/contrib/registration_link/registration_link.install
----------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------------
 16 | ERROR | [x] Short array syntax must be used to define arrays
----------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------
➜  dummy-project phpcs --standard=Drupal modules/contrib/registration_link/registration_link.links.menu.old.yml

FILE: /Users/denis/Documents/web/dummy-project/modules/contrib/registration_link/registration_link.links.menu.old.yml
---------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
---------------------------------------------------------------------------------------------------------------------
 5 | ERROR | [x] Expected 1 newline at end of file; 0 found
---------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------------

Time: 48ms; Memory: 6Mb
➜  dummy-project phpcs --standard=Drupal modules/contrib/registration_link/registration_link.routing.yml

FILE: /Users/denis/Documents/web/dummy-project/modules/contrib/registration_link/registration_link.routing.yml
--------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------------------------------------
 8 | ERROR | [x] Expected 1 newline at end of file; 0 found
--------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------------------------

Time: 48ms; Memory: 6Mb

Provided patch fix those errors.

deaom’s picture

StatusFileSize
new370 bytes

Tested both patches and found one more missing space.

phpcs --standard=Drupal drupal/web/modules/contrib/registration_link/registration_link.info.yml 

FILE: ...web/modules/contrib/registration_link/registration_link.info.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
----------------------------------------------------------------------

Time: 69ms; Memory: 6Mb

I'm adding the patch.

i-trokhanenko’s picture

Status: Needs review » Needs work

Need to rewrite with last changes on an 8.x-1.x branch.

i-trokhanenko’s picture

Issue summary: View changes
i-trokhanenko’s picture

Version: 8.x-1.x-dev » 8.x-2.x-dev

  • i-trokhanenko committed 57ca50c on 8.x-2.x
    Issue #2955246 by nkoporec, vdenis, DeaOm, i-trokhanenko: Coding...
i-trokhanenko’s picture

Status: Needs work » Fixed

Thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.