There's a wonderful tool called "perltidy" that can clean up Perl scripts, enforcing certain style guidelines by default but allowing lots of customization.
Does Puppet have a tool like perltidy to enforce a certain style in Puppet manifests? I don't see any mention of such a tool at http://docs.puppetlabs.com/guides/style_guide Thanks, Phil p.s. Below is an example of perltidy in action, but there are more at http://perltidy.sourceforge.net . Various configuration options such as "Cuddled Else", "Define Horizontal Tightness", etc. are explained at http://perltidy.sourceforge.net/stylekey.html [pdurbin@beamish bin]$ cat print_binary_numbers.pl #!/usr/bin/perl use strict; use warnings; use Time::HiRes qw( sleep ) ; for (my $i = 0; $i < 10; $i++ ) { sleep .1 ; printf ("%10b %3d\n", $i, $i); } [pdurbin@beamish bin]$ perltidy print_binary_numbers.pl [pdurbin@beamish bin]$ cat print_binary_numbers.pl.tdy #!/usr/bin/perl use strict; use warnings; use Time::HiRes qw( sleep ); for ( my $i = 0 ; $i < 10 ; $i++ ) { sleep .1; printf( "%10b %3d\n", $i, $i ); } [pdurbin@beamish bin]$ -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.