Skip to content

@vttforge/cli / RuleFn

Type Alias: RuleFn

RuleFn = (cwd) => Promise<RuleResult[]> | RuleResult[]

A rule is a plain function over the project root. Manifest rules parse system.json / module.json; source rules walk scripts/ / src/. Rules return their own findings; the orchestrator stitches them together. Pure functions over the filesystem so tests inject tmp dirs.

Parameters

cwd

string

Returns

Promise<RuleResult[]> | RuleResult[]

MIT licensed.