ts screener

Screener: Ts

Screener: Ts

private analyzeFile(filePath: string): FileReport const sourceText = readFileSync(filePath, 'utf-8'); const sourceFile = ts.createSourceFile(filePath, sourceText, ts.ScriptTarget.Latest, true);

import ScreenerReport from '../types.js'; export function jsonReporter(report: ScreenerReport): string return JSON.stringify(report, null, 2); ts screener

private resolveFiles(): string[] const includes = this.options.include.flatMap(pattern => glob.sync(pattern)); const excludes = new Set(this.options.exclude.flatMap(pattern => glob.sync(pattern))); return includes.filter(f => !excludes.has(f)); const sourceFile = ts.createSourceFile(filePath

📄 src/api/client.ts Missing types: Missing type: data, Missing type: config 'any' usage count: 2 This gives you a production-ready, extensible TypeScript quality gate. Want me to add a or IDE plugin next? import ScreenerReport from '../types.js'

if (!report.summary.passed) process.exit(1);

if (options.json) console.log(jsonReporter(report)); else consoleReporter(report);

return filePath, totalSymbols, typedSymbols, anyCount, missingTypes, implicitAnyLines, errors: this.checkStrictOptions(sourceFile), ;