Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

weird style choices #21

Open
mcandre opened this issue Jan 11, 2024 · 2 comments
Open

weird style choices #21

mcandre opened this issue Jan 11, 2024 · 2 comments

Comments

@mcandre
Copy link

mcandre commented Jan 11, 2024

Why does dockfmt add pointless tabs after Docker keywords?

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

@blez
Copy link

blez commented Mar 12, 2024

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
Copy link

vladdoster commented Mar 17, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants