I'm starting to work on an addition to Perl::Tidy called Perl::Style. Unlike Perl::Tidy this is based on PPI, and is able to change more than whitespace.
For example, normalising $foo->{bar}{baz} to $foo->{bar}->{baz} or remove superflous braces from ->method() or doing more targetted whitespace tweaking where perltidy can't handle it. The problem with solving problems with policy documents is that they are implemented in parallel in unstable wetware processors. Inevitably nobody will bother or remember to follow documentation for something as mundane as code format (unless you are as important as the Linux Kernel or something) Adam K On 1 March 2011 11:38, chm <devel.chm...@gmail.com> wrote: > On 2/28/2011 5:57 PM, Adam Kennedy wrote: >> I hate Perl::Tidy quite a bit, but I accept that for a project with >> many people consistency can be more important than an ideal layout. > > Another approach is to set standards for documentation > that can be applied by hand and by editor settings: > things like cuddle-else, no tabs, just spaces, indent > shift of 3/4... > > Personally, I haven't had much luck with source > format programs since they tend to mess things > up but requiring there use is an operational > way to enforce coding standards. > > --Chris > >> That said, there's some tweaks I wouldn't mind making to the config, >> the way it does if (with no space) { is pretty annoying. >> >> Adam K >> >> On 1 March 2011 09:09, Gabor Szabo<szab...@gmail.com> wrote: >>> 2011/2/28 "Burak Gürsoy"<burakgur...@gmx.net>: >>>> But you seem to assume that perltidy is perfect and fits everyones >>>> taste. I think perltidy is a great tool for refactoring, but >>>> it fails to meet my taste in indentation 60%. So, perltidy()ing >>>> everything does not make much sense to me, but then again >>>> I'm not actively developing Padre. >>> >>> I hear many people complain about Perl::Tidy but no one seems >>> to do anything about it. It is like the weather in London. :-( >>> >>> I think the reason we use Perl::Tidy is that it is better to have >>> a non-perfect solution than to hope that we all know how >>> everyone else on the team wants to indent things. >>> >>> I'd really like to see some people put a bit time into Perl::Tidy. >>> It hardly has any test. Adding some test-cases to it would be fun >>> and once there is a reasonable test coverage people could >>> start to add features. >>> >>> regards >>> Gabor >>> _______________________________________________ >>> Padre-dev mailing list >>> Padre-dev@perlide.org >>> http://mail.perlide.org/mailman/listinfo/padre-dev >>> >> _______________________________________________ >> Padre-dev mailing list >> Padre-dev@perlide.org >> http://mail.perlide.org/mailman/listinfo/padre-dev >> >> >> ----- >> No virus found in this message. >> Checked by AVG - www.avg.com >> Version: 10.0.1204 / Virus Database: 1435/3472 - Release Date: 02/27/11 >> >> >> > > _______________________________________________ > Padre-dev mailing list > Padre-dev@perlide.org > http://mail.perlide.org/mailman/listinfo/padre-dev > _______________________________________________ Padre-dev mailing list Padre-dev@perlide.org http://mail.perlide.org/mailman/listinfo/padre-dev