-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Description
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:
- Create
Dockerfile
with contents listed below - Observe errors messages from the extensions that read
hadolint: Cannot read properties of undefined (reading 'length')
Dockerfile:
FROM debian:bullseye
RUN cat /etc/os-release | \
grep debian
Expected behaviour
Linter should produce the following output (which corresponds to the output when running the linter on CLI):
Dockerfile:3 DL4006 warning: Set the SHELL option -o pipefail before RUN with a pipe in it. If you are using /bin/sh in an alpine image or if your shell is symlinked to busybox then consider explicitly setting your SHELL to /bin/ash, or disable this check
Dockerfile:3 SC2002 style: Useless cat. Consider 'cmd < file | ..' or 'cmd file | ..' instead.
Screenshots or Dockerfile
Not applicable.
Environment and version (please complete the following information):
- hadolint:
Haskell Dockerfile Linter 2.12.0
- OS: Debian 11 (
5.10.0-21-amd64 #1 SMP Debian 5.10.162-1 (2023-01-21) x86_64 GNU/Linux
)
Debug information
[hadolint(3038863) file:///home/ddnomad/development/github.com/homelab] Document is saved: file:///home/ddnomad/development/github.com/homelab/images/qbittorrent/Dockerfile
[hadolint(3038863) file:///home/ddnomad/development/github.com/homelab] Current settings: {"hadolintPath":"hadolint","cliOptions":["--no-color"],"maxNumberOfProblems":100,"outputLevel":"warning"}
[hadolint] Running hadolint /home/ddnomad/development/github.com/homelab/images/qbittorrent/Dockerfile --no-color in /home/ddnomad/development/github.com/homelab
[Error - 7:47:49 PM] TypeError: Cannot read properties of undefined (reading 'length')
at /home/ddnomad/.vscode-server/extensions/exiasr.hadolint-1.1.2/server/out/server.js:33:112710
at Array.forEach (<anonymous>)
at Mn (/home/ddnomad/.vscode-server/extensions/exiasr.hadolint-1.1.2/server/out/server.js:33:112526)
Additional context
None
eshack94, Finkregh, NeilPandya and asami0
Metadata
Metadata
Assignees
Labels
No labels