-
Notifications
You must be signed in to change notification settings - Fork 105
Fixed incorrect duplication warning for disabled plugin in di.xml #529
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
Fixed incorrect duplication warning for disabled plugin in di.xml #529
Conversation
if (observerDisabledAttribute != null | ||
&& observerDisabledAttribute.getValue() != null | ||
&& observerDisabledAttribute.getValue().equals("true") | ||
) { | ||
if (modulesWithSameObserverName.isEmpty()) { |
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.
just cleanup
problemsHolder.registerProblem( | ||
pluginTypeNameAttribute.getValueElement(), | ||
inspectionBundle.message( | ||
if (modulesWithSamePluginName.isEmpty()) { |
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.
affected lines
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.
Hi @VitaliyBoyko, thank you for the fix.
Description (*)
The duplication plugin warning is shown when disabling a plugin via
di.xml
This should be shown only for active plugins. Disabled plugins should be skipped.