Problem/Motivation
FILE: D:\xampp\htdocs\drupal_10\web\modules\contrib\aichat\aichat.info.yml
--------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------
4 | ERROR | [x] Expected 1 newline at end of file; 0 found
--------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------
FILE: D:\xampp\htdocs\drupal_10\web\modules\contrib\aichat\aichat.module
----------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 1 LINE
----------------------------------------------------------------------------------
1 | ERROR | [x] Missing file doc comment
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
----------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------
Steps to reproduce
Use the below command with arguments.
phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,info,txt,md,css,js,yml aichat/
Proposed resolution
Fix the phpcs issue
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 3367843-2.patch | 518 bytes | arti_parmar |
Comments
Comment #2
arti_parmar commentedKindly review patch.
Comment #3
mindaugasd commentedThank you. Such a small module and already 3 errors :)
That is a good start - let's keep the module tidy from the very beginning.
I will commit the patch later today.
Comment #5
mindaugasd commentedComment #7
mindaugasd commented