Code Inspections in Angular
This topic lists all JetBrains Rider code inspections available in Angular.
You can toggle specific inspections or change their severity level on the Editor | Inspection Settings | Inspection Severity | Other Languages page of the IDE settings Ctrl+Alt+S.
Inspection | Description | Default Severity |
---|---|---|
Ambiguous component tag | Reports a component that is matched on an embedded template element | Error |
Angular CLI add dependency | Suggests using the | Warning |
Content inside <ng-content> tag | Reports a text or tag occurrence inside a | Error |
Inaccessible component member in AOT mode | Reports accessing a private or protected member of a component from the component's template. Such usages result in AOT compilation failure. | Warning |
Incorrect component template definition | Reports a component that doesn’t have an associated template or uses both | Error |
Insecure binding to event | Reports a binding to an event property or attribute, for example, | Warning |
Invalid animation trigger assignment | Reports an invalid assignment of an animation trigger. To attach an animation to an element, use | Error |
Invalid entry component | Reports an invalid Angular component specified in the module’s | Error |
Invalid expression result type | Reports incorrect return type of an Angular binding expression. | Warning |
Invalid i18n attribute | Reports a problem with a | Warning |
Invalid imported or declared symbol | Reports any symbol that is declared, imported or exported by an Angular module that is not a module, component, directive, or pipe or can’t be used in the context of the property. | Error |
Missing event handler | Reports a missing event handler statement for an event binding. | Error |
Missing or invalid component, directive or pipe declaration in a module | Reports an Angular component, directive, or pipe that is not declared in any module or is declared in multiple modules. | Error |
Missing or invalid selector | Reports an invalid | Error |
Multiple structural directives on one element | Reports multiple structural directives ( | Error |
Recursive import or export of Angular module | Reports a cyclic dependency between Angular modules. | Error |
Unbound or ambiguous template reference variable | Reports a template reference variable that is not assigned to a directive when using | Error |
Undefined binding | Reports an undefined property, event, or structural directive bindings on elements. | Error |
Undefined export from Angular module | Reports an export of an undeclared or unimported component, directive, or pipes from an Angular module. | Error |
Undefined tag | Reports a tag defined by a component or directive out of the current scope. | Error |