2008/12/9 Martin Pool <span dir="ltr"><<a href="mailto:mbp@canonical.com">mbp@canonical.com</a>></span><br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d">On Mon, Dec 8, 2008 at 10:56 AM, Marius Kruger <<a href="mailto:amanic@gmail.com">amanic@gmail.com</a>> wrote:<br>
>> Like John, I think I'd prefer this be done in test_source<br>
><br>
> thats done in the latest patch<br>
><br>
>><br>
>> and check<br>
>> the whole working tree, except for things that are specifically<br>
>> excluded, such as copied-in library source. Then there's no chance of<br>
>> missing things that are committed without checking them. If there are<br>
>> already things that would fail, let's just fix them up.<br>
><br>
> Uhm, last time I checked, the bazaar source is riddled with trailing white<br>
> space, try:<br>
> bzr.dev>$ find -iname "*.py" | xargs grep -n -e ".* $" |wc -l<br>
> 3319<br>
><br>
> People have tried to remove it previously, but got it shot down. See eg:<br>
> <a href="http://www.nabble.com/-MERGE--whitespace-normalization-td18634412.html" target="_blank">http://www.nabble.com/-MERGE--whitespace-normalization-td18634412.html</a><br>
<br>
</div>That thread got a bit broad and a bit bikesheddy. (Which is not to<br>
say everyone in that thread was bikeshedding.) Also, the proposed<br>
change "normalization" there seems broader and maybe more error prone<br>
than just stripping trailing whitespace.<br>
<br>
Trailing whitespace is not really a pain point for me but obviously it<br>
is for you or you wouldn't be posting? </blockquote><div>It was initially, but I've adapted to using bzr cdiff --check-style before I submit patches.<br>Though, it would be easier to just let the IDE remove all trailing white space<br>
all the time. Then I don't have to worry about it.<br>I've seen others complaining about it, so I thought we can at least prevent<br>the situation from getting worse.<br> <br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
If we're going to address it<br>
I'd rather have a proper test along the lines of test_source that<br>
doesn't look only at uncommitted changes, and doing that requires<br>
stripping out the existing whitespace.<br>
<br>
I'd merge a change that takes it off. It's easy enough to catch up<br>
with this when merging later, and it'll avoid the issue coming back<br>
again.<br>
</blockquote></div><br>I'd be happy to write a test that tests all the source for trailing white space<br>and then make it pass, if there is a chance that it would get merged. <br>You do know that it is going to cause a lot of "spurious changes" and lots of conflicts.<br>
Are we willing to take the pain?<br><br>regards<br>marius<br><br>