Skip to main content
Version: Next

hadolint CLI reference

ModularPipelines.Hadolint provides strongly typed access to the hadolint CLI.

Executable prerequisite

This package does not install the hadolint executable. Install it separately and ensure hadolint is available on PATH.

Follow the executable's official documentation for installation instructions.

Package installation

dotnet add package ModularPipelines.Hadolint

Resolve the service with context.Tools.Hadolint. For projects older than C# 14, import ModularPipelines.Hadolint.Extensions and use the context.Hadolint() extension method as a compatibility fallback.

Module example

Resolve the service in a module, then select a command from the table below. A runnable example is omitted when no command has complete safety metadata:

var hadolint = context.Tools.Hadolint;

Commands

CLI commandOptions record
hadolintHadolintExecuteOptions