hadolint

hadolint is a linter for Docker.

You can enable the hadolint linter with:

trunk check enable hadolint

Auto Enabling

hadolint will be auto-enabled if any Docker files are present.

Settings

hadolint supports the following config files:

  • .hadolint.yaml

  • .hadolint.yml

You can move these files to .trunk/configs and trunk check will still find them. See Moving Linters for more info. Trunk Code Quality provides a default .hadolint.yaml if your project does not already have one.

Last updated