Just a huge scrub of trailing whitespaces (may have missed
some with '/* ' using 'grep -r -n "\s$" *').
Affects mostly comments, but a few trailing space and tabs in code lines also.
No code change, no functional change.
Differential D22704
Remove superfluous trailing whitespaces in TCP source files rscheff on Dec 6 2019, 9:57 AM. Authored by Tags None Referenced Files
Subscribers None
Details Just a huge scrub of trailing whitespaces (may have missed Affects mostly comments, but a few trailing space and tabs in code lines also. No code change, no functional change.
Diff Detail
Event TimelineComment Actions When I did similar things in the past, one comment I received was that this does not improve the functionality, but Comment Actions Why would cleaning up trailing whitespaces make MFCing harder? Other than possibly adding one adjacent line? I made this huge diff, because sneaking these in one-by-one whenever I encounter them around the lines I was modifying was shot down so far ;) BTW - since lint was removed, what other tool could I use to validate the fbsd code style(9)? Any hint as to how i could integrate that into git or arcanist would be appreciated. Comment Actions If you don't MFC the whitespace cleanup, you might get merge conflicts...
As I said, doing this once is a nice thing in my opinion...
I"m not doing this automated... I just try to follow it (as much as I think is a good thing) when coding... But this is not perfect and others are also not perfect. Comment Actions This patch was generated mostly manually, with grep "[ \t]*$" tcp* And validating that the found trailing whitespaces were true positive matches. running sed 's/[ \t]*$//' < file should give a similar result. Comment Actions I concur that one large commit is best, BUTT, we should also see how it merges before doing that, as I suspect a large amount of this well fail to merge, and that creates a merge nightmare. As one who shoots down white space fixes within your other reviews let me try to expand on reasoning. It is not that it is bad or wrong to fix white space, it is that it adds noise to a review and each white space change has to be looked at as if it was part of the functional change and that creates reviewer work load and sometimes also causes mistakes to slip by. Please try to make sure that this can be merged to at least stable/12 cleanly before committing to head/. Comment Actions rrs took no prisoners, and cleaned up all trailing whitespaces all over the place (even more extensively, as this Diff was only fixing up tcp_*). Closing this diff. |