-
Notifications
You must be signed in to change notification settings - Fork 66
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
Apply project settings to o.e.osgi.util #324
Apply project settings to o.e.osgi.util #324
Conversation
Torbjorn-Svensson
commented
Oct 1, 2023
- Convert to LF and ensure LF at EOF:
@tjwatson As a PL I would like to get your opinion on this(and other similar) mass changes.. |
My aim with all these "cleanup" PRs is to make it trivial to do code changes that only contain the intended code change in the diff after applying the automatic formatting rules in the Eclipse IDE. I have never worked on TCK before. Can you please enlighten me where I can read up on how it works as I can't connect my changes in this PR to how a unit test can fail. |
@laeubi Can you reply to the question about TCKs? |
Some TCKs are not successful for Equinox, but ti seems there is not much people caring about the full compatibility of edge cases. So if there are no new failures it should be fine: https://github.com/eclipse-equinox/equinox#implemented-services-an-compliance beside that, instead of reformatting all code now there are the following alternatives:
|
Ok, so I assume that PRs that does not fail on any other step than the TCKs are fine.
To me, this sounds sub-optimal as it would require more work from contributors than just doing the change once and move on with other tasks.
I suppose you talk about "only format edited lines" and yes, that could work, but it would make the code much harder to read. Personally, I do not consider this a solution. |
It is, but it is also a lot of work to review all the changes :) And please note as well, that in some cases Equinox is embedding external sources, e.g. OSGi API (in packages |
That's why I included the command that I ran to produce the change :)
Ok, so in that case, it's it desired to have them follow the coding rules defined in the bundle or that they break whenever someone tries to correct a small typo or fix a bug in them? |
|
In the past we had setup project specific settings format on save action -> "Format edited lines" so it does not change the whole file. Perhaps that got lost along the way? |
We should only do this for I'm all for converting to LF and ensuring EOF though (for |
I've updated the PRs to not include what I believe is Let me know if there is something else I missed in the PRs. |
8f7bc40
to
405ec98
Compare
This was achieved by running: find . -type f -print0 | \ xargs -r0 perl -le 'for (@argv) { print if -f && -T }' | \ xargs -rd'\n' dos2unix -e Signed-off-by: Torbjörn SVENSSON <torbjorn.svensson@st.com>
405ec98
to
4e72ca4
Compare