Coding Standard Issues

Created on 30 June 2025, 12 days ago

Problem/Motivation

FILE: /var/www/html/drupal9.3.0/web/modules/contrib/maxlength/js/maxlength.js
----------------------------------------------------------------------------------------------
FOUND 25 ERRORS AFFECTING 23 LINES
----------------------------------------------------------------------------------------------
13 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
21 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
31 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
42 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
61 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
92 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
140 | ERROR | [x] Case breaking statements must be followed by a single blank line
143 | ERROR | [x] Case breaking statements must be followed by a single blank line
160 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
174 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
191 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
191 | ERROR | [x] Expected 1 space before opening brace; found 0
207 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
240 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"
249 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
293 | ERROR | [x] Expected 1 space before "+"; 0 found
293 | ERROR | [x] Expected 1 space after "+"; 0 found
296 | ERROR | [x] Case breaking statements must be followed by a single blank line
315 | ERROR | [x] Case breaking statements must be followed by a single blank line
336 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
346 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"
380 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
383 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
398 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
400 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
----------------------------------------------------------------------------------------------

FILE: /var/www/html/drupal9.3.0/web/modules/contrib/maxlength/tests/src/FunctionalJavascript/MaxLengthCustomLinkWidgetTest.php
--------------------------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
--------------------------------------------------------------------------------------------------------------------------------
3 | ERROR | [x] Expected strict_types=1, found strict_types = 1.
9 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\field\Entity\FieldStorageConfig.
--------------------------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/drupal9.3.0/web/modules/contrib/maxlength/tests/src/FunctionalJavascript/MaxLengthCustomWidgetTest.php
--------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 21 WARNINGS AFFECTING 7 LINES
--------------------------------------------------------------------------------------------------------------------------
89 | WARNING | [ ] Line exceeds 80 characters; contains 103 characters
89 | WARNING | [x] There must be no blank line following an inline comment
89 | WARNING | [ ] There must be no blank line following an inline comment
95 | WARNING | [ ] Line exceeds 80 characters; contains 102 characters
95 | WARNING | [x] There must be no blank line following an inline comment
95 | WARNING | [ ] There must be no blank line following an inline comment
104 | WARNING | [ ] Line exceeds 80 characters; contains 102 characters
104 | WARNING | [x] There must be no blank line following an inline comment
104 | WARNING | [ ] There must be no blank line following an inline comment
113 | WARNING | [ ] Line exceeds 80 characters; contains 103 characters
113 | WARNING | [x] There must be no blank line following an inline comment
113 | WARNING | [ ] There must be no blank line following an inline comment
118 | WARNING | [ ] Line exceeds 80 characters; contains 103 characters
118 | WARNING | [x] There must be no blank line following an inline comment
118 | WARNING | [ ] There must be no blank line following an inline comment
124 | WARNING | [ ] Line exceeds 80 characters; contains 102 characters
124 | WARNING | [x] There must be no blank line following an inline comment
124 | WARNING | [ ] There must be no blank line following an inline comment
133 | WARNING | [ ] Line exceeds 80 characters; contains 102 characters
133 | WARNING | [x] There must be no blank line following an inline comment
133 | WARNING | [ ] There must be no blank line following an inline comment
------------------------------------------------------------------------------------------------------------------------

📌 Task
Status

Active

Version

3.0

Component

Code

Created by

🇮🇳India Rohit Rana

Live updates comments and jobs are added and updated live.
  • Coding standards

    It involves compliance with, or the content of coding standards. Requires broad community agreement.

Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024