Drupal Coding Standards Issues | phpcs

Created on 17 January 2023, almost 2 years ago
Updated 23 March 2023, over 1 year ago

Problem/Motivation

Getting following error/warnings

FILE: /var/www/html/modules/contrib/content_export_csv/content_export_csv.links.action.yml
------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
------------------------------------------------------------------------------------------
6 | ERROR | [x] Expected 1 newline at end of file; 0 found
------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------

FILE: /var/www/html/modules/contrib/content_export_csv/README.md
----------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
----------------------------------------------------------------------
53 | WARNING | Line exceeds 80 characters; contains 87 characters
61 | WARNING | Line exceeds 80 characters; contains 83 characters
----------------------------------------------------------------------

FILE: /var/www/html/modules/contrib/content_export_csv/src/ContentExport.php
--------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
--------------------------------------------------------------------------------------------------------
95 | WARNING | Node::loadMultiple calls should be avoided in classes, use dependency injection instead
--------------------------------------------------------------------------------------------------------

Time: 2.47 secs; Memory: 6MB

Steps to reproduce

Run following command

phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml modules/contrib/content_export_csv/

Proposed resolution

Above error/warnings need to be fixed

🐛 Bug report
Status

Fixed

Version

4.0

Component

Code

Created by

🇮🇳India samit.310@gmail.com

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.71.5 2024