On Thu, Oct 6, 2011 at 11:00 AM, Craig White <[email protected]> wrote: > On Oct 6, 2011, at 7:19 AM, Philip Durbin wrote: >> 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 > ---- > not the same but certainly in the neighborhood... > > https://github.com/rodjek/puppet-lint/
Ah, unlike perltidy, puppet-lint doesn't re-write your code. It's a reporting tool, so you are left to go and make the recommended changes yourself. That said, puppet-lint is *very* useful and I could see it being a great help in detecting ugly Puppet code. It's a huge step up from simply using `puppet --parseonly` to check the syntax. Also, within minutes of me opening an issue, the developer (Tim Sharpe) replied, which is a great sign. Thanks! Phil -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
