AshCredo.Orchestration (ash_credo v0.5.2)

Copy Markdown View Source

Shared helpers for coordinating check execution.

This module holds Credo-facing plumbing that sits above AST introspection, such as iterating resource contexts and building IssueMeta once per check run before delegating into rule-specific logic.

Summary

Functions

Iterates resource contexts in the source file, flat-mapping each through fun.(context, issue_meta).

Looks up a DSL section in each resource context, flat-mapping each through fun.(section_ast, issue_meta).

Functions

flat_map_resource_context(source_file, params, fun)

Iterates resource contexts in the source file, flat-mapping each through fun.(context, issue_meta).

flat_map_resource_section(source_file, params, section_name, fun)

Looks up a DSL section in each resource context, flat-mapping each through fun.(section_ast, issue_meta).