Ancora.Gate.Preflight (ancora v1.0.0)

Copy Markdown View Source

Resolves the target project, configuration, and comparison base before the gate runs.

Preflight returns environment errors as data. It never turns them into findings.

Summary

Types

result()

@type result() :: %{
  root: Path.t(),
  base: String.t(),
  config: Ancora.Config.t(),
  project: Ancora.ProjectInfo.t()
}

Functions

run(root, opts \\ [])

@spec run(
  Path.t(),
  keyword()
) :: {:ok, result()} | {:env, String.t()}