-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
Failed due to line endings #926
Comments
PHP coding standard that we use requires UNIX-style (\n) line endings. If you use any modern IDE, you should be able to configure it, so it will use \n line endings. |
@antonmakarenko Yes you are right. In NetBeans 8.0 I am able to configure line endings but when i push changes it is automatically translated to Windows style :/ I will try to find a way tomorrow :) There must be something. |
make sure your
will force normalization of lineendings. You may want to use Maybe the team would feel like providing a |
Thanks. I found solution here: https://help.github.com/articles/dealing-with-line-endings/ |
@mage2-team Will it be possible to access report file somehow form Travis CI test about PHP coding standards ? There are things that I can't test locally (or my coding standards tests are passing correctly) while Travis still throws TEST_SUITE=static_annotation with PHP 5 I was able to change all line endings to LF when pushing to repo with cache update so CRLF/LF issue is no longer an issue (or shouldn't be) and checked code with recent coding standards (incl. Zend and PEAR). But it's still failing and I wish to know what is the case exactly. Solved. Issue was about either 80cheracters long line (but there was a code over 80 char already) or wrong array declaration. I used array() and it suppose to be [] ;) |
Hi @snky1987. Thank you for your report. The fix will be available with the upcoming 2.3.4 release. |
Could someone explain me how crucial line endings are that Travis keep throwing an error because in column 1 line 1 /n is expected and /n/r is found ?
If its not really important is it possible to exclude line endings form PHP Standards check please ?
Or if not then please explain how to fix it (I code in Windows 7/8 so far)
The text was updated successfully, but these errors were encountered: