This commit is contained in:
Dmitry Batkovich
2016-03-10 17:24:05 +03:00
@@ -387,7 +387,7 @@ public class GlobalInspectionContextImpl extends GlobalInspectionContextBase imp
((RefManagerImpl)getRefManager()).initializeAnnotators();
runGlobalTools(scope, inspectionManager, globalTools, isOfflineInspections);
if (runGlobalToolsOnly) return;
if (runGlobalToolsOnly || (localTools.isEmpty() && globalSimpleTools.isEmpty())) return;
final Set<VirtualFile> localScopeFiles = scope.toSearchScope() instanceof LocalSearchScope ? new THashSet<VirtualFile>() : null;
for (Tools tools : globalSimpleTools) {