Skip to content
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

Embedded comment with a trailing escape character will cause a false linting error to be raised #74

Closed
rcjsuen opened this issue Mar 8, 2020 · 0 comments
Assignees
Labels

Comments

@rcjsuen
Copy link
Owner

rcjsuen commented Mar 8, 2020

FROM alpine AS \
# comment\
build
$ docker build .
Sending build context to Docker daemon  38.15MB
Step 1/1 : FROM alpine AS build
latest: Pulling from library/alpine
c9b1b535fdd9: Pull complete 
Digest: sha256:ab00606a42621fb68f2ed6ad3c88be54397f981a7b70a79db3d1172b11c4367d
Status: Downloaded newer image for alpine:latest
 ---> e7d92cdc71fe
Successfully built e7d92cdc71fe
$ docker run -v `pwd`/Dockerfile:/Dockerfile rcjsuen/dockerfile-utils lint /Dockerfile
Line: 1
FROM alpine AS \
            ^^
Error: FROM requires either one or three arguments
@rcjsuen rcjsuen added the bug label Mar 8, 2020
@rcjsuen rcjsuen self-assigned this Mar 8, 2020
@rcjsuen rcjsuen closed this as completed in 348ba56 Mar 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant