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
Service Architecture Rule (
architecture:service-architecture) - detects architectural violations in Angular services.Detection patterns (
violationTypein the metadata):service-exports-interface,service-exports-type,service-exports-enum: service files that export models (these belong in separate files)too-many-dependencies: services with more than 5 constructor parametersExample
@Injectable({ providedIn: 'root' }) export class UserService {}