Skip to content

Commit ea4a1f6

Browse files
author
Vitaliy Boyko
committed
Fixed incorrect duplication warning for disabled plugin in di.xml
1 parent 27fb74b commit ea4a1f6

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/com/magento/idea/magento2plugin/inspections/xml/PluginDeclarationInspection.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,13 @@ public void visitFile(final PsiFile file) {
129129
);
130130
}
131131

132+
if (pluginTypeDisabledAttribute != null
133+
&& pluginTypeDisabledAttribute.getValue() != null
134+
&& pluginTypeDisabledAttribute.getValue().equals("true")
135+
) {
136+
continue;
137+
}
138+
132139
for (final Pair<String, String> moduleEntry: modulesWithSamePluginName) {
133140
final String scope = moduleEntry.getFirst();
134141
final String moduleName = moduleEntry.getSecond();

0 commit comments

Comments
 (0)