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.

CommentFileSizeAuthor
#5 3337898-5.patch3.22 KBmukesh88
Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

Jay Jangid created an issue. See original summary.

jay jangid’s picture

Assigned: jay jangid » Unassigned
Status: Active » Needs review

Created MR ,please review.

Thank you.

jitesh_1’s picture

Status: Needs review » Needs work

Hello @Jay Jangid,
After applying mr the module is not working.

mukesh88’s picture

StatusFileSize
new3.22 KB

PHPCs issue fixes

mukesh88’s picture

Status: Needs work » Needs review
vandna b’s picture

#5 patch is failed to apply.

keshavv’s picture

Status: Needs review » Needs work

@mukesh88 #5 patch Failed to apply. Due to some recent code changes.

I reviewed the MR as well and confirmed that there are some unnecessary changes. Can you please update the MR instead of creating a patch or can you please reroll the patch with the latest code?

Thank you.

nitin_lama made their first commit to this issue’s fork.

zkhan.aamir’s picture

Status: Needs work » Needs review

Issue summary updated

chetan 11’s picture

Assigned: Unassigned » chetan 11
chetan 11’s picture

Assigned: chetan 11 » Unassigned
Status: Needs review » Reviewed & tested by the community

Hi,
The given MR #9 is resolving all the phpcs error on the above module.
Moving this to +RTBC.
Thanks