IJPL-149476 fix unresovled PyBundle

GitOrigin-RevId: c9997d7f1eb5fb96b1b0f005f852cdf58406b189
This commit is contained in:
Vladimir Krivosheev
2024-05-13 09:30:46 +02:00
committed by intellij-monorepo-bot
parent eacde8b9d0
commit be6d1d9923
2 changed files with 24 additions and 19 deletions

View File

@@ -93,21 +93,28 @@ private class InspectopediaExtractor : ModernApplicationStarter() {
LOG.info("Cannot create options panel ${wrapper.shortName}", e)
}
val language = wrapper.language
availablePlugins.get(pluginId)!!.inspections.add(Inspection(
id = wrapper.shortName,
name = wrapper.displayName,
severity = wrapper.defaultLevel.name,
language = language,
briefDescription = description.firstOrNull()?.let { HtmlUtils.cleanupHtml(it, language) },
extendedDescription = if (description.size > 1) HtmlUtils.cleanupHtml(description[1], language) else null,
path = wrapper.groupPath.asList(),
isAppliesToDialects = wrapper.applyToDialects(),
isCleanup = wrapper.isCleanupTool,
isEnabledDefault = wrapper.isEnabledByDefault,
options = panelInfo,
cweIds = inspectionExtraState.inspections.get(wrapper.id)?.cweIds,
))
try {
val language = wrapper.language
availablePlugins.get(pluginId)!!.inspections.add(Inspection(
id = wrapper.shortName,
name = wrapper.displayName,
severity = wrapper.defaultLevel.name,
language = language,
briefDescription = description.firstOrNull()?.let { HtmlUtils.cleanupHtml(it, language) },
extendedDescription = if (description.size > 1) HtmlUtils.cleanupHtml(description[1], language) else null,
path = wrapper.groupPath.asList(),
isAppliesToDialects = wrapper.applyToDialects(),
isCleanup = wrapper.isCleanupTool,
isEnabledDefault = wrapper.isEnabledByDefault,
options = panelInfo,
cweIds = inspectionExtraState.inspections.get(wrapper.id)?.cweIds,
))
}
catch (e: Throwable) {
System.err.println("Error while processing ${wrapper.extension}")
e.printStackTrace()
exitProcess(-1)
}
}
val sortedPlugins = availablePlugins.values