Codebase intelligence for AI and humans: code health scores, auto-generated docs, git analytics, dead code detection, and architectural decisions via MCP.
Python aicode-complexitycode-healthcode-intelligencecode-qualitydead-codedeveloper-toolsdocumentationgit-analyticsmcpopen-sourcepythonrefactoringstatic-analysistechnical-debt
import type { User } from "./types";
// Class implementing an interface via a field-typed annotation — exercises
// Phase 2's type_use edge resolution. ``User`` must NOT be flagged
// unused_export despite no value-position reference.
export class UserService {
private current: User | null = null;
setCurrent(user: User): void {
this.current = user;
}
greet(): string {
return this.current?.name ?? "anonymous";
}
}