ikappas / vscode-phpcs

PHP CodeSniffer for Visual Studio Code
MIT License
128 stars 56 forks source link

Shows this error in every php file. Tried to fix in many ways but unable to fix this. #105

Closed iyashpal closed 6 years ago

iyashpal commented 6 years ago

[phpcs] End of line character is invalid; expected "\n" but found "\r\n" [phpcs] Whitespace found at end of line

code

ikappas commented 6 years ago

@Yash-Pal This looks like a .gitattributes issue. Please check your git configuration for line endings on checkout/checkin.

iyashpal commented 6 years ago

Can you please help me out to fix this. I am using windows 10 OS.

Thanks!

ah2048 commented 6 years ago

@Yash-Pal Just type "Change End of Line Sequence" in command palette and select "LF"

iyashpal commented 6 years ago

@abdallahamin Thank you for your kind help.