Drupal Coding Standards Issues | phpcs

Created on 31 January 2023, over 1 year ago
Updated 15 March 2023, over 1 year ago

Problem/Motivation

FILE: /Users/sahil.goyal/Documents/MySites/10.1.x/drupal/modules/contrib/slimbox2/slimbox2.module
------------------------------------------------------------------------------------------------------------------------------------
FOUND 6 ERRORS AND 3 WARNINGS AFFECTING 9 LINES
------------------------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] Missing file doc comment
4 | ERROR | [x] There must be one blank line after the last USE statement; 0 found;
7 | ERROR | [x] Doc comment short description must end with a full stop
10 | WARNING | [ ] Line exceeds 80 characters; contains 81 characters
11 | WARNING | [ ] Line exceeds 80 characters; contains 92 characters
14 | WARNING | [ ] @author tags are not usually used in Drupal, because over time multiple contributors will touch the code anyway
17 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 1
34 | ERROR | [x] Case breaking statement indented incorrectly; expected 6 spaces, found 4
39 | ERROR | [x] Short array syntax must be used to define arrays
------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 6 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------------------------------

FILE: /Users/sahil.goyal/Documents/MySites/10.1.x/drupal/modules/contrib/slimbox2/slimbox2.info.yml
-----------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
-----------------------------------------------------------------------------------------------------------
1 | WARNING | Remove "version" from the info file, it will be added by drupal.org packaging automatically
-----------------------------------------------------------------------------------------------------------

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

๐Ÿ› Bug report
Status

Closed: outdated

Version

1.3

Component

Code

Created by

๐Ÿ‡ฎ๐Ÿ‡ณIndia sahil.goyal

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

Comments & Activities

Production build 0.69.0 2024