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

code_format: fix newline trim #37809

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ohadvano
Copy link
Contributor

Additional Description: In case a file does not end with a new line, the code format script will trim last character from last line, which will cause the file to be corrupted. To reproduce, for example, run the format tool on a bazel BUILD file that does not end with a new line
Risk Level: medium
Testing: none
Docs Changes: none
Release Notes: none
Platform Specific Features: none

Signed-off-by: ohadvano <[email protected]>
@ohadvano
Copy link
Contributor Author

/assign @phlax

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants