-
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
Augment EOL Check to catch missing newline at EOF #496
Comments
Hi @dilijev, Are you still looking for a fix for this issue? |
@srs88 Sure! Want to take a crack at it? |
Yes! I am a student trying to learn the codebase. Can you give me some pointers to start with? |
For this one you'll basically just need to look at Files: check_*.sh You just need to follow the patterns there, come up with a way to detect whether each (non-excluded) file has the last character in the file as a line feed (0x0a). This issue suggests such a check would make sense as additional logic in The list of files (and excluded files) are computed here: https://github.com/Microsoft/ChakraCore/blob/master/jenkins/check_eol.sh#L18 |
When you submit a PR, your check will run automatically because Jenkins is already configured to run As part of your change you'll have to correct any files which are incorrect so that you pass your own new check! You'll also have confirmation about whether it's working. Please try to verify your check by running it on your own computer first. |
Thank you for the tips. I will try and get back to you. |
@srs88 wondering if you've had any success? |
Hi @dilijev. My apologies. I got busy with my course work and missed this. I will try this today. |
@srs88 no pressure! :) Let us know if you need any help. Feel free to reach out on https://gitter.im/Microsoft/ChakraCore |
I've made a PR to respond to this #5583 |
I think you mean #5583 |
@MSLaguana indeed, sorry for the typo and thanks for the correction (fixed above) |
Ensure that the check includes exceptions for tool-generated (or tool-modified) files like .sln and .vcxproj.
The text was updated successfully, but these errors were encountered: