Hi there, I've recently made public puppet-cleaner, a tool that makes a manifest comply with a subset of the style guide:
https://github.com/santana/puppet-cleaner It monkey patches puppet 2.7.11, enabling COMMENT, MLCOMMENT and RETURN tokens and adding the BLANK token: https://github.com/santana/puppet-cleaner/blob/master/lib/puppet-cleaner.rb Then it loops over the stream of tokens and apply a set of workers that transform the input. It's not difficult to extend it to add more workers. I've received reports that puppet-cleaner doesn't work with Puppet 3.x, which is expected, since I'm tapping puppet internals in a non-reusable way. Then I wondered, what if we can work together to make it easy to tap puppet's lexer? Then puppet-cleaner and any other tool that anyone can imagine may leverage it and create more interesting stuff. Then it occurred to me that it would be nice to have this cleaner included in the set of puppet's face applications and maintained as part of puppet's source code tree. Everybody would benefit from having an integrated and up to date puppet manifest cleaner. What do you think? I'm of course volunteering to help to work on it. -- You received this message because you are subscribed to the Google Groups "Puppet Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/puppet-dev?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
