jessfraz / dockfmt

Dockerfile format and parser. Like `gofmt` but for Dockerfiles.
MIT License
427 stars 20 forks source link

weird style choices #21

Open mcandre opened 9 months ago

mcandre commented 9 months ago

Why does dockfmt add pointless tabs after Docker keywords?

Why does dockfmt insert a blank line at the start of the Dockerfile?

blez commented 7 months ago

Agree. The current style is unusable. It would be nice to have a flags that allow to have my own style of formatting, like in yamlfmt or shfmt

vladdoster commented 7 months ago

@mcandre @blez,

As the README.md states, it is modeled after gofmt which also uses tabs so I assume that is why tabs are used.

You can fork the project and change/add things that you want. Here is the line that adds a tab between the directive and text.


Tangential, but I've been searching something better than checkmake and unmake scratches that itch. Thanks, @mcandre.