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
Global: apply guidelines #6497
Global: apply guidelines #6497
Conversation
IMHO this kind of large cleaning operation should be postponed to after the 0.20 release... |
Up to you. But that's at no risk as it's easy to check that compiled binaries are same before and after. ;) |
When the time does come and if this approach is approved, IMHO consider breaking the PR up in to several commits categorized by the directory tree where each commit addresses a different part of the |
The only downside to this type of cleanup is that it's going to introduce a bunch of conflicts for anyone working on these chunks of code. They are trivial to resolve, but still some work for authors. I propose that we do this for 0.20, but do it last, after reviewing all of the other PRs we intend to merge. As @0penBrain mentions, we can easily verify that the compiled binaries are identical, so there is no danger of introducing regressions. And the provided shell script can simply be run anew by one of us, without actually having to rebase this PR (that is, we technically ignore the PR itself, but directly apply the script). |
Yes, I can do both this and #4556 when you give me the go-ahead that we are ready for it. |
Many thanks! Then we still have time to check if everything works and small bugfix PRs won't be affected/can be updated if necessary. |
Since we're about to run the code over with a tractor 😜 might as well do #5578 as well ? |
This needs to be discussed first. Can you please open a thread in the developer's forum? |
@donovaly here's the original thread https://forum.freecadweb.org/viewtopic.php?t=19866 |
Thanks. The question if this is still relevant. The thread is 5 years old and meanwhile Git's standard is to commit as is. I am on Windows and here I only get issues when a file has mixed line endings. Bit by bit there files go away. |
Aren't the mixed line endings exactly what is trying to be solved? Anyways, would it be a good idea to include this PR's commit in the .git-blame-ignore-revs file? As it doesn't really change the intent of any of the code, just the formatting. |
Yes, IMO -- it is my intention to do so. |
@chennes , will you do this today or later? |
I'll take care of it later this evening, things got busy at work. |
@0penBrain when I run your script, I am not seeing proper indentation on the |
@chennes we'll look at this. Maybe it has to wait for tomorrow. :) |
OK, see the problem. The snippet is correct when I edit it in the PR description, but isn't when it's displayed or quoted. |
@chennes should be fixed in the OP of the PR. |
Applied as: |
Only applied on cpp files excluding 3rd party