( rules: readonly IMetaRule[], ctx: IMetaContext )
| 1 | import type { IMetaContext, IMetaRule, IViolation } from "./types"; |
| 2 | |
| 3 | export function runMetaRules( |
| 4 | rules: readonly IMetaRule[], |
| 5 | ctx: IMetaContext |
| 6 | ): IViolation[] { |
| 7 | return rules.flatMap((rule) => rule.run(ctx)); |
| 8 | } |
| 9 | |
| 10 | export async function runMetaRulesAsync( |
| 11 | rules: readonly IMetaRule[], |