fu: Close-up of Fu, bringing a scoop of water to her mouth (Default)
fu ([personal profile] fu) wrote2011-03-01 11:37 pm

perltidy is so tempting

You could tie perltidy to the mercurial commit hook, and use that as an automatic checker for style before commit.

We have so much old code in various styles, this would be much easier than tweaking things by hand to make everything conform, and once you've gotten past that first big burst of formatting, you could run it again and see any style issues in any new patches.

And yet, and yet...
pauamma: Cartooney crab holding drink (Default)

[personal profile] pauamma 2011-03-02 04:33 pm (UTC)(link)
That would still give spurious diffs when moving stuff across linebreaks, eg when rewriting

if ( $foo )


if ( $foo ) {
Edited (Bad HTML is bad.) 2011-03-02 16:35 (UTC)