Drupal coding standards issues in code:

(1.) The phpinsights.module does not implement hook_help(). See https://www.drupal.org/docs/develop/documenting-your-project/module-docu...

(2.)

FILE: ...rupal/pareviewsh/pareview_temp/src/Plugin/Block/PhpInsightsBlock.php
--------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
--------------------------------------------------------------------------
 223 | WARNING | Unused variable $key.
--------------------------------------------------------------------------

(3.)

FILE: ...rupal/pareviewsh/pareview_temp/src/Plugin/Block/PhpInsightsBlock.php
--------------------------------------------------------------------------
FOUND 4 ERRORS AND 4 WARNINGS AFFECTING 7 LINES
--------------------------------------------------------------------------
  48 | ERROR   | [ ] Doc comment short description must start with a
     |         |     capital letter
  48 | ERROR   | [x] Doc comment short description must end with a full
     |         |     stop
  91 | WARNING | [x] A comma should follow the last multiline array item.
     |         |     Found: 0
  95 | WARNING | [x] A comma should follow the last multiline array item.
     |         |     Found: 'phpinsights/phpinsights'
 105 | WARNING | [x] A comma should follow the last multiline array item.
     |         |     Found: 0
 109 | WARNING | [x] A comma should follow the last multiline array item.
     |         |     Found: 'phpinsights/phpinsights'
 159 | ERROR   | [x] Expected newline after closing brace
 227 | ERROR   | [x] Expected newline after closing brace
--------------------------------------------------------------------------
PHPCBF CAN FIX THE 7 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------


FILE: ...drupal/pareviewsh/pareview_temp/src/Form/PhpInsightsSettingsForm.php
--------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------
 114 | ERROR | [x] Expected newline after closing brace
--------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

vuil created an issue. See original summary.

vuil’s picture

Status: Active » Needs review
FileSize
906 bytes

The patch for (1.) only.

  • vuil committed 993b7fd on 8.x-1.x
    Issue #3088795 by vuil: Implement hook_help() function.
    
vuil’s picture

Status: Needs review » Needs work

Needs work for (2.) and (3.) points...

vuil’s picture

Status: Needs work » Needs review
FileSize
3.8 KB

A patch for 2. & 3.

  • vuil committed d57b520 on 8.x-1.x
    Issue #3088795 by vuil: Apply coding standards.
    
vuil’s picture

Status: Needs review » Needs work

The latest issues:

FILE: ...rupal/pareviewsh/pareview_temp/src/Plugin/Block/PhpInsightsBlock.php
--------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 1 LINE
--------------------------------------------------------------------------
 48 | ERROR | [ ] Doc comment short description must start with a capital
    |       |     letter
 48 | ERROR | [x] Doc comment short description must end with a full stop
--------------------------------------------------------------------------
FILE: ...rupal/pareviewsh/pareview_temp/src/Plugin/Block/PhpInsightsBlock.php
--------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
--------------------------------------------------------------------------
 224 | WARNING | Unused variable $key.
--------------------------------------------------------------------------
vuil’s picture

Status: Needs work » Needs review
FileSize
1.38 KB

A patch for the issue #7 fix.

  • vuil committed 9c1188c on 8.x-1.x
    Issue #3088795 by vuil: annotation fixes and remove unused  variable.
    
vuil’s picture

Status: Needs review » Needs work
FILE: ...rupal/pareviewsh/pareview_temp/src/Plugin/Block/PhpInsightsBlock.php
--------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
--------------------------------------------------------------------------
 52 | ERROR | Missing parameter type
 54 | ERROR | Missing parameter type
--------------------------------------------------------------------------
vuil’s picture

Status: Needs work » Needs review
FileSize
921 bytes

A patch to fix #10.

  • vuil committed 2a656ab on 8.x-1.x
    Issue #3088795 by vuil: Issues in code
    
vuil’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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