Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -121,25 +121,21 @@ public void visitFile(final PsiFile file) {
file
);

if (observerDisabledAttribute != null
&& observerDisabledAttribute.getValue() != null
&& observerDisabledAttribute.getValue().equals("true")
&& modulesWithSameObserverName.isEmpty()
) {
problemsHolder.registerProblem(
observerNameAttribute.getValueElement(),
inspectionBundle.message(
"inspection.observer.disabledObserverDoesNotExist"
),
errorSeverity
);
}

if (observerDisabledAttribute != null
&& observerDisabledAttribute.getValue() != null
&& observerDisabledAttribute.getValue().equals("true")
) {
if (modulesWithSameObserverName.isEmpty()) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just cleanup

problemsHolder.registerProblem(
observerNameAttribute.getValueElement(),
inspectionBundle.message(
"inspection.observer.disabledObserverDoesNotExist"
),
errorSeverity
);
} else {
continue;
}
}

for (final HashMap<String, String> moduleEntry:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,15 +118,18 @@ public void visitFile(final PsiFile file) {
if (pluginTypeDisabledAttribute != null
&& pluginTypeDisabledAttribute.getValue() != null
&& pluginTypeDisabledAttribute.getValue().equals("true")
&& modulesWithSamePluginName.isEmpty()
) {
problemsHolder.registerProblem(
pluginTypeNameAttribute.getValueElement(),
inspectionBundle.message(
if (modulesWithSamePluginName.isEmpty()) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

affected lines

problemsHolder.registerProblem(
pluginTypeNameAttribute.getValueElement(),
inspectionBundle.message(
"inspection.plugin.disabledPluginDoesNotExist"
),
errorSeverity
);
),
errorSeverity
);
} else {
continue;
}
}

for (final Pair<String, String> moduleEntry: modulesWithSamePluginName) {
Expand Down