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

Linter does not follow ESCAPE directive #65

Open
lyricwulf opened this issue Jan 27, 2020 · 0 comments
Open

Linter does not follow ESCAPE directive #65

lyricwulf opened this issue Jan 27, 2020 · 0 comments

Comments

@lyricwulf
Copy link

As specified in Dockerfile reference:

# escape=\
# escape=`
The escape directive sets the character used to escape characters in a Dockerfile. If not specified, the default escape character is \.
The escape character is used both to escape characters in a line, and to escape a newline. This allows a Dockerfile instruction to span multiple lines. Note that regardless of whether the escape parser directive is included in a Dockerfile, escaping is not performed in a RUN command, except at the end of a line.
Setting the escape character to ` is especially useful on Windows, where \ is the directory path separator. ` is consistent with Windows PowerShell.

linter-docker does not currently check the escape directive and will report a line error if another character is used.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant