Skip to content

Returns UnexpectedEOF if the dockerfile uses JSON array syntax for the COPY command #7

@kachick

Description

@kachick

Describe the bug

dprint-plugin-dockerfile version: 0.3.0
dprint version: 0.37.1

Input Code

FROM ubuntu:jammy-20230605

COPY  ["a.txt", "./"]

Expected Output

FROM ubuntu:jammy-20230605

COPY ["a.txt", "./"]

Actual Output

> dprint check
Error formatting /home/kachick/repos/dprint-plugin-dockerfile-copy-syntax-array/Dockerfile. Message: error unescaping string: UnexpectedEOF
Had 1 error(s) formatting.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions