require-explicit-service-contract
Require explicit contracts for classes that invoke retained collaborators.
Why
A one-operation service can orchestrate a collaborator without declaring the contract that callers consume and implementations and fakes satisfy.
Fix
Explicitly implement a focused interface or extend an abstract class covering the service operations. Export the contract only when its consumers need it.
Examples
class OrchestratorService { constructor(private readonly worker: Worker) {} run(): void { this.worker.run(); }}interface Runner { run(): void;}class OrchestratorService implements Runner { constructor(private readonly worker: Worker) {} run(): void { this.worker.run(); }}