distillery v2.0.8 Mix.Releases.Checks behaviour View Source
This module defines a behavior for, and orchestrator of, static analysis checks to be performed at release-time. These checks are intended to operate on the fully reified release configuration and metadata, and return warnings, errors, or ok for the release assembler to react to.
In most cases, warnings will be printed but assembly will continue; errors will be printed but will terminate assembly, and a successful check will be printed only if verbose logging is enabled.
Link to this section Summary
Functions
Returns a list of all checks available to be applied
Runs all default and configured checks against the given release
Runs all of the given checks, in the given order
Link to this section Types
Link to this section Functions
Returns a list of all checks available to be applied.
run(Mix.Releases.Release.t()) :: :ok | {:ok, warning()} | {:error, term()}
Runs all default and configured checks against the given release.
run([module()], Mix.Releases.Release.t()) :: :ok | {:ok, warning()} | {:error, term()}
Runs all of the given checks, in the given order.
Link to this section Callbacks
run(Mix.Releases.Release.t()) :: :ok | {:ok, warning :: String.t()} | {:error, term()}