Skip to main content

Module evaluation

Module evaluation 

Source
Expand description

Typed check-evaluation records.

Selection, configuration, applicability, evaluation coverage, content findings, and coverage gaps are independent dimensions. The types in this module are the single execution/result boundary for both CLI and embedded consumers.

Structs§

CheckEvaluation
Final output-v10 record for one catalog check.
CheckOutput
Output evidence from one selected, enabled, applicable check.
CoverageGap
A typed reason applicable work could not be evaluated.
CoverageGapCode
Stable machine code for an evaluation-coverage gap.
EvaluationScope
A stable identifier for work that completed or could not be evaluated.
EvaluationScopeCode
Stable machine code for a unit of evaluated or missing work.

Enums§

Applicability
Whether a check applies to the supplied document and declarations.
CheckSelection
Catalog-selection policy for evaluate_checks.
ConfigurationState
Whether configuration enabled the check.
EvaluationError
Invalid catalog or check output supplied to evaluate_checks.
EvaluationState
How much applicable work was evaluated.
SelectionState
Whether a check was selected for this invocation.

Constants§

BUILTIN_COVERAGE_GAP_CODES
Complete built-in coverage-gap vocabulary for consumers that need to inspect or allow-list animsmith’s catalog codes. Custom checks may use additional namespaced codes.
BUILTIN_EVALUATION_SCOPE_CODES
Complete built-in evaluation-scope vocabulary for consumers that need to inspect or allow-list animsmith’s catalog codes. Custom checks may use additional namespaced codes.

Functions§

evaluate_checks
Evaluate a full catalog into one record per check.
lint_requires_failure
Apply the shared lint gate policy to validated check records.