-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
repo contains 107 files with windows CRLF line endings #1024
Comments
Hello. I am new to perspective and would love to contribute.
If I got this right- there are 107 files ending with "\r\n" instead of a "\n" |
@MisterAwesome23 correct |
I've replaced all the ending by unix endings now.
This now results in 0 files. Link to entire changes- Creating a pull for this. "we require a CLA for the following people : (@MisterAwesome23)" |
Thanks for the report! We've gotten a few "ctrl-f" style fixes for this, so it's worth clarifying what we would consider a proper fix for this issue. It's not quite enough to simply remove the CRLF characters - we don't want future ones committed either. Our linter |
I've submitted a pull request #1075 to modify the eslint settings and change the .gitattributes file so that .js files aren't altered to have CRLF line endings on checkout on a windows machine as documented here. The pull request doesn't change the existing files, and at least on my machine using |
Also, some additional configuration on windows machines might be needed to avoid it overall: https://warlord0blog.wordpress.com/2019/09/04/vscode-crlf-vs-lf-battle/ |
Bug Report
There are 107 files in the repo that contain CRLF line endings as opposed to LF.
Steps to Reproduce:
cd perspective
find . | grep -v dist | grep -v node_modules | xargs file | grep 'CRLF' | sed 's/:.*$//'
Expected Result:
above one-liner should return zero lines
Actual Result:
it returns 107 files with windows line endings
The text was updated successfully, but these errors were encountered: