Issue #8031 has been updated by James Turnbull.

Status changed from Unreviewed to Needs Decision
Assignee set to Nigel Kersten


----------------------------------------
Feature #8031: Code Formatter
https://projects.puppetlabs.com/issues/8031

Author: Martin Marcher
Status: Needs Decision
Priority: Low
Assignee: Nigel Kersten
Category: usability
Target version: 
Affected Puppet version: 
Keywords: 
Branch: 


Hi,

I think it would be really nice if there was an automagic code formatter for 
`.pp` files.

We did some go programming lately and one of the things that turned out to be 
the thing we liked the most was `gofmt`. We stopped mucking over styles and 
everybody could just (once and for all) configure his favorite editor to 
display "the one correct way" (which isn't necessarily the same as the output 
`gofmt` produces).

It makes no difference what the preferences are (tabs vs. spaces, 2 vs. 4 vs. 8 
-- but who likes tabs anyway :)). The authoritative answer is whatever the 
output from `gofmt` is.

Please please,

* `puppet format somefile.pp` -- outputs to stdout
* `puppet format -w somefile.pp` -- rewrites the file

thanks,  
Martin


-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://projects.puppetlabs.com/my/account

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" 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-bugs?hl=en.

Reply via email to