-
-
Notifications
You must be signed in to change notification settings - Fork 345
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
Add Dockerfile format #640
Comments
Sorry, but this software does not aim to parse or format Dockerfiles. It parses and formats shell. Dockerfiles simply embed bits of shell in them, but the overall syntax is not shell. A previous occurrence of this issue is #424. cc @JounQin @kaey My overall thoughts are that someone could easily build a Dockerfile formatter in Go on top of this shell formatter. The closest one that I know of is https://github.com/jessfraz/dockfmt; it does its own simple formatting of shell code, which is why I raised jessfraz/dockfmt#2 a while back. The issue is labeled "help wanted", so I'm sure a PR would be welcome. |
@sbrunner |
I got no answer to the above, so closing. |
Some plugin using this project like:
Use this formatter to format Dockerfile and with correct option, the result is not so bad but in prefect...
Isn't possible to support it officially?
The issues I detect:
Removing some ending '; ':
=>
Error with multiline
if
andfor
:=> error:
=> error:
The text was updated successfully, but these errors were encountered: