Drupal Coding Standards Issues | phpcs

Created on 6 February 2023, about 2 years ago
Updated 9 July 2024, 8 months ago

Problem/Motivation

Getting Following errors/warnings

$ phpcs --standard=Drupal views_autosubmit

FILE: C:\Users\Admin\Desktop\task\views_autosubmit\js\views_autosubmit.js
--------------------------------------------------------------------------------
FOUND 5 ERRORS AFFECTING 5 LINES
--------------------------------------------------------------------------------
  1 | ERROR | [x] End of line character is invalid; expected "\n" but found
    |       |     "\r\n"
  8 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
 10 | ERROR | [x] Expected 0 spaces before opening parenthesis; 1 found
 49 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
 58 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 5 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------


FILE: ...Desktop\task\views_autosubmit\src\Plugin\views\exposed_form\Autosubmit.php
--------------------------------------------------------------------------------
FOUND 4 ERRORS AFFECTING 4 LINES
--------------------------------------------------------------------------------
  1 | ERROR | [x] End of line character is invalid; expected "\n" but found
    |       |     "\r\n"
 22 | ERROR | [ ] Doc comment short description must start with a capital
    |       |     letter
 33 | ERROR | [ ] Doc comment short description must start with a capital
    |       |     letter
 47 | ERROR | [ ] Doc comment short description must start with a capital
    |       |     letter
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------

Time: 437ms; Memory: 8MB

Proposed resolution

Fix the errors and warnings.

🐛 Bug report
Status

RTBC

Version

1.0

Component

Code

Created by

🇮🇳India jay jangid Jaipur

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