-
Notifications
You must be signed in to change notification settings - Fork 102
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Develop plugin declaration inspections #588
Develop plugin declaration inspections #588
Conversation
} | ||
|
||
/** | ||
* Test for an no error for the "type" attribute because this class exists. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Test for no error for the "type" attribute because this class exists.
* Test for an no error for the "type" attribute because this class exists. | |
* Test for no error for the "type" attribute because this class exists. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
resources/META-INF/plugin.xml
Outdated
bundle="magento2.inspection" key="inspection.displayName.PluginAttrTypeInspection" | ||
groupBundle="magento2.inspection" groupKey="inspection.group.name" | ||
enabledByDefault="true" level="WARNING" | ||
implementationClass="com.magento.idea.magento2plugin.inspections.xml.PluginAttrTypeInspection"/> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
implementationClass="com.magento.idea.magento2plugin.inspections.xml.PluginAttrTypeInspection"/> | |
implementationClass="com.magento.idea.magento2plugin.inspections.xml.PluginAttributeTypeInspection"/> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
import com.magento.idea.magento2plugin.magento.files.ModuleDiXml; | ||
import org.jetbrains.annotations.NotNull; | ||
|
||
public class PluginAttrTypeInspection extends XmlSuppressableInspectionTool { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
public class PluginAttrTypeInspection extends XmlSuppressableInspectionTool { | |
public class PluginAttributeTypeInspection extends XmlSuppressableInspectionTool { |
Let's avoid such a shortening.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
@VitaliyBoyko fixed, Thank you. |
Description (*)
Added inspection to the di.xml file for plugin tag.
The inspection is performed for plugin attribute "type".
If the class in the specified path for these attributes does not exist or empty, then the corresponding warning will be displayed
Inspection for the class inside the main "type" tag was done in the issue #582
Fixed Issues (if relevant)
Contribution checklist (*)