Skip to content
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

Closed
wants to merge 1 commit into from

Conversation

friederbluemle
Copy link
Contributor

@friederbluemle friederbluemle commented Jan 24, 2023

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):
    image

Changelog

[GENERAL] [FIXED] - Fix whitespace and newline at EOF in template

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Jan 24, 2023
@github-actions
Copy link

Warnings
⚠️ 📋 Missing Summary - Can you add a Summary? To do so, add a "## Summary" section to your PR description. This is a good place to explain the motivation for making this change.
⚠️ 📋 Missing Test Plan - Can you add a Test Plan? To do so, add a "## Test Plan" section to your PR description. A Test Plan lets us know how these changes were tested.

Generated by 🚫 dangerJS against c1f5f73

@rshest
Copy link
Contributor

rshest commented Jan 24, 2023

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?..

@facebook-github-bot
Copy link
Contributor

@rshest has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@analysis-bot
Copy link

Platform Engine Arch Size (bytes) Diff
android hermes arm64-v8a 8,462,911 +0
android hermes armeabi-v7a 7,783,489 +0
android hermes x86 8,936,172 +0
android hermes x86_64 8,794,233 +0
android jsc arm64-v8a 9,648,873 +0
android jsc armeabi-v7a 8,383,370 +0
android jsc x86 9,711,124 +0
android jsc x86_64 10,188,137 +0

Base commit: c195487
Branch: main

@facebook-github-bot
Copy link
Contributor

@rshest merged this pull request in efe5f62.

@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label Jan 24, 2023
@cortinico
Copy link
Contributor

@cortinico , it probably could have been a land-blocking thing whenever it was committed, to begin with?..

@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.

OlimpiaZurek pushed a commit to OlimpiaZurek/react-native that referenced this pull request May 22, 2023
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Merged This PR has been merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants