Problem/Motivation

Getting Following errors/warnings

$ phpcs --standard=Drupal collapsible_fields

FILE: C:\Users\Admin\Desktop\task\collapsible_fields\js\form-error-open.js
--------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
--------------------------------------------------------------------------------
  1 | ERROR | [x] End of line character is invalid; expected "\n" but found
    |       |     "\r\n"
 10 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but
    |       |     found "true"
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------


FILE: C:\Users\Admin\Desktop\task\collapsible_fields\src\SettingsManager.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: 457ms; Memory: 8MB

Proposed resolution

Fix the errors and warnings.

CommentFileSizeAuthor
#4 3336413-before.png233.91 KBrajneeshb
#4 3336413-after.png315.15 KBrajneeshb
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.

rajneeshb’s picture

StatusFileSize
new315.15 KB
new233.91 KB

Reviewed MR !3 , Reported coding standard fixed. Attaching screenshot for reference

silvi.addweb’s picture

Status: Needs review » Reviewed & tested by the community