Drupal Coding Standards Issues | phpcs

Created on 31 January 2023, almost 2 years ago
Updated 20 October 2023, about 1 year ago

Problem/Motivation

Getting Following errors/warnings

$ phpcs --standard=Drupal views_filters_combine_field

FILE: ...esktop\task\views_filters_combine_field\js\views_filters_combine_fields.js
--------------------------------------------------------------------------------
FOUND 71 ERRORS AFFECTING 9 LINES
--------------------------------------------------------------------------------
   1 | ERROR | [x] End of line character is invalid; expected "\n" but found
     |       |     "\r\n"
  21 | ERROR | [x] Expected 1 space before "="; 0 found
  21 | ERROR | [x] Expected 1 space after "="; 0 found
  33 | ERROR | [x] Expected 1 space before "<"; 0 found
  33 | ERROR | [x] Expected 1 space after "<"; 0 found
  33 | ERROR | [x] Expected 1 space before "="; 0 found
  33 | ERROR | [x] Expected 1 space after "="; 0 found
  33 | ERROR | [x] Expected 1 space before "="; 0 found
  33 | ERROR | [x] Expected 1 space after "="; 0 found
  33 | ERROR | [x] Expected 1 space before "="; 0 found
  33 | ERROR | [x] Expected 1 space after "="; 0 found
  33 | ERROR | [x] Expected 1 space before "-"; 0 found
  33 | ERROR | [x] Expected 1 space after "-"; 0 found
  33 | ERROR | [x] Expected 1 space before "-"; 0 found
  33 | ERROR | [x] Expected 1 space after "-"; 0 found
  33 | ERROR | [x] Expected 1 space before "="; 0 found
  33 | ERROR | [x] Expected 1 space after "="; 0 found
  33 | ERROR | [x] Expected 1 space before ">"; 0 found
  33 | ERROR | [x] Expected 1 space after "<"; 0 found
  33 | ERROR | [x] Expected 1 space before "/"; 0 found
  33 | ERROR | [x] Expected 1 space after "/"; 0 found
  33 | ERROR | [x] Expected 1 space before ">"; 0 found
  33 | ERROR | [x] Expected 1 space after ">"; 0 found
  55 | ERROR | [x] Expected 1 space before "="; 0 found
  55 | ERROR | [x] Expected 1 space after "="; 0 found
  59 | ERROR | [x] Expected 1 space before "="; 0 found
  59 | ERROR | [x] Expected 1 space after "="; 0 found
  77 | ERROR | [x] Expected 1 space before "="; 0 found
  77 | ERROR | [x] Expected 1 space after "="; 0 found
  82 | ERROR | [x] Expected 1 space before "<"; 0 found
  82 | ERROR | [x] Expected 1 space after "<"; 0 found
  82 | ERROR | [x] Expected 1 space before "="; 0 found
  82 | ERROR | [x] Expected 1 space after "="; 0 found
  82 | ERROR | [x] Expected 1 space before "="; 0 found
  82 | ERROR | [x] Expected 1 space after "="; 0 found
  82 | ERROR | [x] Expected 1 space before "="; 0 found
  82 | ERROR | [x] Expected 1 space after "="; 0 found
  82 | ERROR | [x] Expected 1 space before "-"; 0 found
  82 | ERROR | [x] Expected 1 space after "-"; 0 found
  82 | ERROR | [x] Expected 1 space before "-"; 0 found
  82 | ERROR | [x] Expected 1 space after "-"; 0 found
  82 | ERROR | [x] Expected 1 space before "="; 0 found
  82 | ERROR | [x] Expected 1 space after "="; 0 found
  82 | ERROR | [x] Expected 1 space before "="; 0 found
  82 | ERROR | [x] Expected 1 space after "="; 0 found
  82 | ERROR | [x] Expected 1 space before "="; 0 found
  82 | ERROR | [x] Expected 1 space after "="; 0 found
  82 | ERROR | [x] Expected 1 space before ">"; 0 found
  82 | ERROR | [x] Expected 1 space after ">"; 0 found
  99 | ERROR | [x] Expected 1 space before "="; 0 found
  99 | ERROR | [x] Expected 1 space after "="; 0 found
 104 | ERROR | [x] Expected 1 space before "<"; 0 found
 104 | ERROR | [x] Expected 1 space after "<"; 0 found
 104 | ERROR | [x] Expected 1 space before "="; 0 found
 104 | ERROR | [x] Expected 1 space after "="; 0 found
 104 | ERROR | [x] Expected 1 space before "="; 0 found
 104 | ERROR | [x] Expected 1 space after "="; 0 found
 104 | ERROR | [x] Expected 1 space before "="; 0 found
 104 | ERROR | [x] Expected 1 space after "="; 0 found
 104 | ERROR | [x] Expected 1 space before "-"; 0 found
 104 | ERROR | [x] Expected 1 space after "-"; 0 found
 104 | ERROR | [x] Expected 1 space before "-"; 0 found
 104 | ERROR | [x] Expected 1 space after "-"; 0 found
 104 | ERROR | [x] Expected 1 space before "="; 0 found
 104 | ERROR | [x] Expected 1 space after "="; 0 found
 104 | ERROR | [x] Expected 1 space before "="; 0 found
 104 | ERROR | [x] Expected 1 space after "="; 0 found
 104 | ERROR | [x] Expected 1 space before "="; 0 found
 104 | ERROR | [x] Expected 1 space after "="; 0 found
 104 | ERROR | [x] Expected 1 space before ">"; 0 found
 104 | ERROR | [x] Expected 1 space after ">"; 0 found
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 71 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------


FILE: ...\task\views_filters_combine_field\src\Plugin\views\filter\CombineField.php
--------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------
 1 | ERROR | [x] End of line character is invalid; expected "\n" but found
   |       |     "\r\n"
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------

Time: 491ms; Memory: 10MB

Proposed resolution

Fix the errors and warnings.

🐛 Bug report
Status

RTBC

Version

2.0

Component

Code

Created by

🇮🇳India jay jangid Jaipur

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

Comments & Activities

Production build 0.71.5 2024