Workspace.Check.Result (Workspace v0.2.1)
View SourceA struct holding a check's result.
Contains info about the checked project if applicable, the check's config and the check status and metadata.
Summary
Functions
Initializes a check results struct for the given check
and project
Sets the result's metadata.
Sets the result's status.
Types
@type t() :: %Workspace.Check.Result{ check: keyword(), meta: nil | keyword(), module: module(), project: Workspace.Project.t(), status: nil | :ok | :error | :skip }
The internal representation of a workspace check result.
It includes the following fields:
:module
- the underlying check module implementing theWorkspace.Check
behaviour:check
- the check configuration:project
- theWorkspace.Project
on which the check was executed:status
- the status of the check, will be:ok
in case of success,:error
in case of failure or:skip
if the check was skipped for the current project.:meta
- arbitrary check metadata
Functions
@spec new(check :: keyword(), project :: Workspace.Project.t()) :: t()
Initializes a check results struct for the given check
and project
Sets the result's metadata.
Sets the result's status.