Feature #8031

Code Formatter

Added by Martin Marcher almost 2 years ago. Updated 11 months ago.

Status:Needs DecisionStart date:06/21/2011
Priority:LowDue date:
Assignee:eric sorenson% Done:

0%

Category:usability
Target version:-
Affected Puppet version: Branch:
Keywords:

Description

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

History

#1 Updated by James Turnbull almost 2 years ago

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

#2 Updated by Nigel Kersten 11 months ago

  • Assignee changed from Nigel Kersten to eric sorenson

Also available in: Atom PDF