Drupal Coding Standards Issues | phpcs

Created on 27 January 2023, about 2 years ago
Updated 8 May 2024, 12 months ago

Problem/Motivation

FILE: /Users/sahil.goyal/Documents/MySites/10.1.x/drupal/modules/contrib/moderation_team/README.md
--------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 8 WARNINGS AFFECTING 8 LINES
--------------------------------------------------------------------------------------------------
1 | WARNING | Line exceeds 80 characters; contains 256 characters
9 | WARNING | Line exceeds 80 characters; contains 208 characters
16 | WARNING | Line exceeds 80 characters; contains 86 characters
24 | WARNING | Line exceeds 80 characters; contains 107 characters
25 | WARNING | Line exceeds 80 characters; contains 162 characters
28 | WARNING | Line exceeds 80 characters; contains 131 characters
29 | WARNING | Line exceeds 80 characters; contains 141 characters
30 | WARNING | Line exceeds 80 characters; contains 121 characters
--------------------------------------------------------------------------------------------------

FILE: /Users/sahil.goyal/Documents/MySites/10.1.x/drupal/modules/contrib/moderation_team/src/ViewsData.php
----------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
----------------------------------------------------------------------------------------------------------
9 | ERROR | [x] Missing class doc comment
13 | ERROR | [x] Missing function doc comment
----------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------

FILE: /Users/sahil.goyal/Documents/MySites/10.1.x/drupal/modules/contrib/moderation_team/src/Plugin/views/argument/ModerationTeam.php
-------------------------------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
-------------------------------------------------------------------------------------------------------------------------------------
15 | ERROR | [ ] Missing short description in doc comment
31 | ERROR | [x] Missing function doc comment
-------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------------------------------

Steps to reproduce

run the following command: phpcs --standard="Drupal,DrupalPractice" --extensions=php,module,inc,install,test,profile,theme,info,txt,md,yml /drupal/modules/contrib/moderation_team

Proposed resolution

Fix all the coding standard issues.

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Fixed

Version

3.0

Component

Code

Created by

🇮🇳India sahil.goyal

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024