mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-21 02:06:43 +00:00
Burn the grandfathered unused-export baseline to zero and enforce a hard-zero Knip gate.
14 lines
530 B
TypeScript
14 lines
530 B
TypeScript
/** Parses compact Knip export sections into one path-and-symbol entry per finding. */
|
|
export function parseKnipCompactUnusedExports(output: string): string[];
|
|
/** Parses compact Knip export sections and reports whether Knip emitted one. */
|
|
export function parseKnipCompactUnusedExportsResult(output: string): {
|
|
entries: string[];
|
|
sawExportSection: boolean;
|
|
};
|
|
/** Rejects every unused export reported by Knip. */
|
|
export function checkUnusedExports(output: string): {
|
|
ok: boolean;
|
|
entries: string[];
|
|
message: string;
|
|
};
|