@invisiblecities/sidequest-cqo
Version:
Configuration-agnostic TypeScript and ESLint orchestrator with real-time watch mode, SQLite persistence, and intelligent terminal detection
37 lines • 1.27 kB
TypeScript
/**
* Unused Exports Engine for Code Quality Orchestrator
* Detects unused TypeScript exports using ts-unused-exports
*/
import { BaseAuditEngine } from "./base-engine.js";
import type { Violation, ViolationCategory } from "../utils/violation-types.js";
/**
* Engine that analyzes TypeScript exports to find unused code
*/
export declare class UnusedExportsEngine extends BaseAuditEngine {
constructor();
/**
* Analyze TypeScript project for unused exports
*/
protected analyze(_targetPath: string, _options: Record<string, unknown>): Promise<Violation[]>;
/**
* Parse ts-unused-exports output into violations
*/
private parseUnusedExportsOutput;
/**
* Categorize unused exports based on file path and export name
*/
private categorizeUnusedExport;
/**
* Detect patterns that suggest this export is part of a public API
*/
private isLikelyPublicAPI;
/**
* Determine severity based on context
*/
private getSeverityForUnusedExport;
/**
* Generate fix suggestion for unused exports
*/
protected generateFixSuggestion(_category: ViolationCategory, _rule?: string, code?: string): string | undefined;
}
//# sourceMappingURL=unused-exports-engine.d.ts.map