From 6bec17246c41a187f3cdd566b519f2c1588c2ea8 Mon Sep 17 00:00:00 2001 From: "Pavel V. Talanov" Date: Tue, 5 Sep 2017 20:28:39 +0300 Subject: [PATCH] Fix inspections run for script dependency source files in come cases This filter defines which files inspections are run for In most cases other platform code prevented inspections from running for library source files but this check is needed to prevent KT-19377 #KT-19377 Fixed --- .../kotlin/idea/highlighter/KotlinProblemHighlightFilter.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/idea/idea-analysis/src/org/jetbrains/kotlin/idea/highlighter/KotlinProblemHighlightFilter.kt b/idea/idea-analysis/src/org/jetbrains/kotlin/idea/highlighter/KotlinProblemHighlightFilter.kt index 775c44ed73f..e5b87493ddc 100644 --- a/idea/idea-analysis/src/org/jetbrains/kotlin/idea/highlighter/KotlinProblemHighlightFilter.kt +++ b/idea/idea-analysis/src/org/jetbrains/kotlin/idea/highlighter/KotlinProblemHighlightFilter.kt @@ -23,7 +23,7 @@ import org.jetbrains.kotlin.idea.KotlinFileType class KotlinProblemHighlightFilter : ProblemHighlightFilter() { override fun shouldHighlight(psiFile: PsiFile): Boolean { - if (psiFile.fileType == KotlinFileType.INSTANCE && !KotlinHighlightingUtil.shouldHighlight(psiFile)) return false + if (psiFile.fileType == KotlinFileType.INSTANCE && !KotlinHighlightingUtil.shouldHighlightErrors(psiFile)) return false return true }