-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Format all XML resources #4471
Format all XML resources #4471
Conversation
Finally. THANK YOU. |
Nice work. |
@connectety: That was also what I was thinking, however I'm not aware of a way to run Android Studio's XML formatter from the command line. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we just assume Ctrl+Alt+L
does his job correctly and merge directly? ;-)
345 files are too many to check ;-)
Anyway, I took a brief look and there does not seem to be any strange things. I'm not sure if we would need to do some deeper analysis or we can just trust AS. Maybe we can so something like this?
@Stypox: It's just some XML, I'd trust Android Studio for that. Also from taking a quick look at what it did (for the first about 100 files). |
Fwiw the source code of Android Studio's XML formatter is at https://android.googlesource.com/platform/tools/base/+/refs/tags/studio-4.0.0/sdk-common/src/main/java/com/android/ide/common/xml/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, then @TobiGr merge
You have no idea how happy this makes me. |
@TacoTheDank You do seem like the kind of person who likes a well-kept codebase. 🤭 |
For some reason the Synk vulnerability checks are failing, but I don't have the rights to access the results and find out why |
snyk is also failing for other PRs. There are no dependency changes in this PR, so this should be good to merge. |
What is it?
Description of the changes in your PR
Format all XML resources using Ctrl+Alt+L in Android Studio. I've also manually added newlines at the end of XML resources that currently didn't have a newline.
Fixes the following issue(s)
Seeing stuff like https://github.com/TeamNewPipe/NewPipe/pull/4453/files#diff-8093b831702ba14428d2d99c9edded66 in PRs, which makes it harder to review.
Agreement