ReadonlycategoryRule category for grouping.
ReadonlydescriptionRule description explaining what it checks.
ReadonlyidUnique rule identifier (scoped to plugin). Format: "plugin-name:rule-name" (e.g., "angular-standalone:component-not-standalone")
ReadonlynameHuman-readable rule name.
ReadonlyseverityRule severity level.
ReadonlytagsTags for filtering and search.
Analyze a source file and return findings.
Analysis context with file, project, and API access
Promise resolving to array of analysis results
ISP Violation Rule (
solid:isp-violation) - detects Interface Segregation Principle violations.Detection patterns (
violationTypein the metadata):too-many-methods: interfaces with more than 5 methodsmixed-concerns: interfaces whose members mix concerns (UI, data, business logic) by name keywordstoo-many-interfaces: classes implementing more than 3 interfacesunused-interface-methods: classes that implement an interface but declare no methodsExample