Fix the issues reported by phpcs.

Created on 25 April 2023, about 1 year ago

Problem/Motivation

FILE: ...xampp\htdocs\backendassignment\web\modules\contrib\ray_debugger\ray_debugger_alpinejs\ray_debugger_alpinejs.module
------------------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] Missing file doc comment
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------------------

FILE: C:\xampp\htdocs\backendassignment\web\modules\contrib\ray_debugger\ray_debugger_js\ray_debugger_js.module
---------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 1 LINE
---------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] Missing file doc comment
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
---------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------

FILE: C:\xampp\htdocs\backendassignment\web\modules\contrib\ray_debugger\ray_debugger_twig\src\RayTwigExtension.php
----------------------------------------------------------------------------------------------------------------------
FOUND 11 ERRORS AFFECTING 9 LINES
----------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] The PHP open tag must be followed by exactly one blank line
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
9 | ERROR | [ ] Doc comment short description must be on a single line, further text should be a separate paragraph
13 | ERROR | [ ] Missing short description in doc comment
19 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null"
19 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null"
20 | ERROR | [x] Expected 1 space after IF keyword; 0 found
22 | ERROR | [x] Expected newline after closing brace
25 | ERROR | [x] Expected newline after closing brace
33 | ERROR | [ ] Missing short description in doc comment
40 | ERROR | [x] Expected 1 newline at end of file; 2 found
----------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 8 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------------------

FILE: C:\xampp\htdocs\backendassignment\web\modules\contrib\ray_debugger\README.md
------------------------------------------------------------------------------------------------
FOUND 4 ERRORS AND 11 WARNINGS AFFECTING 14 LINES
------------------------------------------------------------------------------------------------
1 | ERROR | [x] Missing file doc comment
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
16 | WARNING | [ ] Line exceeds 80 characters; contains 116 characters
17 | WARNING | [ ] Line exceeds 80 characters; contains 118 characters
18 | WARNING | [ ] Line exceeds 80 characters; contains 120 characters
41 | WARNING | [ ] Line exceeds 80 characters; contains 86 characters
50 | WARNING | [ ] Line exceeds 80 characters; contains 90 characters
67 | WARNING | [ ] Line exceeds 80 characters; contains 99 characters
78 | WARNING | [ ] Line exceeds 80 characters; contains 107 characters
107 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
112 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"
114 | WARNING | [ ] Code after the RETURN statement on line 106 cannot be executed
115 | WARNING | [ ] Code after the RETURN statement on line 106 cannot be executed
116 | WARNING | [ ] Code after the RETURN statement on line 106 cannot be executed
117 | WARNING | [ ] Code after the RETURN statement on line 106 cannot be executed
------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 4 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------

Time: 701ms; Memory: 6MB

Steps to reproduce

Run the phpcs command on the module.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

📌 Task
Status

RTBC

Version

1.0

Component

Code

Created by

🇮🇳India sidharth_soman Bangalore

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

Comments & Activities

  • Issue created by @sidharth_soman
  • @sidharth_soman opened merge request.
  • Issue was unassigned.
  • Status changed to Needs review about 1 year ago
  • 🇮🇳India sidharth_soman Bangalore

    I've issued an MR which fixes all the issues except for those related to editing/filling out documentation and doc comments (which should ideally be resolved by the maintainers with in-depth knowledge of the module). I've issued it against the main branch.

    Please review.

  • Status changed to RTBC about 1 year ago
  • 🇵🇭Philippines kenyoOwen

    Hi sidharth_soman

    I applied your MR and confirmed that it resolved the issues that isn't to editing/filling out documentation and doc comments. Please see the screenshots attached.

    For your review.
    Thank you.

Production build 0.69.0 2024