dprint/dprint-plugin-dockerfile

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

kachick opened this issue · 0 comments

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.