dockfmt icon indicating copy to clipboard operation
dockfmt copied to clipboard

weird style choices

Open mcandre opened this issue 2 years ago • 2 comments

Why does dockfmt add pointless tabs after Docker keywords?

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

mcandre avatar Jan 11 '24 04:01 mcandre

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

blez avatar Mar 12 '24 10:03 blez

@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.

vladdoster avatar Mar 17 '24 23:03 vladdoster