missingTemplateTags function
List<SmfIssue>
missingTemplateTags({
- required ModuleRegistry registry,
- required Resolution resolution,
- required Collection collection,
Checks that the bricks among collection's contributions that apply hold
every tag they must: of every socket of a present role, in the bricks of
the role's template or providers; of every socket of a module, in its
bricks; and of every socket of the pipeline. Stage 5 checks the sockets
that get contributions, members of socket families included.
Only bricks without conditions on what roles chose count, since an app
may leave out a brick with conditions (Contribution.whenChosen);
stage 5 reports a tag of a socket in such a brick.
The contract harness runs it; the pipeline leaves it to the contract tests of the modules.
Implementation
List<SmfIssue> missingTemplateTags({
required ModuleRegistry registry,
required Resolution resolution,
required Collection collection,
}) =>
_missingTagIssues(
resolution,
collection,
scanBricks(
registry: registry,
resolution: resolution,
collection: Collection([
for (final collected in collection.all)
if (collected.contribution.whenChosen.isEmpty) collected,
]),
).found,
).toList();