Compose Validate
{#if !loading && !error && report}
{#each ['error', 'warn', 'info'] as const as sev} {@const c = counts[sev]} {@const SIcon = SEV[sev].Icon}
{c}
{/each}
{/if}
{#if onRevalidate} {/if}
{#if loading}

Validating...

{:else if error}

{error}

{:else if clean}

No problems found

Passes every enabled check.

{:else} {#each grouped as group (group.sev)} {@const GIcon = SEV[group.sev].Icon}
{#if !collapsed[group.sev]} {#each group.items as f (findingKey(f))}
{f.ruleId} {#if f.line}L{f.line}{/if} {#if f.fix && onApplyFix} {/if}
{/each} {/if}
{/each} {/if}