-
Notifications
You must be signed in to change notification settings - Fork 24.5k
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
Fix whitespace and newline at EOF #35939
Conversation
|
The changes look like they are in random places all over the code. @cortinico , it probably could have been a land-blocking thing whenever it was committed, to begin with?.. |
@rshest has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
Base commit: c195487 |
@rshest Agree. This is something that arcanist should have catched though. We don't have pre-commit hooks in OSS for new-lines or whitespace sadly. |
Summary: Just a couple of minor fixes in the `template/` folder: - Remove a trailing space in `rn_edit_text_material.xml` (this was the _only_ trailing space present in a newly generated RN project), which results in the check against the empty tree object failing: ``` $ git diff --check 4b825dc -- template/ template/android/app/src/main/res/drawable/rn_edit_text_material.xml:23: trailing whitespace. + <!-- ``` - Add missing newline at end of file in `.watchmanconfig` and `app.json` - Both are text files, and each line (including the last) is expected to end with a newline character (flagged by Git, and also visible as a warning on GitHub): <img width="369" alt="image" src="https://user-images.githubusercontent.com/743291/214195867-81c8e622-2130-44d4-bdaf-588e3510c109.png"> ## Changelog [GENERAL] [FIXED] - Fix whitespace and newline at EOF in template Pull Request resolved: facebook#35939 Reviewed By: christophpurrer Differential Revision: D42698256 Pulled By: rshest fbshipit-source-id: 765fd41d4f501aec578755c754ea0ecb290ae6ca
Just a couple of minor fixes in the
template/
folder:rn_edit_text_material.xml
(this was the only trailing space present in a newly generated RN project), which results in the check against the empty tree object failing:.watchmanconfig
andapp.json
- Both are text files, and each line (including the last) is expected to end with a newline character (flagged by Git, and also visible as a warning on GitHub):Changelog
[GENERAL] [FIXED] - Fix whitespace and newline at EOF in template