Reports incorrect registration of plugin components
(Components and Actions) both in code and in the plugin.xml descriptor.
The following problems are reported:
- Unresolved component/action implementation-classes (
plugin.xml)
- Unresolved component interface-classes (
plugin.xml)
- Component implementation-class is not assignable to its interface-class (
plugin.xml)
- Incorrect component registration, e.g.
ProjectComponent is registered as Application Component,
or the class doesn't implement any component interface at all (plugin.xml and Java code)
- Incorrect class modifiers: Action classes must be
public and must have a public
no-argument constructor. Additionally, Action and Component implementation classes
must not be abstract (plugin.xml and Java code)
- Duplicate interface-class: A class may only be used once as interface-class (
plugin.xml)
Configure the inspection:
- Use the Check Plugin Descriptor (plugin.xml) option to disable checks in
plugin.xml descriptor.
- Use the Check Java Actions option to disable checks in Action code.
- Use the Check Java Code option to disable all checks in code.