Drupal Coding Standards Issues | phpcs

Created on 24 January 2023, almost 2 years ago
Updated 14 July 2024, 4 months ago

Problem/Motivation

Getting Following errors/warnings

$ phpcs --standard=Drupal html_script_formatter

FILE: ...l_script_formatter\src\Plugin\Field\FieldFormatter\HtmlScriptFormatter.php
--------------------------------------------------------------------------------
FOUND 1 ERROR AND 3 WARNINGS AFFECTING 4 LINES
--------------------------------------------------------------------------------
  1 | ERROR   | [x] End of line character is invalid; expected "\n" but found
    |         |     "\r\n"
  5 | WARNING | [x] Unused use statement
 52 | WARNING | [x] There must be no blank line following an inline comment
 66 | WARNING | [x] A comma should follow the last multiline array item. Found:
    |         |     )
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 4 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------

Time: 449ms; Memory: 8MB

Proposed resolution

Fix the errors and warnings.

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇮🇳India Jay Jangid

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

Comments & Activities

Production build 0.71.5 2024