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
LSP Violation Rule (
solid:lsp-violation) - detects Liskov Substitution Principle violations that break substitutability.Detection patterns (
violationTypein the metadata):missing-interface-method,missing-interface-property: members of an implemented interface that the class does not declare (Angular internal members starting withɵare ignored)missing-abstract-method: abstract methods of the base class that are not implementedthrows-not-implemented: implementations of abstract methods whose firstthrowmentionsNotImplementedornot implementedinstanceof-check,excessive-instanceof-checks:instanceofchecks in methods (3 or more in one method count as excessive)Example