Code Inspections in Angular
This topic lists all PhpStorm code inspections available in Angular.
You can toggle specific inspections or change their severity level on the Editor | Inspections page of the IDE settings Control+Alt+S.
Inspection | Description | Default Severity |
---|---|---|
Reports a component that is matched on an embedded template element | Error | |
Suggests using the
| Warning | |
Reports a text or tag occurrence inside a | Error | |
Reports accessing a private or protected member of a component from the component's template. Such usages result in AOT compilation failure. | Warning | |
Reports a component that doesn’t have an associated template or uses both | Error | |
Reports a binding to an event property or attribute, for example, | Warning | |
Reports an invalid assignment of an animation trigger. To attach an animation to an element, use | Error | |
Reports an invalid Angular component specified in the module’s | Error | |
Reports a problem with a | Warning | |
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 | |
Issues with ngSrc usage in img tags | Reports issues related to usage of Following issues are reported:
| Weak warning |
Reports a missing event handler statement for an event binding. | Error | |
Missing or invalid component, directive or pipe declaration in a module | Reports a non-standalone Angular component, directive, or pipe that is not declared in any module or is declared in multiple modules. | Error |
Reports an invalid | Error | |
Reports multiple structural directives ( | Error | |
Reports a cyclic dependency between Angular modules. | Error | |
Reports a template reference variable that is not assigned to a directive when using | Error | |
Reports an undefined property, event, or structural directive bindings on elements. | Error | |
Reports an export of an undeclared or unimported component, directive, or pipes from an Angular module. | Error | |
Reports a tag defined by a component or directive out of the current scope. | Error |