Drupal Coding Standard issues

Created on 6 April 2020, over 4 years ago
Updated 25 July 2024, about 2 months ago

FILE: /var/www/html/drupal-contrib/modules/contrib/teamtailor/src/Form/TeamtailorSettings.php
---------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
---------------------------------------------------------------------------------------------------------
11 | ERROR | [x] Additional blank lines found at end of doc comment
86 | ERROR | [ ] Inline doc block comments are not allowed; use "/* Comment */" or "// Comment" instead
---------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------

FILE: /var/www/html/drupal-contrib/modules/contrib/teamtailor/src/Controller/CandidatesListController.php
---------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AND 1 WARNING AFFECTING 3 LINES
---------------------------------------------------------------------------------------------------------
5 | WARNING | [x] Unused use statement
8 | ERROR | [x] Missing class doc comment
10 | ERROR | [x] Missing function doc comment
---------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------

FILE: /var/www/html/drupal-contrib/modules/contrib/teamtailor/src/TeamtailorController.php
------------------------------------------------------------------------------------------
FOUND 15 ERRORS AFFECTING 15 LINES
------------------------------------------------------------------------------------------
7 | ERROR | [ ] Missing short description in doc comment
11 | ERROR | [x] Whitespace found at end of line
12 | ERROR | [ ] Missing member variable doc comment
13 | ERROR | [ ] Missing member variable doc comment
14 | ERROR | [ ] Missing member variable doc comment
15 | ERROR | [ ] Missing short description in doc comment
18 | ERROR | [x] Expected 1 blank line before function; 0 found
24 | ERROR | [ ] Missing short description in doc comment
32 | ERROR | [x] Missing function doc comment
51 | ERROR | [x] Missing function doc comment
57 | ERROR | [x] Missing function doc comment
67 | ERROR | [x] Missing function doc comment
73 | ERROR | [ ] Missing short description in doc comment
101 | ERROR | [x] Expected 1 blank line after function; 0 found
102 | ERROR | [x] The closing brace for the class must have an empty line before it
------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 8 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------

FILE: /var/www/html/drupal-contrib/modules/contrib/teamtailor/teamtailor.module
-------------------------------------------------------------------------------
FOUND 1 ERROR AND 1 WARNING AFFECTING 2 LINES
-------------------------------------------------------------------------------
1 | ERROR | [x] Missing file doc comment
3 | WARNING | [x] Unused use statement
-------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------

FILE: /var/www/html/drupal-contrib/modules/contrib/teamtailor/teamtailor.services.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
-------------------------------------------------------------------------------------

FILE: /var/www/html/drupal-contrib/modules/contrib/teamtailor/teamtailor.info.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
---------------------------------------------------------------------------------

FILE: /var/www/html/drupal-contrib/modules/contrib/teamtailor/teamtailor.links.menu.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
---------------------------------------------------------------------------------------

FILE: /var/www/html/drupal-contrib/modules/contrib/teamtailor/teamtailor.routing.yml
------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
------------------------------------------------------------------------------------
14 | ERROR | [x] Expected 1 newline at end of file; 0 found
------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇮🇳India prabha1997

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • Merge request !2Fixed phpcs issues. → (Merged) created by Unnamed author
  • Issue was unassigned.
  • 🇮🇳India dev2.addweb
    FILE: /home/addweb/patches/teamtailor-3125180/teamtailor.routing.yml
    ----------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    ----------------------------------------------------------------------
     14 | ERROR | [x] Expected 1 newline at end of file; 0 found
    ----------------------------------------------------------------------
    PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
    ----------------------------------------------------------------------
    
    
    FILE: /home/addweb/patches/teamtailor-3125180/teamtailor.module
    -----------------------------------------------------------------------------------------------------------------------------------------------
    FOUND 2 ERRORS AND 1 WARNING AFFECTING 3 LINES
    -----------------------------------------------------------------------------------------------------------------------------------------------
     1 | ERROR   | [x] Missing file doc comment
     3 | WARNING | [x] Unused use statement
     8 | ERROR   | [ ] All functions defined in a module file must be prefixed with the module's name, found "test" but expected "teamtailor_test"
    -----------------------------------------------------------------------------------------------------------------------------------------------
    PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
    -----------------------------------------------------------------------------------------------------------------------------------------------
    
    
    FILE: /home/addweb/patches/teamtailor-3125180/teamtailor.info.yml
    ---------------------------------------------------------------------------------------
    FOUND 1 ERROR AND 1 WARNING AFFECTING 2 LINES
    ---------------------------------------------------------------------------------------
     1 | WARNING | [ ] "core_version_requirement" property is missing in the info.yml file
     5 | ERROR   | [x] Expected 1 newline at end of file; 0 found
    ---------------------------------------------------------------------------------------
    PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
    ---------------------------------------------------------------------------------------
    
    
    FILE: /home/addweb/patches/teamtailor-3125180/src/Form/TeamtailorSettings.php
    ---------------------------------------------------------------------------------------------------------------------
    FOUND 2 ERRORS AND 1 WARNING AFFECTING 2 LINES
    ---------------------------------------------------------------------------------------------------------------------
     11 | WARNING | [ ] The class short comment should describe what the class does and not simply repeat the class name
     11 | ERROR   | [x] Additional blank lines found at end of doc comment
     86 | ERROR   | [ ] Inline doc block comments are not allowed; use "/* Comment */" or "// Comment" instead
    ---------------------------------------------------------------------------------------------------------------------
    PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
    ---------------------------------------------------------------------------------------------------------------------
    
    
    FILE: /home/addweb/patches/teamtailor-3125180/src/Controller/CandidatesListController.php
    ----------------------------------------------------------------------------------------------------------------------------------
    FOUND 3 ERRORS AND 2 WARNINGS AFFECTING 5 LINES
    ----------------------------------------------------------------------------------------------------------------------------------
      5 | WARNING | [x] Unused use statement
      6 | ERROR   | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Core\Controller\ControllerBase.
      8 | ERROR   | [x] Missing class doc comment
     10 | ERROR   | [x] Missing function doc comment
     12 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead
    ----------------------------------------------------------------------------------------------------------------------------------
    PHPCBF CAN FIX THE 4 MARKED SNIFF VIOLATIONS AUTOMATICALLY
    ----------------------------------------------------------------------------------------------------------------------------------
    
    
    FILE: /home/addweb/patches/teamtailor-3125180/src/TeamtailorController.php
    --------------------------------------------------------------------------------------------------
    FOUND 15 ERRORS AND 5 WARNINGS AFFECTING 20 LINES
    --------------------------------------------------------------------------------------------------
       7 | ERROR   | [ ] Missing short description in doc comment
       8 | WARNING | [x] '@TODO: add comment.' should match the format '@todo Fix problem X here.'
      11 | ERROR   | [x] Whitespace found at end of line
      12 | ERROR   | [ ] Missing member variable doc comment
      13 | ERROR   | [ ] Missing member variable doc comment
      14 | ERROR   | [ ] Missing member variable doc comment
      15 | ERROR   | [ ] Missing short description in doc comment
      16 | WARNING | [x] '@TODO: add comment.' should match the format '@todo Fix problem X here.'
      18 | ERROR   | [x] Expected 1 blank line before function; 0 found
      20 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead
      24 | ERROR   | [ ] Missing short description in doc comment
      25 | WARNING | [x] '@TODO: complete this.' should match the format '@todo Fix problem X here.'
      32 | ERROR   | [x] Missing function doc comment
      51 | ERROR   | [x] Missing function doc comment
      57 | ERROR   | [x] Missing function doc comment
      67 | ERROR   | [x] Missing function doc comment
      73 | ERROR   | [ ] Missing short description in doc comment
      74 | WARNING | [x] '@TODO: complete this.' should match the format '@todo Fix problem X here.'
     101 | ERROR   | [x] Expected 1 blank line after function; 0 found
     102 | ERROR   | [x] The closing brace for the class must have an empty line before it
    --------------------------------------------------------------------------------------------------
    PHPCBF CAN FIX THE 12 MARKED SNIFF VIOLATIONS AUTOMATICALLY
    --------------------------------------------------------------------------------------------------
    
    
    FILE: /home/addweb/patches/teamtailor-3125180/teamtailor.services.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
    ----------------------------------------------------------------------
    
    
    FILE: /home/addweb/patches/teamtailor-3125180/templates/candidates-page.html.twig
    ---------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    ---------------------------------------------------------------------------------
     30 | ERROR | [x] Expected 1 newline at end of file; 0 found
    ---------------------------------------------------------------------------------
    PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
    ---------------------------------------------------------------------------------
    
    
    FILE: /home/addweb/patches/teamtailor-3125180/teamtailor.links.menu.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
    -----------------------------------------------------------------------
    

    All the errors and warnings mentioned above has been fixed.

  • Status changed to RTBC 2 months ago
  • 🇮🇳India bhaveshdas

    I have tested MR!2 and it is working properly with no errors found. I will move it forward to RTBC.

  • Status changed to Fixed 2 months ago
  • 🇮🇳India dev22.addweb

    PR has been merged, thanks for the help.

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

Production build 0.71.5 2024