Problem/Motivation

Getting following error/warnings:

FILE: D:\xampp\htdocs\project_10\web\modules\contrib\sdc_styleguide\README.md
-----------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-----------------------------------------------------------------------------
 29 | ERROR | [x] Expected 1 newline at end of file; 2 found
-----------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------


FILE: D:\xampp\htdocs\project_10\web\modules\contrib\sdc_styleguide\sdc_styleguide.module
-----------------------------------------------------------------------------------------
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
-----------------------------------------------------------------------------------------


FILE: D:\xampp\htdocs\project_10\web\modules\contrib\sdc_styleguide\src\Form\SDCExplorerForm.php
------------------------------------------------------------------------------------------------
FOUND 6 ERRORS AFFECTING 5 LINES
------------------------------------------------------------------------------------------------
   1 | ERROR | [x] The PHP open tag must be followed by exactly one blank line
   1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
  22 | ERROR | [x] Missing function doc comment
 124 | ERROR | [x] Concat operator must be surrounded by a single space
 147 | ERROR | [x] Missing function doc comment
 151 | ERROR | [x] Missing function doc comment
------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 6 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------

Steps to reproduce

Run following command:

phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml sdc_styleguide/

Proposed resolution

Above error/warnings need to be fixed.

CommentFileSizeAuthor
#2 3376055-2.patch1.62 KBarti_parmar
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:

  • 3376055- Comparecompare

Comments

arti_parmar created an issue. See original summary.

arti_parmar’s picture

Assigned: arti_parmar » Unassigned
Status: Active » Needs review
StatusFileSize
new1.62 KB

Kindly review patch.

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

alemadlei’s picture

Version: » 1.0.x-dev

There have been multiple changes and the original code no longers works. As preparation for opting in the security advisory, I've addressed these and a bunch others sniffs.

These are all fixed in the dev branches.

alemadlei’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.