Charles McLaughlin
2014-Feb-20 22:51 UTC
[Puppet Users] Style and Formatting Best Practice
Hello, I'm trying to develop Puppet style guidelines at my job and would like some feedback and opinions on a few patterns. Example 1 - notice the difference in ")" indention (often we have many parameters, which is why we're in the habit of listening them on a separate) class foo { $param ) { class { 'bar': blah => $param, } } Versus: class foo { $param ) { class { 'bar': blah => $param, } } Example 2 - notice the indentation of the required Files class foo { package { 'bar': requires => [ File[1], File[2] ] } } Versus: class foo { package { 'bar': requires => [ File[1], File[2] ] } } Thanks, Charles -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/cd426918-0dc6-4c61-b866-cbf750384c52%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.