From: Jan Kiszka <jan.kiszka@siemens.com>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] Re: Patch removing spaces
Date: Mon, 19 May 2008 12:52:48 +0200 [thread overview]
Message-ID: <48315C00.8060601@siemens.com> (raw)
In-Reply-To: <18481.20318.581788.423619@mariner.uk.xensource.com>
Ian Jackson wrote:
> Balazs Attila-Mihaly \(Cd-MaN\) writes ("[Qemu-devel] Patch removing
>> spaces"): If anyone is interested: a patch which removes spaces from
>> the end of the lines. Compressed because it's rather big.
>
> Please don't apply this patch!
>
> Spaces at the ends of lines are indeed irritating and we should avoid
> them. But going out of our way to remove them is definitely wrong -
> it's reformatting, which is nearly always wrong in Free Software.
Reformatting code according to some well established coding style is
surely _not_ wrong - for whatever kind of software. Tools are smart
enough to ignore plain whitespace changes. But even if rewrapping is
required, a clear commit comment will keep people away from searching
for functional changes (and that there are non can be checked beforehand
at binary level).
Reformatting sometimes also means re-reviewing (though I guess not in
this case) with the chance to discover yet hidden bugs. Happened quite a
few times for Linux during recent coding style fixes. Of course, bug
fixes were not merged with style fixes.
But such changes are indeed pointless if there is no decision to
strictly enforce the coding style from that point on. And if there is no
clearly documented style guide (e.g. in form of a indent script + a few
relaxation rules).
Jan
--
Siemens AG, Corporate Technology, CT SE 2
Corporate Competence Center Embedded Linux
next prev parent reply other threads:[~2008-05-19 10:53 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-18 16:31 [Qemu-devel] Patch removing spaces Balazs Attila-Mihaly (Cd-MaN)
2008-05-19 9:58 ` Ian Jackson
2008-05-19 10:35 ` Johannes Schindelin
2008-05-19 10:52 ` Jan Kiszka [this message]
2008-05-19 17:58 ` malc
2008-05-19 18:14 ` Blue Swirl
2008-05-19 20:23 ` Stuart Brady
2008-05-19 20:59 ` Paul Brook
2008-05-20 11:00 ` Laurent Desnogues
2008-05-20 17:32 ` malc
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=48315C00.8060601@siemens.com \
--to=jan.kiszka@siemens.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).