Drupal Coding Standard issues

Created on 27 March 2020, over 4 years ago
Updated 29 March 2024, 3 months ago

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

FILE: /var/www/html/drupal-contrib/modules/contrib/custom_nid/README.txt
------------------------------------------------------------------------
FOUND 0 ERRORS AND 3 WARNINGS AFFECTING 3 LINES
------------------------------------------------------------------------
3 | WARNING | Line exceeds 80 characters; contains 162 characters
7 | WARNING | Line exceeds 80 characters; contains 93 characters
8 | WARNING | Line exceeds 80 characters; contains 92 characters
------------------------------------------------------------------------

FILE: /var/www/html/drupal-contrib/modules/contrib/custom_nid/custom_nid.module
------------------------------------------------------------------------------------------------
FOUND 45 ERRORS AFFECTING 19 LINES
------------------------------------------------------------------------------------------------
4 | ERROR | [x] The second line in the file doc comment must be "@file"
9 | ERROR | [x] Missing function doc comment
10 | ERROR | [x] Whitespace found at end of line
12 | ERROR | [x] There should be no white space after an opening "("
12 | ERROR | [x] There should be no white space after an opening "("
12 | ERROR | [x] There should be no white space before a closing ")"
12 | ERROR | [x] There should be no white space before a closing ")"
14 | ERROR | [x] Expected 1 space after IF keyword; 0 found
14 | ERROR | [x] There should be no white space after an opening "("
14 | ERROR | [x] There should be no white space after an opening "("
14 | ERROR | [x] There should be no white space before a closing ")"
14 | ERROR | [x] There should be no white space before a closing ")"
15 | ERROR | [x] Short array syntax must be used to define arrays
34 | ERROR | [x] Expected 1 space after IF keyword; 0 found
34 | ERROR | [x] There should be no white space after an opening "("
34 | ERROR | [x] There should be no white space before a closing ")"
35 | ERROR | [x] Expected 1 space after IF keyword; 0 found
35 | ERROR | [x] There should be no white space after an opening "("
35 | ERROR | [x] There should be no white space after an opening "("
35 | ERROR | [x] There should be no white space before a closing ")"
35 | ERROR | [x] There should be no white space before a closing ")"
40 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 4
40 | ERROR | [x] Object operator not indented correctly; expected 6 spaces but found 4
41 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 4
41 | ERROR | [x] Expected one space after the comma, 0 found
42 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 4
43 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 4
44 | ERROR | [x] Expected 1 space after IF keyword; 0 found
44 | ERROR | [x] There should be no white space after an opening "("
44 | ERROR | [x] There should be no white space before a closing ")"
50 | ERROR | [x] Missing function doc comment
50 | ERROR | [x] Expected 0 spaces after opening parenthesis; 1 found
50 | ERROR | [x] There should be no white space after an opening "("
50 | ERROR | [x] There should be no white space before a closing ")"
50 | ERROR | [x] Expected 0 spaces before closing parenthesis; 1 found
58 | ERROR | [x] Namespaced classes/interfaces/traits should be referenced with use statements
59 | ERROR | [x] Expected 1 space after IF keyword; 0 found
59 | ERROR | [x] There should be no white space after an opening "("
59 | ERROR | [x] There should be no white space before a closing ")"
60 | ERROR | [x] There should be no white space after an opening "("
60 | ERROR | [x] There should be no white space after an opening "("
60 | ERROR | [x] There should be no white space before a closing ")"
60 | ERROR | [x] There should be no white space before a closing ")"
61 | ERROR | [x] There should be no white space before a closing ")"
64 | ERROR | [x] Expected 1 newline at end of file; 0 found
------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 45 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------

🐛 Bug report
Status

Fixed

Version

1.2

Component

Code

Created by

🇮🇳India prabha1997

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

Comments & Activities

Not all content is available!

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

Production build 0.69.0 2024