hadolint rules in Sudsy
Every rule and setting of hadolint in the parity catalog, with the Sudsy equivalent. The lint share is the part of hadolint’s default set (in scope) whose findings Sudsy also reports on real-world code, with the preset that mirrors it. Where the tool has a page for an entry, the id links to it.
Status: covered; partial (the note says what differs); not yet (planned); deferred; not planned; SDK (a .NET SDK diagnostic does it).
| Id | Sudsy | Status | Note |
|---|---|---|---|
DL1001 |
- | not planned | Sudsy has its own suppression comments; a rule against inline pragmas is not planned. |
DL3000 |
workdir-absolute |
covered | |
DL3001 |
no-interactive-commands |
covered | |
DL3002 |
last-user-not-root |
covered | |
DL3003 |
use-workdir-not-cd |
covered | |
DL3004 |
no-sudo |
covered | |
DL3006 |
untagged-base-image |
covered | |
DL3007 |
no-latest-tag |
covered | |
DL3008 |
apt-get-pin-versions |
covered | |
DL3011 |
expose-port-range |
covered | |
DL3012 |
single-healthcheck |
covered | |
DL3013 |
pip-pin-versions |
partial | python -m pip install and the wrappers (pipx, pipenv) are not told apart as hadolint does. |
DL3014 |
apt-get-yes |
covered | |
DL3015 |
apt-get-no-recommends |
covered | |
DL3016 |
npm-pin-versions |
partial | A package is judged by its text (@, #, tarball, path); git and scoped forms follow hadolint’s cases only. |
DL3018 |
apk-pin-versions |
covered | |
DL3009 |
delete-apt-lists |
partial | Only the RUN that runs apt-get update is checked, and any rm of a path under /var/lib/apt/lists in it counts, as hadolint does. |
DL3019 |
apk-no-cache |
covered | |
DL3020 |
copy-instead-of-add |
partial | Reports an ADD with no URL and no archive among its arguments; hadolint reports one source that is neither. |
DL3021 |
copy-many-needs-directory |
partial | The shell form only; the JSON form is not checked. |
DL3022 |
copy-from-unknown-stage |
covered | |
DL3023 |
copy-from-own-stage |
covered | |
DL3024 |
duplicate-stage-name |
covered | |
DL3025 |
json-cmd-entrypoint |
covered | |
DL3027 |
no-apt |
covered | |
DL3028 |
gem-pin-versions |
partial | hadolint drops the word after every flag; Sudsy does the same (skip-flag-args: *), so cases it parses differently with options can differ. |
DL3029 |
no-from-platform |
covered | |
DL3030 |
yum-yes |
covered | |
DL3032 |
yum-clean |
covered | |
DL3033 |
rpm-pin-versions |
partial | A variable in a package counts as pinned; hadolint checks that an ENV or ARG defines it. |
DL3034 |
zypper-yes |
covered | |
DL3035 |
zypper-no-dist-upgrade |
covered | |
DL3036 |
zypper-clean |
covered | |
DL3037 |
zypper-pin-versions |
covered | |
DL3038 |
dnf-yes |
covered | |
DL3040 |
dnf-clean |
covered | |
DL3041 |
rpm-pin-versions |
partial | A variable in a package counts as pinned; hadolint checks that an ENV or ARG defines it. |
DL3043 |
no-nested-onbuild |
covered | |
DL3047 |
wget-progress |
covered | |
DL3061 |
from-first |
covered | |
DL3059 |
merge-consecutive-run |
partial | Both RUNs must be a single command with the same flags. |
DL3062 |
go-pin-versions |
partial | go install and go get; go run is not checked. |
DL3063 |
no-reserved-stage-name |
covered | |
DL3064 |
no-secret-in-env |
partial | Names are matched in the text of the instruction, so a later pair of a multi-pair ENV with quoted values may be missed. |
DL3065 |
no-redundant-target-platform |
covered | |
DL3066 |
numeric-user-id |
partial | A variable is accepted whether or not an ARG defines it. |
DL3067 |
no-copy-whole-stage |
covered | |
DL4000 |
no-maintainer |
covered | |
DL4003 |
single-cmd |
covered | |
DL4004 |
single-entrypoint |
covered | |
DL4005 |
no-shell-symlink |
covered | |
DL4006 |
pipefail-shell |
partial | A SHELL instruction with a word that contains pipefail ends the check for the rest of the stage. |
DL3010 |
- | deferred | Needs to match a COPY’d archive against the extraction in a later RUN. |
DL3026 |
- | deferred | Needs a configured list of trusted registries. |
DL3042 |
- | deferred | Needs PIP_NO_CACHE_DIR tracked across ENV, ARG and stages. |
DL3044 |
- | deferred | Needs the variables an ENV defines compared with those it reads. |
DL3045 |
- | deferred | Needs WORKDIR tracked per stage. |
DL3046 |
- | deferred | Needs the length of the -u argument. |
DL3048 |
- | deferred | Label rules come together with the label schema configuration. |
DL3049 |
- | deferred | Needs the configured label schema. |
DL3050 |
- | deferred | Needs the configured label schema. |
DL3051 |
- | deferred | Needs the configured label schema. |
DL3052 |
- | deferred | Needs the configured label schema. |
DL3053 |
- | deferred | Needs the configured label schema. |
DL3055 |
- | deferred | Needs the configured label schema. |
DL3056 |
- | deferred | Needs the configured label schema. |
DL3058 |
- | deferred | Needs the configured label schema. |
DL3054 |
- | deferred | Needs the configured label schema and the SPDX list. |
DL3057 |
- | deferred | Off in hadolint by default; a file-level check that is not built. |
DL3060 |
- | deferred | Needs the yarn commands of a RUN ordered. |
DL4001 |
- | deferred | Needs the commands of all RUNs of a stage compared. |