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
God Object Rule (
solid:god-object-violation) - detects classes that have grown too large and handle too many responsibilities.Detection patterns (
violationTypein the metadata):too-many-methods: more than 30 methodstoo-many-lines: more than 1000 linestoo-many-dependencies: more than 10 dependencies (constructor parameters andinject()fields)mixed-architectural-concerns: multiple architectural concerns, derived from injected types, field types and called APIs (never from member names, so renaming a field or method does not change the result)Example