Open darkvertex opened 3 years ago
I should perhaps add that (I think due to #42) even after closing the buggy file, hadolint continues to haunt my notification corner over the file it can't parse right.
I have kind of the same error:
> hadolint /home/demarteaub/projects/infra/docker/postgres/patroni/Dockerfile
/home/demarteaub/projects/infra/docker/postgres/patroni/Dockerfile:79:5 unexpected '&' expecting '#', '\', ADD, ARG, CMD, COPY, ENTRYPOINT, ENV, EXPOSE, FROM, HEALTHCHECK, LABEL, MAINTAINER, ONBUILD, RUN, SHELL, STOPSIGNAL, USER, VOLUME, WORKDIR, a pragma, at least one space, or end of input
> hadolint --version
Haskell Dockerfile Linter 2.12.0
I had the same error as @bendem - any plans to fix it? @michaellzc
same issue @michaellzc
Describe the bug A clear and concise description of what the bug is.
To Reproduce Steps to reproduce the behavior:
(Note: WORKDIR has a space after it.)
hadolint: expecting is not a supported rule
Expected behaviour Okay, so an empty "WORKDIR" is nonsense, but I would not expect the hadolint extension to be worrying about it, let alone throwing a cryptic notification.
Screenshots or Dockerfile
(Note: WORKDIR has a space after it.) ...and if I pop open the Help->Developer Tools window, I got this in the JS Console:
Environment and version (please complete the following information):
(but actually it's 2.8.0 -- there's an issue logged about the --version output already.)
Debug information I tried running the same command that the extension output log said it was running:
From my naive understanding, it appears like maybe the extension is expecting rule-style (
DLXXXXX
....) output strings all the time and not handling those few error messages that don't have a rule to them.Additional context This issue looks related to #46 and #55.