@mermaid-lint/core
    Preparing search index...

    Function checkSemantics

    • Run every semantic rule over a parsed Block and return all findings. Each rule decides its own applicability (by diagram type), reads its severity from rules (skipping when off), and honors suppression directives via the supplied (or freshly built) SuppressionIndex.

      Parameters

      • block: Block

        The block to inspect.

      • rules: ResolvedRules = RULE_DEFAULTS

        Resolved per-rule severities. Defaults to RULE_DEFAULTS.

      • Optionalindex: SuppressionIndex

        Suppression index to consult. Callers that already built one (blockToDiagnostics) pass it in so directives are parsed once; direct callers get one built here.

      Returns SemanticWarning[]

      Any SemanticWarnings found (empty when none apply).