Expected behavior
This is such a minor thing but it would make such a nice change.
When using Hadolint from Emacs (with tty output) I expect Hadolint to follow the file-colon-line-colon convention (I don’t know that there is a name for this convention, but GNU describes it here) so that Emacs, and probably other tools (IIRC the Atom editor has something similar), can identify the errors. That way each error becomes a link of sorts to the file and line where the error occurred.
(And yes, I know I can configure Emacs to match more patterns, but there’s really nothing specific to match, so I’d rather see this changed in Hadolint.)
Actual behavior
The last colon is missing and Emacs doesn’t see the errors as errors.
Steps to reproduce the behavior
$ hadolint - <<EOF
FROM alpine
EOF
-:1 DL3006 warning: Always tag the version of an image explicitly
If the above contained -:1: I’d be happier.
Output of hadolint --version or
docker run --rm hadolint/hadolint hadolint --version or
docker run --rm ghcr.io/hadolint/hadolint hadolint --version:
Haskell Dockerfile Linter UNKNOWN
Dockerfile (if relevant)
Not relevant (I think, let me know otherwise).
Additional environment details (OS, stack version, etc.)
Not relevant (again, let me know if I’m wrong)
BTW, thanks for an excellent tool!
Expected behavior
This is such a minor thing but it would make such a nice change.
When using Hadolint from Emacs (with
ttyoutput) I expect Hadolint to follow the file-colon-line-colon convention (I don’t know that there is a name for this convention, but GNU describes it here) so that Emacs, and probably other tools (IIRC the Atom editor has something similar), can identify the errors. That way each error becomes a link of sorts to the file and line where the error occurred.(And yes, I know I can configure Emacs to match more patterns, but there’s really nothing specific to match, so I’d rather see this changed in Hadolint.)
Actual behavior
The last colon is missing and Emacs doesn’t see the errors as errors.
Steps to reproduce the behavior
If the above contained
-:1:I’d be happier.Output of
hadolint --versionordocker run --rm hadolint/hadolint hadolint --versionordocker run --rm ghcr.io/hadolint/hadolint hadolint --version:Dockerfile (if relevant)
Not relevant (I think, let me know otherwise).
Additional environment details (OS, stack version, etc.)
Not relevant (again, let me know if I’m wrong)
BTW, thanks for an excellent tool!