By the way, two transformations are done by default and are not optional: the use of
${} for variable interpolation in strings and the replacement of double with single quotes when possible.The optional transformations are:
- alignment of fat arrows (
=>) - removal of unneeded quotes around boolean literals
- reordering of
ensureattribute to the first position - declaration of symbolic links by using
ensure => linkandtargetattributes - conversion of
/* */style comments to# - representation of file modes as a 4 digits string
- use of quotes around resource titles
- indentation by n spaces
- removal of unneeded quotes around variables
- removal of trailing white space
Website: https://github.com/santana/puppet-cleaner