dockerfile-language-server icon indicating copy to clipboard operation
dockerfile-language-server copied to clipboard

Support LegacyKeyValueFormat warning

Open akurtakov opened this issue 5 months ago • 4 comments

From docker build I get:

1 warning found:
 - LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format (line 21)
Legacy key/value format with whitespace separator should not be used
More info: https://docs.docker.com/go/dockerfile/rule/legacy-key-value-format/
Dockerfile:21
--------------------
  19 |     
  20 |     ENV HOME=/home/vnc
  21 | >>> ENV DISPLAY :0
  22 |     
  23 |     RUN mkdir -p ${HOME}/.vnc && chmod -R 775 ${HOME} \
--------------------

It would be nice if the language server creates a diagnostic warning for the issue and ideal if there is a codeaction to change it to the non-legacy format.

akurtakov avatar Aug 07 '25 05:08 akurtakov