Skip to content

Support LegacyKeyValueFormat warning #274

@akurtakov

Description

@akurtakov

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.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions